Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 193479FB499 for ; Thu, 3 May 2007 15:30:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81794-02-2 for ; Thu, 3 May 2007 15:30:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by postgresql.org (Postfix) with ESMTP id 9FDD99FB22A for ; Thu, 3 May 2007 15:30:14 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id s1so635723nze for ; Thu, 03 May 2007 11:30:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p0nXPcaGF9QCjUIoaktSxWfpePWTYiXMkZFhQ5+Lzk+cMSCl/wayml7olHE3GhX0ZkbbJIyIQ/elyigiLTtCfz4aWB9USmrx26y1RSfoY8tWFYJB9dZsXTQJiSbtnuN+jHmu/Vat8xeONTw0yoK5MpwKKoGeLHZr5wssrq59RRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HW7E3l0x44jqTokRsoBretqm1flAq+VRV9k85guXZJIr/30TykqA01EC+BosOI9s2Rv2kuXsGBFs7pJHEfksglwEtoYi36A2/OaoK2R2zCgy5lGT0GStGf5ZyuZZIzvsM9JLCDfcetRv9eoZ/U7J+fomSoKmc7L87IUzFHFNn6M= Received: by 10.114.201.1 with SMTP id y1mr776822waf.1178217009668; Thu, 03 May 2007 11:30:09 -0700 (PDT) Received: by 10.114.37.3 with HTTP; Thu, 3 May 2007 11:30:09 -0700 (PDT) Message-ID: Date: Thu, 3 May 2007 11:30:09 -0700 From: "Collin Peters" To: "Richard Broersma Jr" Subject: Re: Insert into VIEW using RULE. Not possible to use nextval()? Cc: pgsql-sql@postgresql.org In-Reply-To: <662419.466.qm@web31804.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <662419.466.qm@web31804.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/19 X-Sequence-Number: 28300 The exact problem is that you can't use nextval() with an INSERTable VIEW Problem is the same as that in this post: http://archives.postgresql.org/pgsql-sql/2003-07/msg00333.php On 5/3/07, Richard Broersma Jr wrote: > > --- Collin Peters wrote: > > > I am having the same problem that is documented elsewhere in the > > archives. Namely when you have a INSERT RULE on a VIEW the nextval() > > function doesn't behave properly (or it doesn't behave how I'd like it > > to). > > > > http://archives.postgresql.org/pgsql-sql/2003-07/msg00333.php > > > > Is your problem that you can't insert more than one record at a time into your INSERTable VIEW? >