Do we have any query providing the sequences which are NOT attached to any of the tables in Postgres?
I would like to attach them back to tables.
Do we have any query providing the sequences which are NOT attached to any of the tables in Postgres?
I would like to attach them back to tables.
2
Answers
Take all sequences that have no dependency on a column:
To attach ("bind") a sequence to a table column:
See: