| From: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
|---|---|
| To: | Sami Imseih <samimseih(at)gmail(dot)com> |
| Cc: | zengman <zengman(at)halodbtech(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Refactor query normalization into core query jumbling |
| Date: | 2025-12-30 08:13:32 |
| Message-ID: | aVOJrJ4wP/6pHuwz@ip-10-97-1-34.eu-west-3.compute.internal |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On Tue, Dec 23, 2025 at 10:35:18AM -0600, Sami Imseih wrote:
> v3 implements this approach without a callback. This establishes a clear
> boundary: core owns JumbleState modifications, extensions consume the
> results through the API.
>
Thanks for the new patch version.
Some random comments:
=== 1
+ SetConstantLengths((JumbleState *) jstate, query, query_loc);
This cast seems unnecessary.
=== 2
+CompLocation(const void *a, const void *b)
In the commit message I can see "Functions are renamed to match core naming
conventions" but wasn't comp_location() better?
=== 3
+ /*
+ * generate the normalized query. Note that the normalized
+ * representation may well vary depending on just which
+ * "equivalent" query is used to create the hashtable entry. We
+ * assume this is OK.
+ */
+ norm_query = GenerateNormalizedQuery(jstate, query,
Should part of this comment be on top of the GenerateNormalizedQuery()
definition instead?
Regards,
--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Pyhalov | 2025-12-30 09:02:00 | Re: Limit memory usage by postgres_fdw batches |
| Previous Message | Chao Li | 2025-12-30 08:07:37 | Re: Improve logical replication usability when tables lack primary keys |