pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedLast updated time for a Schema of the table
3+ messages / 3 participants
[nested] [flat]
* Last updated time for a Schema of the table
@ 2020-11-02 09:53 paras paliya <paliya.paras@gmail.com>
2020-11-02 11:31 ` Re: Last updated time for a Schema of the table PALAYRET Jacques <jacques.palayret@meteo.fr>
2020-11-02 12:36 ` Re: Last updated time for a Schema of the table hubert depesz lubaczewski <depesz@depesz.com>
0 siblings, 2 replies; 3+ messages in thread
From: paras paliya @ 2020-11-02 09:53 UTC (permalink / raw)
To: pgsql-general
Hi All,
I need the last updated time or alter time of the table. Like changing the
column name or adding/deleting a column. Is there any table or view from
which I can get?
Thanks,
Paras
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Last updated time for a Schema of the table
2020-11-02 09:53 Last updated time for a Schema of the table paras paliya <paliya.paras@gmail.com>
@ 2020-11-02 11:31 ` PALAYRET Jacques <jacques.palayret@meteo.fr>
1 sibling, 0 replies; 3+ messages in thread
From: PALAYRET Jacques @ 2020-11-02 11:31 UTC (permalink / raw)
To: paras paliya <paliya.paras@gmail.com>; +Cc: pgsql-general
Hello,
I don't think so, as far as I know.
But, you can put in place some triggesr to do that.
i.e. https://www.postgresql.org/docs/13/plpgsql-trigger.html https://wiki.postgresql.org/wiki/Audit_trigger
and so on
Regards
De: "paras paliya" <paliya.paras@gmail.com>
À: pgsql-general@postgresql.org
Envoyé: Lundi 2 Novembre 2020 10:53:06
Objet: Last updated time for a Schema of the table
Hi All,
I need the last updated time or alter time of the table. Like changing the column name or adding/deleting a column. Is there any table or view from which I can get?
Thanks,
Paras
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Last updated time for a Schema of the table
2020-11-02 09:53 Last updated time for a Schema of the table paras paliya <paliya.paras@gmail.com>
@ 2020-11-02 12:36 ` hubert depesz lubaczewski <depesz@depesz.com>
1 sibling, 0 replies; 3+ messages in thread
From: hubert depesz lubaczewski @ 2020-11-02 12:36 UTC (permalink / raw)
To: paras paliya <paliya.paras@gmail.com>; +Cc: pgsql-general
On Mon, Nov 02, 2020 at 03:23:06PM +0530, paras paliya wrote:
> I need the last updated time or alter time of the table. Like changing the
> column name or adding/deleting a column. Is there any table or view from
> which I can get?
PostgreSQL doesn't keep that information.
You can:
1. set log_statement to ddl (or more) to log all schema changes
2. use event triggers to do whatever you want at the time of change.
Best regards,
depesz
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-11-02 12:36 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 09:53 Last updated time for a Schema of the table paras paliya <paliya.paras@gmail.com>
2020-11-02 11:31 ` PALAYRET Jacques <jacques.palayret@meteo.fr>
2020-11-02 12:36 ` hubert depesz lubaczewski <depesz@depesz.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox