----- Message d'origine ----
De : Alvaro Herrera <alvherre(at)commandprompt(dot)com>
À : Laurent ROCHE <laurent_roche(at)yahoo(dot)com>
Cc : Martijn van Oosterhout <kleptog(at)svana(dot)org>; pgsql-general(at)postgresql(dot)org
Envoyé le : Jeudi, 18 Octobre 2007, 23h54mn 16s
Objet : Re: Re : Re : [GENERAL] Resetting SEQUENCEs
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"
---------------------------(end of
broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster