initdb: introduce PG_CMD_PRINTF intestead of PG_CMD_PRINTF{1,2,3} - Mailing list pgsql-hackers

From Alexander Kuleshov
Subject initdb: introduce PG_CMD_PRINTF intestead of PG_CMD_PRINTF{1,2,3}
Date
Msg-id CANCZXo6de60+6fohGe_1DhHvr=7r7o__UGU8q+7jsgW8nEzVPQ@mail.gmail.com
Whole thread Raw
Responses Re: initdb: introduce PG_CMD_PRINTF intestead of PG_CMD_PRINTF{1,2,3}
List pgsql-hackers
Hello all,

The src/bin/initdb/initdb.c provides three macros to write data to
cmdfd. All of these macro do the same, but with different amount of
arguments for fprintf().

Attached patch introduces PG_CMD_PRINTF macro which will take set of
variadic arguments via __VA_ARGS__ to replace the PG_CMD_PRINTF{1,2,3}
macros.

Any objections?

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Combining Aggregates
Next
From: David Rowley
Date:
Subject: Re: Parallel Aggregate