I want to get the list of sequence names in Postgres.
In Oracle, I can use:
select sequence_name from user_sequences
But in Postgres w
SELECT c.relname FROM pg_class c WHERE c.relkind = 'S'; Or trying running psql as psql -U username -E followed by \ds. This will show you the query that was been used to generate the result as well.
SELECT c.relname FROM pg_class c WHERE c.relkind = 'S';
psql -U username -E
\ds