Re: [ADMIN] Table/View creation time
От | Achilleas Mantzios |
---|---|
Тема | Re: [ADMIN] Table/View creation time |
Дата | |
Msg-id | 586CA674.5070107@matrix.gatewaynet.com обсуждение исходный текст |
Ответ на | Re: [ADMIN] Table/View creation time (Payal Singh <payal@omniti.com>) |
Список | pgsql-admin |
On 03/01/2017 17:23, Payal Singh wrote:
Modern Linux'es do not support exposing creation time. EXT4 stores this though.You might be able to get some useful info by running stat on $PGDATA/base/<table's relid> (for instance when the file was created). Don't think this is applicable for a view though.
A better way is to search for the respective DDL command in postgres log files, if you are logging all DDLsPayalOn Mon, Jan 2, 2017 at 5:17 AM, Ram DBA <postgresdbas@gmail.com> wrote:RamHi team,Do we have a way of figuring out when a table/view is created in the postgres database?Thank you,
ram=# \dv
List of relations
Schema | Name | Type | Owner
--------+--------+------+----------
public | v_test | view | postgres
(1 row)
-- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt
В списке pgsql-admin по дате отправления: