Created
October 13, 2022 18:16
-
-
Save onhernandes/d8d3f40d2e87a3438381bcb97fd6e45b to your computer and use it in GitHub Desktop.
Nice sequence queries for PG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- set as bigint | |
ALTER SEQUENCE transaction_id_seq AS BIGINT; | |
-- select sequences | |
SELECT * FROM information_schema.sequences ORDER BY sequence_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment