Re: BUG #2440: TEMP TABLES in Postgres 8.1.3 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2440: TEMP TABLES in Postgres 8.1.3
Date
Msg-id 12207.1147790317@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2440: TEMP TABLES in Postgres 8.1.3  ("Peter Exner" <exner@his.de>)
List pgsql-bugs
"Peter Exner" <exner@his.de> writes:
> SQL-Statement:
> UPDATE table1 SET value1 = value1 - (SELECT value1_sum FROM tmp_table WHERE
> table1.table1_id = tmp_table.max_id) WHERE split_anteil < 10000 AND afa_ende
> = 24061 AND table1.table1_id = tmp_table.max_id;

That's not standard SQL.  You can fix it to work under 8.1 the same as
it did before by adding "FROM tmp_table", or if you are stubborn you can
turn add_missing_from on ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: google@gmx-topmail.de
Date:
Subject: ...
Next
From: "Arjen van der Meijden"
Date:
Subject: BUG #2441: All useable indexes for an IN are used, not just one