test=> CREATE SEQUENCE my_seq \g CREATE test=> SELECT NEXTVAL('my_seq') \g nextval ------- 1 (1 row) test=> SELECT NEXTVAL('my_seq') \g nextval ------- 2 (1 row)