How to trace file to database table
Hi,
System log contains errors like that:
/vertica1/xxx/423/02043dbe255c2a6a684cba961bca1bfc00c0000005239acf_0.gt: Input/output error
Logs contains errors from 3 files.
I managed to find one table with bad file, more by accident and luck than understanding how to find them.
Is it possible to find table by file name, without doing extensive filesystem scan or running Vertica command to verify all of database.
Thank you
Sergey
0
This discussion has been closed.
Answers
To find a table associated with a specific file in Vertica you can query the relevant system tables.
While the exact file naming convention can vary between Vertica versions, EE and EON convention, you can try the following query example to trace a file back to its table:
Here is another example how to get the file name associated with a particular projection:
List all projections with no statistics or not up-to-date or not fault tolerance:
Note that the elapsed time for these queries can be high on a large database.