From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | John Naylor <johncnaylorls(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Andres Freund <andres(at)anarazel(dot)de>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Subject: | Re: ECPG cleanup and fix for clang compile-time problem |
Date: | 2024-08-12 19:19:57 |
Message-ID: | 708035.1723490397@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
John Naylor <johncnaylorls(at)gmail(dot)com> writes:
> I started looking at the earlier cleanup patches.
Thanks for looking!
> 0001 seems straightforward. Note: It doesn't apply cleanly anymore,
> but does with 'patch'.
Odd, after rebasing it seems to have only line-number differences.
> + # Emit the target part of the rule.
> + # Note: the leading space is just to match
> + # the old, rather weird output logic.
> + $tstr = ' ' . $non_term_id . ':';
> + add_to_buffer('rules', $tstr);
> Removing the leading space (or making it two spaces) has no effect on
> the output -- does that get normalized elsewhere?
It does affect horizontal space in the generated preproc.y file,
which'd have no effect on the derived preproc.c file. I tweaked
the commit message to clarify that.
I adopted your other suggestions, no need to rehash them.
Here's a rebased but otherwise identical patchset. I also added
an 0007 that removes check_rules.pl as threatened.
regards, tom lane
Attachment | Content-Type | Size |
---|---|---|
v3-0001-Clean-up-indentation-and-whitespace-inconsistenci.patch | text/x-diff | 176.1 KB |
v3-0002-Clean-up-documentation-of-parse.pl-and-add-more-i.patch | text/x-diff | 12.3 KB |
v3-0003-Major-cleanup-simplification-and-documentation-of.patch | text/x-diff | 24.0 KB |
v3-0004-Re-implement-ecpg-preprocessor-s-string-managemen.patch | text/x-diff | 109.3 KB |
v3-0005-Move-some-functions-into-a-new-file-ecpg-preproc-.patch | text/x-diff | 6.4 KB |
v3-0006-Improve-ecpg-preprocessor-s-memory-management.patch | text/x-diff | 88.3 KB |
v3-0007-Remove-ecpg-s-check_rules.pl.patch | text/x-diff | 6.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2024-08-12 19:47:58 | Re: tiny step toward threading: reduce dependence on setlocale() |
Previous Message | Doruk Yilmaz | 2024-08-12 18:43:48 | [Patch] add new parameter to pg_replication_origin_session_setup |