Re: Bug or Feature? Subquery issue. - Mailing list pgsql-bugs

From Josh Berkus
Subject Re: Bug or Feature? Subquery issue.
Date
Msg-id 200310212025.47341.josh@agliodbs.com
Whole thread Raw
In response to Re: Bug or Feature? Subquery issue.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom,

> This is absolutely NOT an error.  iddomain in the subquery is a
> legitimate outer reference, if it's not otherwise known in the subquery.
> There is no clause in the SQL spec that says that outer references are
> invisible in any context ... even if it means you just deleted your
> whole table, which is what I think will happen here...

Yup, that's what happened.

Wasn't sure.    We're OK then.

--
Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug or Feature? Subquery issue.
Next
From: "Christopher Travers"
Date:
Subject: BUG: PLPGSQL function causes PgSQL process to die when inserting into a view