From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Collin Peters <cadiolis@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Insert into VIEW using RULE. Not possible to use nextval()?
Date: Fri, 4 May 2007 15:16:51 -0700 (PDT)
Message-ID: <188322.23616.qm@web31808.mail.mud.yahoo.com> (raw)
In-Reply-To: <df01c91b0705041451j1514eaa4i2b68a4f4b6331384@mail.gmail.com>
--- Collin Peters <cadiolis@gmail.com> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rabroersma@yahoo.com, cadiolis@gmail.com
Subject: Re: Insert into VIEW using RULE. Not possible to use nextval()?
In-Reply-To: <188322.23616.qm@web31808.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox