pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Common function for percent placeholder replacement
Date: Wed, 11 Jan 2023 10:54:34 -0800
Message-ID: <20230111185434.GA1912982@nathanxps13> (raw)
In-Reply-To: <f6651555-39c0-ba32-b91a-a632840c37e1@enterprisedb.com>
References: <20221219095114.m4nlp4fb3owmsu65@alvherre.pgsql>
	<8228593d-1ebc-e061-2c61-3815bb364385@enterprisedb.com>
	<20230104003700.GB289060@nathanxps13>
	<1c2204c9-a38e-3075-56dc-eef9a103a645@enterprisedb.com>
	<20230109175357.GB1112921@nathanxps13>
	<f6651555-39c0-ba32-b91a-a632840c37e1@enterprisedb.com>

On Wed, Jan 11, 2023 at 11:09:01AM +0100, Peter Eisentraut wrote:
> committed with that fixed

While rebasing my recovery modules patch set, I noticed a couple of small
things that might be worth cleaning up.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachments:

percentrepl_nitpicks.patch (text/x-diff, 1.1K) download diff --git a/src/backend/access/transam/xlogarchive.c b/src/backend/access/transam/xlogarchive.c index f911e8c3a6..fcc87ff44f 100644 --- a/src/backend/access/transam/xlogarchive.c +++ b/src/backend/access/transam/xlogarchive.c @@ -154,9 +154,6 @@ RestoreArchivedFile(char *path, const char *xlogfname, xlogRestoreCmd = BuildRestoreCommand(recoveryRestoreCommand, xlogpath, xlogfname, lastRestartPointFname); - if (xlogRestoreCmd == NULL) - elog(ERROR, "could not build restore command \"%s\"", - recoveryRestoreCommand); ereport(DEBUG3, (errmsg_internal("executing restore command \"%s\"", diff --git a/src/common/archive.c b/src/common/archive.c index de42e914f7..641a58ee88 100644 --- a/src/common/archive.c +++ b/src/common/archive.c @@ -33,7 +33,7 @@ * The result is a palloc'd string for the restore command built. The * caller is responsible for freeing it. If any of the required arguments * is NULL and that the corresponding alias is found in the command given - * by the caller, then NULL is returned. + * by the caller, then an error is thrown. */ char * BuildRestoreCommand(const char *restoreCommand,

view thread (16+ messages)  latest in thread

Message-ID: <20230111185434.GA1912982@nathanxps13>
Permalink:  ../20230111185434.GA1912982@nathanxps13/
Also on:    postgresql.org/message-id/20230111185434.GA1912982@nathanxps13

 ·  · 

reply

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-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, peter.eisentraut@enterprisedb.com, alvherre@alvh.no-ip.org, pryzby@telsasoft.com
  Subject: Re: Common function for percent placeholder replacement
  In-Reply-To: <20230111185434.GA1912982@nathanxps13>
  References: <20221219095114.m4nlp4fb3owmsu65@alvherre.pgsql> <8228593d-1ebc-e061-2c61-3815bb364385@enterprisedb.com> <20230104003700.GB289060@nathanxps13> <1c2204c9-a38e-3075-56dc-eef9a103a645@enterprisedb.com> <20230109175357.GB1112921@nathanxps13> <f6651555-39c0-ba32-b91a-a632840c37e1@enterprisedb.com> <20230111185434.GA1912982@nathanxps13>

* 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