pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Error out in pg_rewind if lstat() fails.
3+ messages / 3 participants
[nested] [flat]
* pgsql: Error out in pg_rewind if lstat() fails.
@ 2015-04-15 20:15 Heikki Linnakangas <heikki.linnakangas@iki.fi>
0 siblings, 1 reply; 3+ messages in thread
From: Heikki Linnakangas @ 2015-04-15 20:15 UTC (permalink / raw)
To: pgsql-committers
Error out in pg_rewind if lstat() fails.
A "file not found" is expected if the source server is running, so don't
complain about that. But any other error is definitely not expected.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b5e560c24603e5325a81055c8f36cc45d48609e4
Modified Files
--------------
src/bin/pg_rewind/copy_fetch.c | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Error out in pg_rewind if lstat() fails.
@ 2015-04-16 01:17 Michael Paquier <michael.paquier@gmail.com>
parent: Heikki Linnakangas <heikki.linnakangas@iki.fi>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Paquier @ 2015-04-16 01:17 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers
On Thu, Apr 16, 2015 at 5:15 AM, Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Error out in pg_rewind if lstat() fails.
>
> A "file not found" is expected if the source server is running, so don't
> complain about that. But any other error is definitely not expected.
Nitpicking: strings of pg_fatal need to have a newline '\n' for readability.
--
Michael
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Error out in pg_rewind if lstat() fails.
@ 2015-04-16 06:23 Heikki Linnakangas <hlinnaka@iki.fi>
parent: Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Heikki Linnakangas @ 2015-04-16 06:23 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-committers
On 04/16/2015 04:17 AM, Michael Paquier wrote:
> On Thu, Apr 16, 2015 at 5:15 AM, Heikki Linnakangas
> <heikki.linnakangas@iki.fi> wrote:
>> Error out in pg_rewind if lstat() fails.
>>
>> A "file not found" is expected if the source server is running, so don't
>> complain about that. But any other error is definitely not expected.
>
> Nitpicking: strings of pg_fatal need to have a newline '\n' for readability.
Ah, good catch! Fixed.
- Heikki
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-04-16 06:23 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 20:15 pgsql: Error out in pg_rewind if lstat() fails. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-04-16 01:17 ` Michael Paquier <michael.paquier@gmail.com>
2015-04-16 06:23 ` Heikki Linnakangas <hlinnaka@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox