Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 9B1319FB5AA for ; Fri, 4 May 2007 19:16:59 -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 14045-04-2 for ; Fri, 4 May 2007 19:16:49 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web31808.mail.mud.yahoo.com (web31808.mail.mud.yahoo.com [68.142.207.71]) by postgresql.org (Postfix) with SMTP id E81909FB5FC for ; Fri, 4 May 2007 19:16:52 -0300 (ADT) Received: (qmail 23648 invoked by uid 60001); 4 May 2007 22:16:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=2nzGIXF1uQYU1ZPqFMkV3VbuyQYjAtJMCCj3KPWD5hrqRcypo4c6FxbM/Ku8EdgvTgNj3/+jlDLblUZENcqQaJ1oMBcWM8nH53+KaacCTyGo+oZoeFHsCEjtCMV3IhwCkbHKKQVjKhK/DsccbfiVGmY+GLY8/mLzo3n4TVotDJE=; X-YMail-OSG: pkEZuj0VM1nDvJjQUoQDxbUR1pDOPaaOhR2Gk8zYYOXq8p6ERUMLGWKS41kZXIMxImLZLA-- Received: from [63.203.180.122] by web31808.mail.mud.yahoo.com via HTTP; Fri, 04 May 2007 15:16:51 PDT Date: Fri, 4 May 2007 15:16:51 -0700 (PDT) From: Richard Broersma Jr Subject: Re: Insert into VIEW using RULE. Not possible to use nextval()? To: Collin Peters Cc: 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: <188322.23616.qm@web31808.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.434 tagged_above=0 required=5 tests=AWL=-0.811, BAYES_05=-1.11, 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/23 X-Sequence-Number: 28304 --- Collin Peters wrote: > 2. currval() is guaranteed to be correct within the RULE. This was my > second question. If I call "INSERT INTO Vschematic_insert(..." > simultaneously 1000 times is it guaranteed to be correct? To illistrate using psudo code: //This will always work: For i = 1 to 1000 do INSERT INTO Vschematic VALUES ( .. some unique values .. ); Next i //These will always fail: INSERT INTO Vschematic SELECT * FROM A_TABLE LIMIT 1000; or INSERT INTO Vschematic VALUES ( unique vals 1),(unique vals 2), ..., (unique vals n); Regards, Richard Broersma Jr.