Re: Last updated time for a Schema of the table - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Last updated time for a Schema of the table
Date
Msg-id 20201102123623.GA2821@depesz.com
Whole thread Raw
In response to Last updated time for a Schema of the table  (paras paliya <paliya.paras@gmail.com>)
List 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




pgsql-general by date:

Previous
From: PALAYRET Jacques
Date:
Subject: Re: Last updated time for a Schema of the table
Next
From: Sean McDaniel
Date:
Subject: Re: GSSAPI Authentication for pgadmin4 macOS client