Re: inconsistent tableoid handling in COPY WHERE clause

2025-11-05 Thread jian he
On Thu, Nov 6, 2025 at 3:44 AM Masahiko Sawada wrote: > > > > > I suggest that we should prohibit using tableoid in COPY WHERE clauses > > for the time being. I don't know if there would be a way to make them > > work correctly at all, but most likely not in a backpatchable way anyway. > > > > I

Re: inconsistent tableoid handling in COPY WHERE clause

2025-11-05 Thread Masahiko Sawada
On Wed, Nov 5, 2025 at 3:06 AM Peter Eisentraut wrote: > > I think the COPY FROM WHERE clause is handling the tableoid column in a > way that is inconsistent with its usual definition. > > Consider a partitioning hierarchy like > > DROP TABLE IF EXISTS xp; > > CREATE TABLE xp (a int, b int) PARTIT

Re: inconsistent tableoid handling in COPY WHERE clause

2025-11-05 Thread Peter Eisentraut
On 05.11.25 12:13, Kirill Reshke wrote: Looks like this issue is currently discussed at [0]. Should we continue here or there? [0]https://www.postgresql.org/message-id/ CACJufxHGGc25a2m%2B3Dezfctuykn51n5k3FJK6w3KSqfSFc5gvQ%40mail.gmail.com I'm aware of that thread. I started this new thread

Re: inconsistent tableoid handling in COPY WHERE clause

2025-11-05 Thread Kirill Reshke
On Wed, 5 Nov 2025 at 16:06, Peter Eisentraut wrote: > > I think the COPY FROM WHERE clause is handling the tableoid column in a > way that is inconsistent with its usual definition. > > Consider a partitioning hierarchy like > > DROP TABLE IF EXISTS xp; > > CREATE TABLE xp (a int, b int) PARTITIO

inconsistent tableoid handling in COPY WHERE clause

2025-11-05 Thread Peter Eisentraut
I think the COPY FROM WHERE clause is handling the tableoid column in a way that is inconsistent with its usual definition. Consider a partitioning hierarchy like DROP TABLE IF EXISTS xp; CREATE TABLE xp (a int, b int) PARTITION BY LIST (a); CREATE TABLE xp1 PARTITION OF xp FOR VALUES IN (1);