Re: Cryptic error message in low-memory conditions
От | Magnus Hagander |
---|---|
Тема | Re: Cryptic error message in low-memory conditions |
Дата | |
Msg-id | CABUevEz+RWDPxNUnBEjzM2=ShG5_8XBPKKjxt03O60keM9LcsQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Cryptic error message in low-memory conditions (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Cryptic error message in low-memory conditions
|
Список | pgsql-hackers |
On Sat, Aug 27, 2011 at 01:59, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Daniel Farina <daniel@heroku.com> writes: >> Some Postgres servers will error out for a while with the following >> error message: >> "expected authentication request from server, but received c" >> [ and this seems to be triggered by fork failures in the server ] > > <spock>Fascinating.</spock> Agreed. <snip> > The reason for this is that that same bit of code supposes that any > "E" response must mean that the postmaster didn't recognize > NEGOTIATE_SSL_CODE. It doesn't (and of course shouldn't) pay any > attention to the actual textual error message. > > Now, seeing as how NEGOTIATE_SSL_CODE has been understood by every build > since PG 7.0, I believe that this is dead code and we could remove it; > it seems exceedingly unlikely that any modern build of libpq will ever > be used to talk to a server that responds to that with "E". What will be the result if you do use the modern libpq against that? Anyway - that's 5 *unsupported* versions back. So even if people do use that, I say they have to downgrade libpq as well ;) +1 for removing it. In fact, when do we reach the point that we can remove all the support for the v2 protocol completely? (this would obviously not be as a bugfix, but perhaps in 9.2)? Is there any particular reason we need to support both anymore? At least in the client? -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/
В списке pgsql-hackers по дате отправления: