Re: [BUGS] BUG in temp tables involving a temp table not properly

2005-06-07 Thread Frank van Vugt
Ouch, SS> You've analyzed the situation incorrectly I believe. SS> In this query in the subselect the id column is an outer reference to SS> the id column generated from full_sequence. TL> This is not a bug, it is user error. TL> The actual problem here is that "id" is a perfectly valid outer re

Re: [BUGS] BUG in temp tables involving a temp table not properly hiding a regular table as well as allowing non-existent column names

2005-06-07 Thread Tom Lane
Frank van Vugt <[EMAIL PROTECTED]> writes: > Looking forward to your analysis of the following bug: This is not a bug, it is user error. > CREATE TYPE full_sequence_type AS (id int); > CREATE OR REPLACE FUNCTION full_sequence(integer, integer) > RETURNS SETOF full_sequence_type > ... > cr

Re: [BUGS] BUG in temp tables involving a temp table not properly

2005-06-07 Thread Stephan Szabo
On Tue, 7 Jun 2005, Frank van Vugt wrote: > Looking forward to your analysis of the following bug: You've analyzed the situation incorrectly I believe. > -- however, the following query will happily run AND return a wrong result > -- based on the regular table instead of the temporary one > sel

[BUGS] BUG in temp tables involving a temp table not properly hiding a regular table as well as allowing non-existent column names

2005-06-07 Thread Frank van Vugt
L.S. Looking forward to your analysis of the following bug: database=# select version(); version PostgreSQL 8.0.3 on i586-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 (1 row) ST