From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: automating pg_config.h.win32 maintenance |
Date: | 2019-12-17 10:56:17 |
Message-ID: | ebe2ccfe-ab5b-f7e2-242d-988daf594346@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2019-12-17 07:30, Michael Paquier wrote:
> The patch looks pretty clean. I have a few minor comments.
>
> - if (/^AC_INIT\(\[PostgreSQL\], \[([^\]]+)\]/)
> + if (/^AC_INIT\(\[([^\]]+)\], \[([^\]]+)\], \[([^\]]+)\]/)
> {
> Why did you remove the bit about "PostgreSQL"?
Just to make it more general. If we're going to parse the arguments,
why not parse all of them the same way.
> + open(my $i, '<', "src/include/pg_config.h.in")
> + || confess "Could not open pg_config.h.in\n";
> + open(my $o, '>', "src/include/pg_config.h")
> + || confess "Could not write to pg_config.h\n";
> Failure to open pg_config.h.
>
> Wouldn't it be better to remove pg_config_ext.h.win32 as well?
Yeah, good idea. Attached patch is refactored so all three header files
managed by AC_CONFIG_HEADERS are processed the same way.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment | Content-Type | Size |
---|---|---|
v3-0001-Generate-pg_config.h-from-pg_config.h.in-on-Windo.patch | text/plain | 24.8 KB |
v3-0002-Remove-pg_config.h.win32.patch | text/plain | 24.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dmitry Dolgov | 2019-12-17 10:59:50 | Re: Extracting only the columns needed for a query |
Previous Message | Kyotaro Horiguchi | 2019-12-17 10:27:24 | Re: archive status ".ready" files may be created too early |