From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
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:40:58 |
Message-ID: | 13218.1087483258@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> select table1.oid from view1;
> NOTICE: adding missing FROM-clause entry for table "table1"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is an unqualified join, and will yield count(table1)*count(view1)
rows. table1.oid is not exposed by the view and so you can't select
it from the view. What you wrote is interpreted as
select table1.oid from view1, table1;
> (psql crashes)
I'm not surprised psql ran out of memory, but I'd have expected a more
graceful response than "crashing". What happened *exactly*? On my
machine, recent psql versions just discard excess data and then complain
later.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | PostgreSQL Bugs List | 2004-06-17 14:43:52 | BUG #1170: jdbc-driver: DatabaseMetaData.getTypeInfo() gives incorrect result |
Previous Message | Richard Huxton | 2004-06-17 13:46:58 | Re: BUG #1169: Select table.oid from view seems to loop |