initdb: Use varargs macro for PG_CMD_PRINTF

Started by Peter Eisentrautabout 7 years ago3 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t41043
psql -h localhost -U postgres

Built from patchset v3 (message #3), July 28, 2026 at 03:55 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t41043_3 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t41043_3 && git checkout t41043_3

Patchset v3 (message #3) is on t41043_3

Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Small patch to simplify some no longer necessary complicated code, using
varargs macros.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

0001-initdb-Use-varargs-macro-for-PG_CMD_PRINTF.patchtext/plain; charset=UTF-8; name=0001-initdb-Use-varargs-macro-for-PG_CMD_PRINTF.patch; x-mac-creator=0; x-mac-type=0Download+8-21
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: initdb: Use varargs macro for PG_CMD_PRINTF

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

Small patch to simplify some no longer necessary complicated code, using
varargs macros.

+1

regards, tom lane

#3Ibrar Ahmed
ibrar.ahmad@gmail.com
In reply to: Tom Lane (#2)
Re: initdb: Use varargs macro for PG_CMD_PRINTF

Hi,
Patch does not apply, rebased patch on (
68343b4ad75305391b38f4b42734dc07f2fe7ee2) attached

On Wed, Aug 7, 2019 at 7:04 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

Small patch to simplify some no longer necessary complicated code, using
varargs macros.

+1

regards, tom lane

--
Ibrar Ahmed

Attachments:

t41043_3
initdb-print_v2.patchapplication/octet-stream; name=initdb-print_v2.patchDownload+18-30