mirror of
https://github.com/postgres/postgres.git
synced 2025-06-03 00:02:26 -04:00
Code cleanup
for commit c96de2ce1782116bd0489b1cd69ba88189a495e8 Author: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://www.postgresql.org/message-id/20230111185434.GA1912982@nathanxps13
This commit is contained in:
parent
8607630d74
commit
881fa869c6
@ -154,9 +154,6 @@ RestoreArchivedFile(char *path, const char *xlogfname,
|
|||||||
xlogRestoreCmd = BuildRestoreCommand(recoveryRestoreCommand,
|
xlogRestoreCmd = BuildRestoreCommand(recoveryRestoreCommand,
|
||||||
xlogpath, xlogfname,
|
xlogpath, xlogfname,
|
||||||
lastRestartPointFname);
|
lastRestartPointFname);
|
||||||
if (xlogRestoreCmd == NULL)
|
|
||||||
elog(ERROR, "could not build restore command \"%s\"",
|
|
||||||
recoveryRestoreCommand);
|
|
||||||
|
|
||||||
ereport(DEBUG3,
|
ereport(DEBUG3,
|
||||||
(errmsg_internal("executing restore command \"%s\"",
|
(errmsg_internal("executing restore command \"%s\"",
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* The result is a palloc'd string for the restore command built. The
|
* 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
|
* 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
|
* 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 *
|
char *
|
||||||
BuildRestoreCommand(const char *restoreCommand,
|
BuildRestoreCommand(const char *restoreCommand,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user