Is there a built in function for retrieving the next value of a sequence and updating the sequence counter?
---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq