pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lonh SENG <slonh@camgsm.com.kh>
To: Marc <syn_uw@nospan_hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Reset sequence number
Date: Tue, 26 Feb 2002 07:48:13 +0700
Message-ID: <000f01c1be5f$467be5e0$05a00017@idlonh> (raw)
References: <3C777F09.854C8FD4@nospan_hotmail.com>

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@nospan_hotmail.com>
To: <pgsql-admin@postgresql.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@postgresql.org)
> 




view thread (4+ messages)

Message-ID: <000f01c1be5f$467be5e0$05a00017@idlonh>
Permalink:  ../000f01c1be5f$467be5e0$05a00017@idlonh/
Also on:    postgresql.org/message-id/000f01c1be5f$467be5e0$05a00017@idlonh

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: slonh@camgsm.com.kh, syn_uw@nospan_hotmail.com
  Subject: Re: Reset sequence number
  In-Reply-To: <000f01c1be5f$467be5e0$05a00017@idlonh>
  References: <3C777F09.854C8FD4@nospan_hotmail.com> <000f01c1be5f$467be5e0$05a00017@idlonh>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox