Re: sequences - Mailing list pgsql-admin

From Jeff Frost
Subject Re: sequences
Date
Msg-id Pine.LNX.4.64.0704041246500.32187@glacier.frostconsultingllc.com
Whole thread Raw
In response to sequences  ("Alexander B." <burbello3000@yahoo.com.br>)
List pgsql-admin
On Wed, 4 Apr 2007, Alexander B. wrote:

> Hi,
>
> I tried to find, but I didn't, I would like to know what's the view to
> list all sequences!
>

You can get the info from pg_class like so:

SELECT n.nspname
      , c.relname
   FROM pg_class c
      , pg_namespace n
  WHERE c.relnamespace = n.OID
    AND c.relkind      = 'S'
;




--
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954

pgsql-admin by date:

Previous
From: Bricklen Anderson
Date:
Subject: Re: sequences
Next
From: Tom Lane
Date:
Subject: Re: xlog related error