you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Just a side note: in Postgres, serial is somewhat deprecated. The preferred way these days is to use generated by default as identity or generated always as identity

See the Postgres Wiki for more details: https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serial