Re: Dangerous Naming Confusion

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Dangerous Naming Confusion
Дата
Msg-id CAKFQuwa9MyYhhdJEp0GROQ+7VNo6P679pbWJ0nbZnZ4_H3O8sA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Dangerous Naming Confusion  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Dangerous Naming Confusion
Список pgsql-general
On Mon, Mar 29, 2021 at 3:20 PM Adrian Klaver <adrian.klaver@aklaver.com> 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@krusty.credativ.de


There is also an FAQ entry:


David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Dangerous Naming Confusion
Следующее
От: Bryn Llewellyn
Дата:
Сообщение: Re: = t1 - t0 but t0 + i <> t1 when t1 and t2 timestamptz values and i is an interval value