X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 144C49FA50E for ; Thu, 4 May 2006 23:42:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 49350-09 for ; Thu, 4 May 2006 23:42:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from wolff.to (wolff.to [66.93.197.194]) by postgresql.org (Postfix) with SMTP id DB5599F9AD3 for ; Thu, 4 May 2006 23:42:42 -0300 (ADT) Received: (qmail 13042 invoked by uid 500); 5 May 2006 02:43:33 -0000 Date: Thu, 4 May 2006 21:43:33 -0500 From: Bruno Wolff III To: Sriram Dandapani Cc: pgsql-admin@postgresql.org Subject: Re: reset all sequences Message-ID: <20060505024333.GA12255@wolff.to> Mail-Followup-To: Bruno Wolff III , Sriram Dandapani , pgsql-admin@postgresql.org References: <6992E470F12A444BB787B5C937B9D4DF041C36B1@ca-mail1.cis.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF041C36B1@ca-mail1.cis.local> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/52 X-Sequence-Number: 21584 On Thu, May 04, 2006 at 14:20:39 -0700, Sriram Dandapani wrote: > Hi > > > > I have a scenario where I need to reset all sequences(about 400). Is > there a system table that I can query to get a list of sequences > (Postgres 8.1.x) You can do something like: select * from pg_class where relkind = 'S'; The relname column will give you the sequence name.