Re: 12.1 not useable: clientlib fails after a dozen queries (GSSAPI ?)

Adrian Klaver <adrian.klaver@aklaver.com>

From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Peter <pmc@citylink.dinoex.sub.org>, pgsql-general@lists.postgresql.org
Date: 2020-01-09T18:47:00Z
Lists: pgsql-hackers, pgsql-general
On 1/9/20 10:18 AM, Peter wrote:
> Hi folks,
> 
> with 12.1, after a couple of queries, at a random place, the clientlib
> does produce a failed query without giving reason or error-message [1].
> Then when retrying, the clientlib switches off signal handling and
> sits inactive in memory (needs kill -9).
> 
> The server log shows no error or other hint.
> The behaviour happens rarely with trust access, and almost always when
> using Kerberos5 (Heimdal as included in FreeBSD).
> 
> 11.5 clientlib has none of this behaviour and seems to work fine, like
> 10.10 did.

Might want to take at below:

https://github.com/ged/ruby-pg/issues/311

> 
> Environment:
> 	OS  	FreeBSD 11.3
> 	Applic.	Ruby-on-Rails, ruby=2.5.7, gem 'pg'=1.2.2
> 	        (it makes no difference if that one is compiled with
> 		the 12.1 or the 10.10 library)
> 	Server  12.1
> 
> [1] the message from ruby is
>      PG::ConnectionBad: PQconsumeInput() : <query>
> 
> rgds,
> PMc
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



Commits

  1. Extensive code review for GSSAPI encryption mechanism.