Command can be used to view all sequences in the currently connected database : Postgre SQL Command « Postgre SQL « PostgreSQL






Command can be used to view all sequences in the currently connected database


postgres=#
postgres=# -- \ds  command can be used to view all sequences in the currently connected database
postgres=#
postgres=# CREATE SEQUENCE myseq MINVALUE 0;
CREATE SEQUENCE
postgres=#
postgres=# \ds
          List of relations
 Schema | Name  |   Type   |  Owner
--------+-------+----------+----------
 public | myseq | sequence | postgres
(1 row)

postgres=#
postgres=#
postgres=# drop sequence myseq;
DROP SEQUENCE
postgres=#
postgres=#
           
       








Related examples in the same category

1.Displays all databases available, with comments
2.Listing psql slash commands
3.The variable list
4.Displays all database objects, with comments
5.Displays all database objects in the connected database, with comments
6.Displays all tables in the connected database, with comments
7.Displays all indices in the connected database, with comments
8.Displays all sequences in the connected database, with comments
9.Displays all views in the connected database, with comments
10.Displays all functions in the connected database, with comments
11.Displays all operators in the connected database, with comments
12.Displays all data types in the connected database, with comments
13.To get out of psql
14.timestamp with time zone postmaster start time