Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 034E89F97B3 for ; Fri, 17 Aug 2007 18:49:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 24348-06 for ; Fri, 17 Aug 2007 18:49:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 0304F9F96F6 for ; Fri, 17 Aug 2007 18:49:16 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1IM9gx-00028E-Qy for pgsql-sql@postgresql.org; Fri, 17 Aug 2007 17:49:15 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 519BD404E; Fri, 17 Aug 2007 17:49:10 -0400 (EDT) Date: Fri, 17 Aug 2007 17:49:10 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Sequences problem Message-ID: <20070817214910.GE29125@phlogiston.dyndns.org> References: <46C61410.4070407@correolux.com.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46C61410.4070407@correolux.com.mx> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/149 X-Sequence-Number: 29087 On Fri, Aug 17, 2007 at 04:33:04PM -0500, Judith wrote: > When I init a sesion with my db, if a do the next sentence: > > SELECT currval('pagos_id_pago_seq'); > > > return this: > ERROR: the relation doesn't exist > (or somethimg like that, because the message is in spanish) You _must_ call nextval() before a currval(). This is documented behaviour. A -- Andrew Sullivan | ajs@crankycanuck.ca The whole tendency of modern prose is away from concreteness. --George Orwell