dbTalk Databases Forums  

Re: [BUGS] COPY and sequences

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] COPY and sequences in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil Conway
 
Posts: n/a

Default Re: [BUGS] COPY and sequences - 11-10-2003 , 01:40 PM






"Przemys=B3aw" <przemyslaw.slupkowski (AT) euro (DOT) coig.pl> writes:
Quote:
Hello
I dont know is this a bug but when I use COPY to load data into table
sequence of the primary key in this table have always start value =3D
1.
Doesn't sound like a bug. If the input data for COPY does not include
PK values, you should not include the PK column in the COPY's column
list, and make sure the PK column's default value gets the nextval()
from the sequence.

-Neil


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.