Re: Re : Re : Resetting SEQUENCEs

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Laurent ROCHE <laurent_roche(at)yahoo(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re : Re : Resetting SEQUENCEs
Date: 2007-10-18 21:54:16
Message-ID: 20071018215416.GD6813@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Laurent ROCHE wrote:
> Hi,
>
> So nobody can help me to write the SELECT that will return the SEQUENCE names, and their linked columns and their linked tables ?
> Are the system tables documented somewhere ?

Of course -- in the "internals" section. You need pg_class where
relkind = 's', pg_depend, and possibly pg_attribute.

--
Alvaro Herrera http://www.PlanetPostgreSQL.org/
"La naturaleza, tan frágil, tan expuesta a la muerte... y tan viva"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Douglas McNaught 2007-10-18 22:06:31 Re: Re : Re : pg_dump SERIAL and SEQUENCE
Previous Message Raymond O'Donnell 2007-10-18 21:44:39 Re: Re : Abbreviation list