Determine the date a table was defined/created.
Determine the date a table was defined/created.
От:
"David Monarchi" <david.e.monarchi@gmail.com>
Дата:
PG v 8.2
Hello -
I believe the date a table is defined is stored in one of the system catalogs. I've looked through Chapter 43 in the documentation, but I am unable to identify which catalog contains this information.
Any assistance would be greatly appreciated.
Thank you.
David
Hello -
I believe the date a table is defined is stored in one of the system catalogs. I've looked through Chapter 43 in the documentation, but I am unable to identify which catalog contains this information.
Any assistance would be greatly appreciated.
Thank you.
David
Re: Determine the date a table was defined/created.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"David Monarchi" writes: > I believe the date a table is defined is stored in one of the system > catalogs. You're mistaken. You might be able to estimate it by comparing the table OID to the OIDs of other tables --- that would at least give you a fix on the order of creation. But there's no timestamp as such. If you have faithfully maintained PITR archives covering the time period in question, then the information is theoretically available from those, but I'm not aware of any tools that would easily pull it out for you. regards, tom lane