Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit286049d

Browse files
committed
Clean up unportable attempt to use #if inside a macro call, also
faulty code in third arm of #if. Per buildfarm reports.
1 parenta3382de commit286049d

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

‎src/backend/postmaster/pgarch.c

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*
2121
* IDENTIFICATION
22-
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.34 2007/12/1209:39:54 petere Exp $
22+
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.35 2007/12/1216:53:14 tgl Exp $
2323
*
2424
*-------------------------------------------------------------------------
2525
*/
@@ -489,29 +489,42 @@ pgarch_archiveXlog(char *xlog)
489489
if (WIFEXITED(rc))
490490
{
491491
ereport(lev,
492-
(errmsg("archive command failed with exit code %d",WEXITSTATUS(rc)),
493-
errdetail("The failed archive command was: %s",xlogarchcmd)));
492+
(errmsg("archive command failed with exit code %d",
493+
WEXITSTATUS(rc)),
494+
errdetail("The failed archive command was: %s",
495+
xlogarchcmd)));
494496
}
495497
elseif (WIFSIGNALED(rc))
496498
{
497-
ereport(lev, (
498499
#if defined(WIN32)
499-
errmsg("archive command was terminated by exception 0x%X",WTERMSIG(rc)),
500-
errhint("See C include file \"ntstatus.h\" for a description of the hexadecimal value."),
500+
ereport(lev,
501+
(errmsg("archive command was terminated by exception 0x%X",
502+
WTERMSIG(rc)),
503+
errhint("See C include file \"ntstatus.h\" for a description of the hexadecimal value."),
504+
errdetail("The failed archive command was: %s",
505+
xlogarchcmd)));
501506
#elif defined(HAVE_DECL_SYS_SIGLIST)&&HAVE_DECL_SYS_SIGLIST
502-
errmsg("archive command was terminated by signal %d: %s",
503-
WTERMSIG(rc),
504-
WTERMSIG(rc)<NSIG ?sys_siglist[WTERMSIG(rc)] :"(unknown)"),
507+
ereport(lev,
508+
(errmsg("archive command was terminated by signal %d: %s",
509+
WTERMSIG(rc),
510+
WTERMSIG(rc)<NSIG ?sys_siglist[WTERMSIG(rc)] :"(unknown)"),
511+
errdetail("The failed archive command was: %s",
512+
xlogarchcmd)));
505513
#else
506-
errmsg("archive command was terminated by signal %d",WTERMSIG(exitstatus)),
514+
ereport(lev,
515+
(errmsg("archive command was terminated by signal %d",
516+
WTERMSIG(rc)),
517+
errdetail("The failed archive command was: %s",
518+
xlogarchcmd)));
507519
#endif
508-
errdetail("The failed archive command was: %s",xlogarchcmd)));
509520
}
510521
else
511522
{
512523
ereport(lev,
513-
(errmsg("archive command exited with unrecognized status %d",rc),
514-
errdetail("The failed archive command was: %s",xlogarchcmd)));
524+
(errmsg("archive command exited with unrecognized status %d",
525+
rc),
526+
errdetail("The failed archive command was: %s",
527+
xlogarchcmd)));
515528
}
516529

517530
return false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp