New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database validation should skip/ignore VIEWS, EXTERNAL and GTT tables [CORE4962] #5253
Comments
Modified by: @pavel-zotovAttachment: online-validation-checks-views-and-external-table.fbk.7z [ 12822 ] |
Commented by: @hvlad What exact problem do you see ? |
Commented by: @pavel-zotov Ony one, minor: these lines can confuse those DBA who expect to see report about only *tables* and no anything else. So, this ticket rather should be marked as 'improvement' than 'bug'. |
Modified by: @pavel-zotovissuetype: Bug [ 1 ] => Improvement [ 4 ] |
Commented by: Sean Leyne (seanleyne) Edited "Summary" to improve language. |
Modified by: Sean Leyne (seanleyne)summary: Online validation can take in account VIEWS and EXTERNAL table => Database validation should skip/ignore VIEWS, EXTERNAL and GTT tables |
Commented by: Claudio Valderrama C. (robocop) It's unlikely that the engine will validate external tables and views, so they should be skipped. |
Submitted by: @pavel-zotov
Attachments:
online-validation-checks-views-and-external-table.fbk.7z
Unpack attached .7z and restore database from .fbk
Then run:
$fb_home/bin/fbsvcmgr service_mgr action_validate dbname <restored-database-name.fdb>
- with redirection to some log.
In that log one may see following lines:
17:03:08.61 Relation 137 (EXT_STOPTEST)
17:03:08.61 Relation 137 (EXT_STOPTEST) is ok
. . .
17:03:08.65 Relation 191 (V_QDISTR_SOURCE)
17:03:08.65 Relation 191 (V_QDISTR_SOURCE) is ok
17:03:08.65 Relation 192 (V_QSTORNED_SOURCE)
17:03:08.65 Relation 192 (V_QSTORNED_SOURCE) is ok
First relation is external table. Second and third - VIEWS with DDL like: 'select * from T1 union all select * from T2 union all ...'.
Validation should skip such kinds of DB objects.
PS. Also (IMHO) validation should always skip checking GTT because their data will be stored in unknown places - AFAIK, this is so at least for CS.
The text was updated successfully, but these errors were encountered: