From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_basebackup for streaming base backups |
Date: | 2011-01-18 13:47:03 |
Message-ID: | AANLkTik=nnjfhvoUVSrp68W3qtq9xP1TKEDCUHHHuADe@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jan 18, 2011 at 14:26, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Excerpts from Magnus Hagander's message of mar ene 18 08:40:50 -0300 2011:
>> On Tue, Jan 18, 2011 at 10:49, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
>> > + fprintf(stderr, _("%s: could not write to file '%s': %m\n"),
>> >
>> > %m in fprintf is portable?
>>
>> Hmm. I just assumed it was because we use it elsewhere, but I now see
>> we only really use it for ereport() stuff. Bottom line is, I don't
>> know - perhaps it needs to be changed to use strerror()?
>
> Some libc's (such as glibc) know about %m, others presumably don't (it's
> a GNU extension, according to my manpage). ereport does the expansion
> by itself, see expand_fmt_string(). Probably just using strerror() is
> the easiest.
Ok, thanks for clarifying. I've updated to use strerror(). Guess it's
time for another patch, PFA :-)
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
Attachment | Content-Type | Size |
---|---|---|
pg_basebackup.patch | text/x-patch | 45.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2011-01-18 14:24:00 | Re: limiting hint bit I/O |
Previous Message | Alvaro Herrera | 2011-01-18 13:39:05 | Re: ToDo List Item - System Table Index Clustering |