mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Column-owns-sequence was detected by guessing the sequence name as <table>_<col>_seq and string-matching it in nextval(...). Renaming a table/column broke the guess (false negative, #10100); an unrelated sequence with the same guessed name broke it the other way (false positive, #10101). Check col.get('seqrelid') (real pg_depend ownership) instead, and exclude identity columns. SERIAL is now emitted iff a genuine ownership dependency exists, independent of naming. Fixes #10100, #10101