Re: BUG #19947: Rules see parent generated expression instead of routed partition's expression

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: 1548140642(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, Guofenglinux <guofenglinux(at)gmail(dot)com>
Subject: Re: BUG #19947: Rules see parent generated expression instead of routed partition's expression
Date: 2026-12-01 00:38:43
Message-ID: CAGRkXqRR0PhrXQ38PkEL6grK-kDbc76WY7ngB8UgEkFs86kAUg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Milo,

Thanks for the report, I can reproduce it.

I am leaning toward not a bug because a rule is applied to the table
named in the query, before we know which partition the row goes to.
The sentence you quote is about the value that gets stored. If you
need that value, an AFTER ROW trigger on p works. In your example it
sees 30 and 60.

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-12-01 00:40:27 Re: BUG #19949: pg_partition_tree() returns dropped partition from cached OID list
Previous Message Ishjaap Singh 2026-12-01 00:30:15 Re: BUG #19936: Planning is slower on 19.0 with many partial indexes on a SQL function