X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7E1CB9FA38F for ; Tue, 13 Jun 2006 20:02:49 -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 42177-06 for ; Tue, 13 Jun 2006 20:02:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 462AF9FA1A8 for ; Tue, 13 Jun 2006 20:02:44 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id B532D56435; Tue, 13 Jun 2006 18:02:42 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 13 Jun 2006 18:02:42 -0500 Date: Tue, 13 Jun 2006 18:02:42 -0500 From: "Jim C. Nasby" To: "renneyt@yahoo.com" Cc: postgres Subject: Re: pg_dump/restore problem Message-ID: <20060613230242.GO34196@pervasive.com> References: <448DD3C6.8050801@yahoo.com> <20060612205630.GF34196@pervasive.com> <448F1FFF.50600@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <448F1FFF.50600@yahoo.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060613:renneyt@yahoo.com::2dNtmUAAOAl6ZXDK:00000000000000000000 0000000000000000000000000dY2 X-Hashcash: 1:20:060613:pgsql-admin@postgresql.org::VtKgn2zBpuFNENjh:00000000000 0000000000000000000000001jrg X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/116 X-Sequence-Number: 22078 On Tue, Jun 13, 2006 at 04:28:47PM -0400, renneyt@yahoo.com wrote: > Does pg_get_serial_sequence() exist as plpgsql code? Where may I find > it? I would like to retrofit it into a 7.4.8 PG database. No, but it shouldn't be terribly hard to do it in plpgsql; you just need to build the right sequence name (assuming you haven't been messing with the sequence names). -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461