sequences not renamed with tables

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: sequences not renamed with tables
Date: 2003-12-11 06:44:01
Message-ID: 20031211064401.99551.qmail@web40604.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2003-12-11 06:55:35 Re: Users and session ids
Previous Message Eric Holmstrom 2003-12-11 06:39:48 Php help