Although nextval is non transactional, we have some wonky behaviour where nextval is called on a sequence in the same transaction it is created. To reproduce demo@127.0.0.1:26257/movr> BEGIN; CREATE ...
A-sql-sequences Sequence handling in SQL C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
DBMSにおいて、一連の整数の値を生成するオブジェクト。 (順序の作成) 複数の表で1つの順序を使用できる ALTER SEQUENCE文で最大値の変更は可能。後から変更できないのは初期値 順序で値を生成したINSERT文がロールバックされると、表の状態はロールバック ...