Showing posts with the label ddl

[FIXED] How to delete unused sequences?

Issue We are using PostgreSQL. My requirement is to delete unused sequences from my database. For e…

[FIXED] Postgres manually alter sequence

Issue I'm trying to set a sequence to a specific value. SELECT setval('payments_id_seq'…

[FIXED] How to reset Postgres' primary key sequence when it falls out of sync?

Issue I ran into the problem that my primary key sequence is not in sync with my table rows. That…

[FIXED] Store common query as column?

Issue Using PostgreSQL, I have a number of queries that look like this: SELECT <col 1>, <…

[FIXED] Alter column varchar to json in psql

Issue Hi i am trying to convert a column in my table from varchar to json and the table already had…

[FIXED] How to change a table ID from serial to identity?

Issue I have the following table in Postgres 10.10: Table "public.client" Colu…