[BUGS] double insert on inherited table with where constraint based on sequence

2006-07-19 Thread Andrew Hammond
Perhaps I'm missing something here, but it looks like I'm getting an insert into both the parent and child tables when my RULE's where clause is based on a DEFAULT generated from a sequence. It looks like nextval on the sequence is called 3 times for every insert. I don't know if this is properly

[BUGS] BUG #2538: Hang on insert/select

2006-07-19 Thread John Lyssy
The following bug has been logged online: Bug reference: 2538 Logged by: John Lyssy Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.4 Operating system: Windows 2003 Server Description:Hang on insert/select Details: Client application hangs on doing insert a

[BUGS] BUG #2535: Unicode on Windows: aogonek is not distinguished from agrave

2006-07-19 Thread Marius Žalinauskas
The following bug has been logged online: Bug reference: 2535 Logged by: Marius Žalinauskas Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.4 Operating system: Windows XP Pro Description:Unicode on Windows: aogonek is not distinguished from agrave Details:

Re: [BUGS] double insert on inherited table with where constraint based on sequence

2006-07-19 Thread Tom Lane
"Andrew Hammond" <[EMAIL PROTECTED]> writes: > Rules: > t2_part AS > ON INSERT TO t2 >WHERE new.id > 10 DO INSTEAD INSERT INTO t2_child (id, name) > VALUES (new.id, new.name) "new.id" is replaced by "nextval('t2_id_seq'::regclass)" each time it appears ... which will be four separat

[BUGS] XML2 module: odd query results

2006-07-19 Thread Thiago Silva
Hi, Recently, I had some problems with queries using the XML2 module. I was able to reproduce the odd results using the following commands: DROP TABLE tag CASCADE; CREATE TABLE tag ( id SERIAL PRIMARY KEY, data TEXT ); INSERT INTO tag ( data ) VALUES ( 'anything' ); SELECT id, data FROM tag WHE

Re: [BUGS] BUG #2535: Unicode on Windows: aogonek is not distinguished from agrave

2006-07-19 Thread Marius Žalinauskas
For the record: the original BUG #2535 report should be viewed in UTF-8 to see inserted values. -- Marius Zalinauskas > The following bug has been logged online: > > Bug reference: 2535 > Logged by: Marius Žalinauskas > Email address: [EMAIL PROTECTED] > PostgreSQL version:

[BUGS] BUG #2539: PL/PgSQL doesn't disallow COPY commands on compile, even though it disallows them.

2006-07-19 Thread David Fetter
The following bug has been logged online: Bug reference: 2539 Logged by: David Fetter Email address: [EMAIL PROTECTED] PostgreSQL version: All Operating system: Linux and OSX that I've tested Description:PL/PgSQL doesn't disallow COPY commands on compile, even though

Re: [BUGS] BUG #2539: PL/PgSQL doesn't disallow COPY commands on compile, even though it disallows them.

2006-07-19 Thread Tom Lane
"David Fetter" <[EMAIL PROTECTED]> writes: > Description:PL/PgSQL doesn't disallow COPY commands on compile, even > though it disallows them. There are many many things that won't be checked until execution. I can't get excited about this one. regards, tom lane --

Re: [BUGS] BUG #2539: PL/PgSQL doesn't disallow COPY commands on compile, even though it disallows them.

2006-07-19 Thread David Fetter
On Wed, Jul 19, 2006 at 07:02:15PM -0400, Tom Lane wrote: > "David Fetter" <[EMAIL PROTECTED]> writes: > > Description:PL/PgSQL doesn't disallow COPY commands on > > compile, even though it disallows them. > > There are many many things that won't be checked until execution. I > can't get