Re: Last updated time for a Schema of the table

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Last updated time for a Schema of the table
Дата
Msg-id 20201102123623.GA2821@depesz.com
обсуждение исходный текст
Ответ на Last updated time for a Schema of the table  (paras paliya <paliya.paras@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: PALAYRET Jacques
Дата:
Сообщение: Re: Last updated time for a Schema of the table
Следующее
От: Sean McDaniel
Дата:
Сообщение: Re: GSSAPI Authentication for pgadmin4 macOS client