From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
Date: Thu, 29 Sep 2016 18:08:53 -0400
Message-ID: <14719.1475186933@sss.pgh.pa.us> (raw)
In-Reply-To: <20160929214015.GA446237@alvherre.pgsql>
References: <20160929214015.GA446237@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> I wouldn't even put a lot of faith in the errno being meaningful,
>> considering that it does close() calls before capturing the errno.
> So we do close() in a bunch of places while closing shop, which calls
> _close() on Windows; this function sets errno.
But only on failure, no? The close()s usually shouldn't fail, and
therefore shouldn't change errno, it's just that you can't trust that
100%.
I think likely what's happening is that we're seeing a leftover value from
some previous syscall that set GetLastError's result (and, presumably,
wasn't fatal so far as pg_upgrade was concerned).
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, spam_eater@gmx.net, pgsql-hackers@postgresql.org
Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
In-Reply-To: <14719.1475186933@sss.pgh.pa.us>
References: <20160929214015.GA446237@alvherre.pgsql> <14719.1475186933@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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