Re: Reset sequence number

From: "Lonh SENG" <slonh(at)camgsm(dot)com(dot)kh>
To: "Marc" <syn_uw(at)nospan_hotmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Reset sequence number
Date: 2002-02-26 00:48:13
Message-ID: 000f01c1be5f$467be5e0$05a00017@idlonh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I use truncate table $table_name.
This will delete all data from that table and reset the sequense number.
----- Original Message -----
From: "Marc" <syn_uw(at)nospan_hotmail(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Sent: Saturday, February 23, 2002 6:37 PM
Subject: [ADMIN] Reset sequence number

> Hello,
>
> How can I reset a sequence number back to 0 ?
>
> Regards
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gaetano Mendola 2002-02-26 08:44:59 Regression tests failed
Previous Message Tom Lane 2002-02-25 23:12:46 Re: pg_dump error