select currval('library.items_itemid_seq') as NextItemID;
ERROR: currval of sequence "items_itemid_seq" is not yet defined in this session
Note that the nextval function works as expected
select nextval('library.items_itemid_seq') as NextItemID;
2313
Can somebody please tell me what simple mistake I am making?
David