Re: Dangerous Naming Confusion

2021-03-30 Thread Don Seiler
On Mon, Mar 29, 2021 at 5:22 PM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Mon, Mar 29, 2021 at 3:20 PM Adrian Klaver > 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 su

Re: Dangerous Naming Confusion

2021-03-29 Thread David G. Johnston
On Mon, Mar 29, 2021 at 3:20 PM Adrian Klaver 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

Re: Dangerous Naming Confusion

2021-03-29 Thread Adrian Klaver
On 3/29/21 3:00 PM, Don Seiler wrote: Good evening, Please see my gist at https://gist.github.com/dtseiler/9ef0a5e2b1e0efc6a13d5661436d4056 for a complete test case. I tested this on PG 12.6 and 13.2 and observed the same o