Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4224D9FB546 for ; Thu, 3 May 2007 14:27:06 -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 10913-02 for ; Thu, 3 May 2007 14:26:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web31804.mail.mud.yahoo.com (web31804.mail.mud.yahoo.com [68.142.207.67]) by postgresql.org (Postfix) with SMTP id 7E01C9FB41C for ; Thu, 3 May 2007 14:27:00 -0300 (ADT) Received: (qmail 1885 invoked by uid 60001); 3 May 2007 17:26:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=hq8h8F/f5eP/9LrbkGbfduPskAcj+phRhRj3/X0v0OcedzIBwIGlpq1PqX+BJiEvmqAuiJYFtIM4M4wD6XutyEmOmhY/peXmezPeVW1iNvj7PZPhXRkObl+s6UM7xhz2z6G0tov7CUv8tIOPNMLDHFGfjcarIt7620qvBGiJJYk=; X-YMail-OSG: n_ybHygVM1k1y1iF.bCCWDNTUMhY3sSO2sDEJ0nIfPAsX0TmqXIaWz4EB5sjUsykZQi0RLed81OSn8goe4MWLmFncTqoG5Rk_SQgVUSe3KXayAE1Q41okPLYSg-- Received: from [63.203.180.122] by web31804.mail.mud.yahoo.com via HTTP; Thu, 03 May 2007 10:26:59 PDT Date: Thu, 3 May 2007 10:26:59 -0700 (PDT) From: Richard Broersma Jr Subject: Re: Insert into VIEW using RULE. Not possible to use nextval()? To: Collin Peters , pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <662419.466.qm@web31804.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.702 tagged_above=0 required=5 tests=AWL=-0.054, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447 X-Spam-Level: X-Archive-Number: 200705/18 X-Sequence-Number: 28299 --- 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?