Re:

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Oliver Dizon *EXTERN*" <johnoliver(at)rtzassociates(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re:
Date: 2015-01-27 13:18:09
Message-ID: A737B7A37273E048B164557ADEF4A58B365934CE@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oliver Dizon wrote:
> I hope I'm in the right place to throw this. I just want to ask the reason behind this weird scenario.
>
> All records were deleted in a table even if the subquery in the where clause has a missing a column.
>
> --from a certain script where table_id is not yet existing on table_sample
>
> delete from main_table_sample where table_id in (select table_id from table_sample);
>
> Im expecting that postgres will return an ERROR message like
> 'column "table_id" does not exist on table table_sample'
>
> But it did not returned any error and deleted all the records instead.
>
> Version: psql (8.4.9, server 9.2.5)

That seems unlikely.

Can you produce a reproducible test case?

Yours,
Laurenz Albe

In response to

  • at 2015-01-27 10:46:13 from Oliver Dizon

Browse pgsql-general by date

  From Date Subject
Next Message David Guyot 2015-01-27 13:29:52 sslmode verify-ca and verify-full: essentialy the same?
Previous Message Andreas Laggner 2015-01-27 11:42:37 cannot start 9.3 after system crash