Re: table - sequence dependent informatio

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: table - sequence dependent informatio
Дата
Msg-id AANLkTinaQJgQ6D=BmjDqOrgYXgyHUP+sU6c+UyPDsA8n@mail.gmail.com
обсуждение исходный текст
Ответ на table - sequence dependent informatio  (akp geek <akpgeek@gmail.com>)
Ответы Re: table - sequence dependent informatio  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-general
On 31 August 2010 18:02, akp geek <akpgeek@gmail.com> wrote:
> Hi all -
>         Is there a way I can tell table - sequence dependent information.
>  which sequences are being used by which table?
> thanks for the help

Take a look at the post "Finding orphaned sequences" on this blog:

http://blog.tapoueh.org/blog.dim.html

Change the last part of the query from "WHERE a.tablename IS NULL" to
"WHERE a.tablename IS NOT NULL". That'll show you what tables your
SERIAL sequences are being used on.


--
Regards,
Peter Geoghegan

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

Предыдущее
От: akp geek
Дата:
Сообщение: table - sequence dependent informatio
Следующее
От: Devrim GÜNDÜZ
Дата:
Сообщение: On-disk size of db increased after restore