pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Luke Koops <luke.koops@entrust.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #4958: Stats collector hung on WaitForMultipleObjectsEx while attempting to recv a datagram
Date: Sat, 25 Aug 2012 00:55:22 -0400
Message-ID: <1345870202-sup-3003@alvh.no-ip.org> (raw)
In-Reply-To: <CA+TgmobgZtEobmee7t9ozF3L5Rrn6W1_qX4w5FCFLtkjRNwbFA@mail.gmail.com>
References: <200907311459.n6VExuSa036743@wwwmaster.postgresql.org>
	<CA+TgmoZheGK5AvR8Nw0WPwwxzvfpzFENdCbP_2ennJSBnraEnA@mail.gmail.com>
	<1410.1344363743@sss.pgh.pa.us>
	<CA+TgmobQ0sLjzHdEQZr9QG7n2r-BKej+UTH7rcPPh09doMvUDg@mail.gmail.com>
	<1345576064-sup-7145@alvh.no-ip.org>
	<9323.1345581034@sss.pgh.pa.us>
	<CA+TgmoanozBPOBL0qB4OzP4Jn3xJHYaunwwfmRrT1sBZhnSgew@mail.gmail.com>
	<28583.1345688651@sss.pgh.pa.us>
	<CA+TgmobgZtEobmee7t9ozF3L5Rrn6W1_qX4w5FCFLtkjRNwbFA@mail.gmail.com>

Excerpts from Robert Haas's message of sáb ago 25 00:10:57 -0400 2012:

> > It looks sane to me in a quick once-over (bearing in mind I can't test
> > it).  What's bothering you about the ereport calls?
> 
> Well, 9.1 currently has:
> 
> errmsg_internal("failed to enumerate network events: %i", (int) GetLastError()))
> 
> Prior to your patch, master had:
> 
> errmsg_internal("failed to enumerate network events: error code %lu",
> GetLastError())
> 
> And you changed it to:
> 
> elog(ERROR, "failed to enumerate network events: error code %u",
> WSAGetLastError())
> 
> So obviously there's a conflict there.  In the previously-posted
> version, I chose to just take your version, but I'm not sure whether
> it would be better -- in the back branches -- to simply replace
> GetLastError() with WSAGetLastError() and leave it alone otherwise.

Note that for translations none of this matters, because
errmsg_internal() does not mark its argument for translation, and
neither does elog().

The change of %i to "error code %lu" was done recently (during 9.2 devel
cycle) to make all error messages involving GetLastError() consistent;
see commit 1af55e275.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




view thread (25+ messages)  latest in thread

Message-ID: <1345870202-sup-3003@alvh.no-ip.org>
Permalink:  ../1345870202-sup-3003@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1345870202-sup-3003@alvh.no-ip.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, luke.koops@entrust.com
  Subject: Re: BUG #4958: Stats collector hung on WaitForMultipleObjectsEx while attempting to recv a datagram
  In-Reply-To: <1345870202-sup-3003@alvh.no-ip.org>

* 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