sequences not renamed with tables

Поиск
Список
Период
Сортировка
От CSN
Тема sequences not renamed with tables
Дата
Msg-id 20031211064401.99551.qmail@web40604.mail.yahoo.com
обсуждение исходный текст
Ответы Re: sequences not renamed with tables
Список pgsql-general
I'm getting these errors when importing dumps:

ERROR:  relation "table1_id_seq" does not exist
ERROR:  relation "table2_id_seq" does not exist

I renamed a couple tables, and the names of their
corresponding sequences remained the same. This causes
a problem because when importing - the create table
statements create sequences with different names, then
the setval() statements use the old names. Any way to
automatically avoid this "gotcha"?

Thanks,
CSN


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: [NOVICE] PostgreSQL Training
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Users and session ids