Can't query the sequence table of a serial primary key.

Поиск
Список
Период
Сортировка
От Fred Parkinson
Тема Can't query the sequence table of a serial primary key.
Дата
Msg-id 4F461C53020000A70001B6BB@gwia1.abag.ca.gov
обсуждение исходный текст
Ответы Re: Can't query the sequence table of a serial primary key.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: Can't query the sequence table of a serial primary key.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
We have moved some databases from 7.x to 8.4
Previously I could query the sequencing table of a 'serial primary key' by simply running
select * from mytable_id_seq;
where mytable has id as a serial primary key and mytable_id_seq is the postgresql relation which manages the key.
 
Has something significantly changed this in ver 8.4?
When I do \d I see the table and the sequencer under 'List of relations'.
But when I run select * from mytable_id_seq; postgresql responds with:
relation 'mytable_id_seq' does not exist.
 
Am I confused about something? (Wouldn't be the first time sigh)
 
Thanks for any help.
 
Fred

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: speedup pg_dumpall
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Can't query the sequence table of a serial primary key.