Re: pg_basebackup: could not get transaction log end position from server: FATAL: could not open file "./pg_hba.conf~": Permission denied

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_basebackup: could not get transaction log end position from server: FATAL: could not open file "./pg_hba.conf~": Permission denied
Date: 2014-05-16 15:13:04
Message-ID: 53762B00.5070008@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05/16/2014 07:30 AM, Andres Freund wrote:
>
> Hi,
>
> On 2014-05-16 07:28:42 -0700, Joshua D. Drake wrote:
>> Can we get that fixed please? It seems rather bad behavior for pg_basebackup
>> to fatal out because of the permissions on a backup file of all things.
>> Instead, we should do WARNING and say skipped.
>
> Doesn't sound like a good idea to me. We'd need to have a catalog of
> common unimportant fileendings and such. We surely *do* want to error
> out when we fail to copy an important file.they
>

pg_hba.conf~ is not an important file.

We know what files are important, especially in $PGDATA, they aren't
variable, so why is pg_basebackup failing on a file it should know or
care nothing about?

JD

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-05-16 15:19:03 Re: pg_basebackup: could not get transaction log end position from server: FATAL: could not open file "./pg_hba.conf~": Permission denied
Previous Message Tom Lane 2014-05-16 15:05:08 chr() is still too loose about UTF8 code points