Why is the following like it is? I would think that nextval would return 2
in both instances, am I missing something here? :) Thanks!

binary_data=# create sequence test;
CREATE
binary_data=# select nextval('test');
NOTICE:  test.nextval: sequence was re-created
 nextval
---------
       1
(1 row)

binary_data=# select setval('test', 1);
 setval
--------
      1
(1 row)

binary_data=# select nextval('test');
 nextval
---------
       2
(1 row)

binary_data=#


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to