Skip site navigation (1) Skip section navigation (2)

Re: BUG #4434: Error inserting into view - unrecognized node type: 313

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dean Rasheed" <dean_rasheed(at)hotmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4434: Error inserting into view - unrecognized node type: 313
Date: 2008-09-24 04:38:49
Message-ID: 19152.1222231129@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Dean Rasheed" <dean_rasheed(at)hotmail(dot)com> writes:
> CREATE TABLE foo(a int, b int);
> CREATE VIEW foo_v AS SELECT * FROM foo;
> CREATE RULE foo_r AS ON INSERT TO foo_v DO INSTEAD INSERT INTO foo
> VALUES(NEW.a, NEW.b);
> INSERT INTO foo_v VALUES ((SELECT 1), (SELECT 2)), ((SELECT 3), (SELECT 4));

> ERROR:  unrecognized node type: 313

It looks like the parser's code path for multi-row VALUES is neglecting
to detect sublinks and set pstate->p_hasSubLinks.  I'm too tired to look
closer tonight; anyone want to poke into it?

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Magnus HaganderDate: 2008-09-24 05:58:27
Subject: Re: [HACKERS] 0x1A in control file on Windows
Previous:From: Tom LaneDate: 2008-09-24 03:16:44
Subject: Re: BUG #4435: pg_ctl start doesn't detach when run via SSH

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group