Re: recording of INDEX creation in tables

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: recording of INDEX creation in tables
Дата
Msg-id YeudFalu6yfOJCRP@paquier.xyz
обсуждение исходный текст
Ответ на recording of INDEX creation in tables  (Matthias Apitz <guru@unixarea.de>)
Список pgsql-general
On Fri, Jan 21, 2022 at 01:38:59PM +0100, Matthias Apitz wrote:
> Does the PostgreSQL (11.4 or 13.1) record somewhere in system tables
> the creation of INDEXes (or other objects)?

Hard to say what you are looking for with such a general question.

Would pg_index or pg_indexes be enough?  There are a bunch of system
catalogs and views, like what's in information_schema, that provide
this information.  If you are looking for a record of the timestamp
when objects have been created, there is no such tracking in Postgres
itself, but you could use an event trigger for this purpose.

Here are some links;
https://www.postgresql.org/docs/devel/catalog-pg-index.html
https://www.postgresql.org/docs/devel/view-pg-indexes.html
https://www.postgresql.org/docs/devel/event-triggers.html
--
Michael

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: psql and Postgres 7.2
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: How are md5.h: pg_md5_hash() function and below functions working?