From: Michał Muskała <michal@muskala.eu>
To: pgsql-general@lists.postgresql.org
Subject: Unexpected ErrorMessage reply to SSLRequest
Date: Wed, 31 Jan 2018 23:01:15 +0100
Message-ID: <4ebe024e-3937-4320-adb4-1d7a29f4d783@Spark> (raw)
Hello everybody,
I'm one of the maintainers of postgrex [1] - an Elixir client for Postgresql. We implement the wire protocol and connect directly through tcp. We got a bug report indicating we got an unexpected ErrorMessage packet in reply to SSLRequest.
The documentation [2] indicates this can only ever happen on a "very ancient server" that does not have SSL support, but the bug report indicated it happened with 9.6.5 (on a fairly new Heroku instance). Importantly, when we got that reply, other connections to that server were failing with ERROR 53200 (out_of_memory) and the problematic SSLRequest/ErrorMessage exchange happened during reconnection attempts.
I wonder, if this is a bug or rather an omission in the docs that the ErrorMessage can happen under some failure scenarios other than lack of SSL support.
Regards,
Michał Muskała.
[1] https://github.com/elixir-ecto/postgrex
[2] https://www.postgresql.org/docs/10/static/protocol-flow.html#idm46428663878176
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: michal@muskala.eu
Subject: Re: Unexpected ErrorMessage reply to SSLRequest
In-Reply-To: <4ebe024e-3937-4320-adb4-1d7a29f4d783@Spark>
References: <4ebe024e-3937-4320-adb4-1d7a29f4d783@Spark>
* 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