Search Postgresql Archives

Re: Dangerous Naming Confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 29, 2021 at 5:22 PM David G. Johnston <david.g.johnston@xxxxxxxxx> wrote:
On Mon, Mar 29, 2021 at 3:20 PM Adrian Klaver <adrian.klaver@xxxxxxxxxxx> wrote:
On 3/29/21 3:00 PM, Don Seiler wrote:
>
> I'm wondering if this is expected behavior that PG uses the
> dts_orders.order_id value in the subquery "select order_id from
> dts_temp" when dts_temp doesn't have its own order_id column. I would
> have expected an error that the column doesn't exist. Seems very
> counter-intuitive to think PG would use a column from a different table.

See:

https://www.postgresql.org/message-id/Pine.LNX.4.56.0308011345320.881@xxxxxxxxxxxxxxxxxx


There is also an FAQ entry:


David J.


This is good to know. I figured it might "working as expected". Still seems annoying/counter-intuitive to me but at least we know to look for it.

Thanks,
Don.

--
Don Seiler
www.seiler.us

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux