| From: | Henson Choi <assam258(at)gmail(dot)com> |
|---|---|
| To: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
| Cc: | jian(dot)universality(at)gmail(dot)com, zsolt(dot)parragi(at)percona(dot)com, sjjang112233(at)gmail(dot)com, vik(at)postgresfriends(dot)org, er(at)xs4all(dot)nl, jacob(dot)champion(at)enterprisedb(dot)com, david(dot)g(dot)johnston(at)gmail(dot)com, peter(at)eisentraut(dot)org, li(dot)evan(dot)chao(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Row pattern recognition |
| Date: | 2026-11-23 06:41:00 |
| Message-ID: | CAAAe_zDJny0JwNBgcxRDajJgWLEbj3P7CtdDawec6632fdvf2w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Tatsuo,
> With v55 I don't see the error?
Right, v55 returns 0. As section 1 says under "How it has been
handled so far", v54 and v55 wrap what pull-up, join alias expansion
and virtual generated column expansion put in, in a PlaceHolderVar,
so this example and a, b and c return 0. The example shows the
problem without that wrapping.
But the wrapping fixes it the wrong way. When a join alias is
expanded below its join level, as in the JOIN USING example in the
same section, the backend crashes, and other shapes fail with
internal errors. So the wrapping has to go either way, and that
leaves two ways:
1. Remove the wrapping and accept the division by zero at plan
time.
2. Remove the wrapping and go with the other fix in section 3,
folding in two passes.
Section 2 of my last mail asked you to choose between these two.
Which would you prefer, or do you see a better way?
Best regards,
Henson
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-11-23 06:55:54 | Ensure temporary files are unlinked on errors in pg_receivewal |
| Previous Message | Tatsuo Ishii | 2026-11-23 06:29:11 | Re: Row pattern recognition |