Re: Reiniciar secuencias

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: William Diaz =?iso-8859-1?Q?Pab=F3n?= <wdiaz(at)unipamplona(dot)edu(dot)co>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Reiniciar secuencias
Date: 2004-10-12 04:51:15
Message-ID: 20041012045115.GA41269@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 11, 2004 at 08:55:27PM -0500, William Diaz Pabn wrote:
>
> Como puedo hacer para reiniciar una secuencia?
>
> Tengo un campo como serial (autnomunerico) pero cuando elimino registro me
> quedan espacios, y quiero reiniciar la secuencia.

I think you're looking for ALTER SEQUENCE or setval(). You might
wish to subscribe to pgsql-es-ayuda:

http://archives.postgresql.org/pgsql-es-ayuda/

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Jowett 2004-10-12 04:55:27 Re: Avoiding explicit addDataType calls for PostGIS
Previous Message Tom Lane 2004-10-12 03:38:49 Re: Very slow delete.