From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Refactor pg_get_line() to expose an alternative StringInfo-based
Date: Mon, 07 Sep 2020 13:13:00 -0400
Message-ID: <1697751.1599498780@sss.pgh.pa.us> (raw)
In-Reply-To: <20200907165844.GA7588@alvherre.pgsql>
References: <20200907165844.GA7588@alvherre.pgsql>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2020-Sep-07, Tom Lane wrote:
>> I didn't bother tracking down exactly where initdb.c is getting
>> stringinfo.h from, but it clearly does import it somewhere in
>> our rat's nest of headers.
> You can see it here: https://doxygen.postgresql.org/initdb_8c.html
> It's through xlog_internal.h (not that it matters much).
If there were something to be on the warpath about, it's that initdb
is pulling in such an obviously backend-only header as that. I wonder
if we should refactor to fix that.
Quick experimentation says that the symbols initdb actually needs out
of that header are
DEFAULT_MIN_WAL_SEGS
DEFAULT_MAX_WAL_SEGS
IsValidWalSegSize()
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, pavel.stehule@gmail.com
Subject: Re: pgsql: Refactor pg_get_line() to expose an alternative StringInfo-based
In-Reply-To: <1697751.1599498780@sss.pgh.pa.us>
References: <20200907165844.GA7588@alvherre.pgsql> <1697751.1599498780@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox