Re: "unexpected EOF" messages

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: "unexpected EOF" messages
Date: 2012-05-03 16:41:40
Message-ID: CA+TgmoYnnP8j4A4Hbe76-qj3c5u5_3LHG7aD3igfqnx03tbWfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 3, 2012 at 11:46 AM, Kevin Grittner
<Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
>> Excerpts from Magnus Hagander's message:
>>> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>>> In the context of yesterday's discussions, I wonder whether a
>>>> filter by SQLSTATE would be appropriate.
>>>
>>> I'm worried it's not really granular enough.
>>
>> Yeah.
>
> Just to be sure we're not inventing a problem here, can someone
> produce an example of a situation where it would not be granular
> enough (assuming we correct bad SQLSTATE choices where they exist)?
>
> I count 232 distinct SQLSTATE values (139 standard values and 93
> PostgreSQL-specific values), and we can create more if we
> want them; although I would recommend against doing that to get
> finer resolution on a standard SQLSTATE value.  A standard value
> which is too coarse would be the strongest argument for adding some
> other mechanism, IMO.  If we do, I would be inclined toward
> something to identify distinct conditions within a SQLSTATE, rather
> than some overarching independent mechanism.

Well, nearby Tom and I discussed demoting the message to DEBUG1 when
no transaction is in progress. Presumably the two messages would
share the same SQL state, unless we're going to create separate SQL
states for connection-closed-not-in-a-txn and
connection-closed-in-a-txn; and yet I think there's a very decent
argument that you're much more likely to care about the latter than
the former.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-05-03 16:46:01 Re: "unexpected EOF" messages
Previous Message Peter Geoghegan 2012-05-03 16:39:28 Re: remove dead ports?