From: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
---|---|
To: | Robert Osowiecki <robson(at)cavern(dot)pl> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #1169: Select table.oid from view seems to loop |
Date: | 2004-06-17 14:47:45 |
Message-ID: | 20040617074400.L45029@megazone.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Thu, 17 Jun 2004, PostgreSQL Bugs List wrote:
> Description: Select table.oid from view seems to loop
>
> Details:
>
> Hello!
>
> Here's what i found:
>
> select count(*) from view1;
> count
> -------
> 12874
> (1 row)
>
> select table1.oid from view1;
> NOTICE: adding missing FROM-clause entry for table "table1"
> (psql crashes)
Note the notice. IIRC the above is technically invalid SQL, but
PostgreSQL tries to do what it thinks you want which is to transform it
into:
select table1.oid from view1, table1;
There's a GUC variable (add_missing_from) which allows you to control
whether it does the transform.
From | Date | Subject | |
---|---|---|---|
Next Message | PostgreSQL Bugs List | 2004-06-17 14:54:43 | BUG #1171: select distinct 'value',... fails. |
Previous Message | PostgreSQL Bugs List | 2004-06-17 14:43:52 | BUG #1170: jdbc-driver: DatabaseMetaData.getTypeInfo() gives incorrect result |