pg_sequence catalog

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pg_sequence catalog
Дата
Msg-id 7842a868-0df8-6087-2332-59ba0d6a2210@2ndquadrant.com
обсуждение исходный текст
Ответы Re: pg_sequence catalog  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
While I was hacking around sequence stuff, I felt the urge to look into
an old peeve: That sequence metadata is not stored in a proper catalog.
Right now in order to find out some metadata about sequences (min, max,
increment, etc.), you need to look into the sequence.  That is like
having to query a table in order to find out about its schema.

There are also known issues with the current storage such as that we
can't safely update the sequence name stored in the sequence when we
rename, so we just don't.

This patch introduces a new catalog pg_sequence that stores the sequence
metadata.  The sequences themselves now only store the counter and
supporting information.

I don't know if this is a net improvement.  Maybe this introduces as
many new issues as it removes.  But I figured I'll post this, so that at
least we can discuss it.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Michael Banck
Дата:
Сообщение: Re: Exclude schema during pg_restore
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous