Re: SQL equivallent to "\ds" in psql

From: "Creager, Robert S" <CreagRS(at)LOUISVILLE(dot)STORTEK(dot)COM>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: SQL equivallent to "\ds" in psql
Date: 2001-10-17 21:28:10
Message-ID: 10FE17AD5F7ED31188CE002048406DE8514ED1@lsv-msg06.stortek.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


execute psql with a -E option, then do \ds. You'll see the queries sent to
the backend.

Later,
Rob

> -----Original Message-----
> From: Arcady Genkin [mailto:a(dot)genkin(at)utoronto(dot)ca]
> Sent: Wednesday, October 17, 2001 2:35 PM
> To: PostgreSQL
> Subject: [GENERAL] SQL equivallent to "\ds" in psql
>
>
> Where does Postgres store information about the sequences? I tried
> looking in the tables produced by "\dS", but could find no references
> to the sequences. :(
>
> What I want is an SQL equivallent of "\ds" command, which will return
> a list of all sequences in the current database. I need this for a
> periodically run script so that I could keep an eye on all sequences
> in the database.
>
> Many thanks,
> --
> Arcady Genkin
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

Browse pgsql-general by date

  From Date Subject
Next Message Mitch Vincent 2001-10-17 21:31:07 Re: SQL equivallent to "\ds" in psql
Previous Message Bruce Momjian 2001-10-17 20:46:29 Re: To Postgres Devs : Wouldn't changing the select limit