Select Statements freeze. - Mailing list pgsql-bugs

From Axel Spallek
Subject Select Statements freeze.
Date
Msg-id 003f01c30a42$756776a0$3716a8c0@wann.lan
Whole thread Raw
Responses Re: Select Statements freeze.
List pgsql-bugs
Hi.
With the following you can sometimes kill (but always slow down) the psql-S=
erver.

select=20
table1.a,
table1.b
from table2;

I had that problem with this one:

CREATE VIEW akdsummon AS=20

SELECT=20

akdsummonpre.kundennr,=20

(sum(akdsummonpre.SummeGGRKR))::numeric(9,2) as UmsSum,

akdsummonpre.mmon,=20

akdsummonpre.myear=20

FROM auftraege

GROUP BY akdsummonpre.kundennr,=20

akdsummonpre.mmon,=20

akdsummonpre.myear=20

;





I simply forgot to change the auftraege into akdsummonpre.

The bad thing is, that pgadmin hangs too as soon as you leftclick such a vi=
ew.

After PGAdmin hangs, you even can't drop that view by psql.

IMHO the backend should report a "Table table1 not found in from part of th=
e query."

And then it should quit!



Sincerly

Axel Spallek

pgsql-bugs by date:

Previous
From: hvicha
Date:
Subject: Re: Bug #952: real type in WHERE
Next
From: Joe Slag
Date:
Subject: 7.1 -> 7.3 migration timestamp problem