From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: debug log in pg_archivecleanup |
Date: | 2010-06-17 06:26:46 |
Message-ID: | AANLkTilfZBRfYs3bdpNzbwPA23SRJbWvI4i5gdGDMLbM@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Jun 16, 2010 at 12:24 PM, Takahiro Itagaki
<itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> wrote:
>
> Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
>> This is because pg_archivecleanup puts the line break "\n" in the head of
>> debug message. Why should we do so?
>>
>> -----------------------
>> if (debug)
>> fprintf(stderr, "\n%s: removing \"%s\"", progname, WALFilePath);
>> -----------------------
>
> We also need "\n" at line 308.
> L.125: fprintf(stderr, "\n%s: removing \"%s\"", progname, WALFilePath);
> L.308: fprintf(stderr, "%s: keep WAL file %s and later", progname, exclusiveCleanupFileName);
Yes. What about the attached patch?
> Note that we don't need a line break at Line 130
> because strerror() fills the last %s.
> L.130: fprintf(stderr, "\n%s: ERROR failed to remove \"%s\": %s",
Right.
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
Attachment | Content-Type | Size |
---|---|---|
archivecleanup_line_break_v1.patch | application/octet-stream | 1.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2010-06-17 06:29:34 | Re: ANNOUNCE list (was Re: New PGXN Extension site) |
Previous Message | Heikki Linnakangas | 2010-06-17 06:09:48 | Re: streaming replication breaks horribly if master crashes |