Christopher Kings-Lynne wrote:
How do I set the sequence to have next value = 1?  Surely the bounds should
begin at zero?


No; see: http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/functions-sequence.html

Notice the is_called flag. I think this does what you want:
  SELECT setval('foo', 1, false);

Joe


---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to