| From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
|---|---|
| To: | Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_plan_advice |
| Date: | 2025-11-04 19:54:44 |
| Message-ID: | CA+TgmoY9Ne_Sh10u6LSPc3wvOQPLp3kF9nBp3nqJEG2JGF2QiA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Oct 31, 2025 at 5:59 AM Jakub Wartak
<jakub(dot)wartak(at)enterprisedb(dot)com> wrote:
> My gcc-13 was nitpicking a little bit (see
> compilation_warnings_v1.txt), so attached is just a tiny diff to fix
> some of those issues. After that, clang-20 run was clean too.
Here's v2. Change log:
- Attempted to fix the compiler warnings. I didn't add elog() before
pg_unreachable() as you suggested; instead, I added a dummy return
afterwards. Let's see if that works. Also, I decided after reading the
comment for list_truncate() that what I'd done there was not going to
be acceptable, so I rewrote the code slightly. It now copies the list
when adding to it, instead of relying on the ability to use
list_truncate() to recreate the prior tstate.
- Deleted the SQL-callable pg_parse_advice function and related code.
That was useful to me early in development but I don't think anyone
will need it at this point; if you want to test whether an advice
string can be parsed, just try setting pg_plan_advice.advice.
- Fixed a couple of dumb bugs in pgpa_trove.c.
- Added a few more regression test scenarios.
- Fixed a couple of typos/thinkos.
--
Robert Haas
EDB: http://www.enterprisedb.com
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0005-Allow-for-plugin-control-over-path-generation-str.patch | application/octet-stream | 55.4 KB |
| v2-0003-Store-information-about-Append-node-consolidation.patch | application/octet-stream | 27.0 KB |
| v2-0002-Store-information-about-elided-nodes-in-the-final.patch | application/octet-stream | 9.3 KB |
| v2-0001-Store-information-about-range-table-flattening-in.patch | application/octet-stream | 7.9 KB |
| v2-0004-Temporary-hack-to-unbreak-partitionwise-join-cont.patch | application/octet-stream | 15.2 KB |
| v2-0006-WIP-Add-pg_plan_advice-contrib-module.patch | application/octet-stream | 359.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2025-11-04 19:55:56 | Re: meson's in-tree libpq header search order vs -Dextra_include_dirs |
| Previous Message | Matheus Alcantara | 2025-11-04 19:51:47 | Re: Have the planner convert COUNT(1) / COUNT(not_null_col) to COUNT(*) |