I use PostgreSQL. Is there a query to get a list of all tables that do not have the unique constraint on the sequence column? If it helps forming a query I use "reference" for my sequence column.
This is an example of a table that has this.das
\d+ a_practical_approach_when_there_is_a_lot_to_do
Table "public.a_practical_approach_when_there_is_a_lot_to_do"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
----------------------+--------------------------+-----------+----------+-----------------------------------------------------------------------------------+----------+--------------+-------------
reference | bigint | | not null | nextval('a_practical_approach_when_there_is_a_lot_to_do_reference_seq'::regclass) | plain | |
display_order | bigint | | | | plain | |
principal | text | | | | extended | |
explanation | text | | | | extended | |
add_date | timestamp with time zone | | | | plain | | UTC
membership_reference | bigint | | | | plain | |
Indexes:
"a_practical_approach_when_there_is_a_lot_to_do_reference_unique" UNIQUE CONSTRAINT, btree (reference)
Access method: heap