initdb: introduce PG_CMD_PRINTF intestead of PG_CMD_PRINTF{1,2,3}

From: Alexander Kuleshov <kuleshovmail(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: initdb: introduce PG_CMD_PRINTF intestead of PG_CMD_PRINTF{1,2,3}
Date: 2016-03-17 12:07:18
Message-ID: CANCZXo6de60+6fohGe_1DhHvr=7r7o__UGU8q+7jsgW8nEzVPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
initdb-print.patch text/x-patch 4.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2016-03-17 12:22:07 Re: Parallel Aggregate
Previous Message Tomas Vondra 2016-03-17 11:59:42 Re: Combining Aggregates