Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iq1b4-00068x-Fj for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2020 21:13:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iq1b3-0006yW-7J for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2020 21:13:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iq1b2-0006yP-Ue for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2020 21:13:32 +0000 Received: from uucp.dinoex.org ([2a0b:f840::12]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iq1az-000186-U3 for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2020 21:13:32 +0000 Received: from uucp.dinoex.sub.de (uucp.dinoex.org [185.220.148.12]) by uucp.dinoex.org (8.16.0.41/8.16.0.41) with ESMTPS id 00ALD4h0039667 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 10 Jan 2020 22:13:05 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-Authentication-Warning: uucp.dinoex.sub.de: Host uucp.dinoex.org [185.220.148.12] claimed to be uucp.dinoex.sub.de Received: from citylink.dinoex.sub.org (uucp@localhost) by uucp.dinoex.sub.de (8.16.0.41/8.16.0.41/Submit) with UUCP id 00ALD4mp039666; Fri, 10 Jan 2020 22:13:04 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by citylink.dinoex.sub.de (8.15.2/8.15.2) with ESMTP id 00AL3l8G013260; Fri, 10 Jan 2020 22:03:47 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.15.2/8.15.2) with ESMTP id 00AL3bbl013255; Fri, 10 Jan 2020 22:03:37 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: (from peter@localhost) by gate.oper.dinoex.org (8.15.2/8.15.2/Submit) id 00AL3b5A013254; Fri, 10 Jan 2020 22:03:37 +0100 (CET) (envelope-from peter) Date: Fri, 10 Jan 2020 22:03:37 +0100 From: Peter To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, Stephen Frost Subject: Re: 12.1 not useable: clientlib fails after a dozen queries (GSSAPI ?) Message-ID: <20200110210337.GA9580@gate.oper.dinoex.org> References: <20200109181822.GA74698@gate.oper.dinoex.org> <7042.1578595681@sss.pgh.pa.us> <20200109205319.GA85142@gate.oper.dinoex.org> <15232.1578605504@sss.pgh.pa.us> <20200110022342.GA92515@gate.oper.dinoex.org> <12348.1578679149@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12348.1578679149@sss.pgh.pa.us> User-Agent: Mutt/1.12.2 (2019-09-21) X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 185.220.148.12; Sender-helo: uucp.dinoex.sub.de;) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (uucp.dinoex.org [185.220.148.12]); Fri, 10 Jan 2020 22:13:08 +0100 (CET) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Jan 10, 2020 at 12:59:09PM -0500, Tom Lane wrote: ! [ redirecting to -hackers ] ! I modified the kerberos test so that it tries a query with a less ! negligible amount of data, and what I find is: ! ! * passes on Fedora 30, with either default or 1500 mtu ! * passes on FreeBSD 12.0 with default mtu ! * FAILS on FreeBSD 12.0 with mtu = 1500 So, it is not related to only VIMAGE @ R11.3, and -more important to me- it is not only happening in my kitchen. Thank You very much :) ! OTOH, I also find that there's some hysteresis in the behavior: ! once it's failed, reverting the mtu to the default setting doesn't ! necessarily make subsequent runs pass. It's really hard to explain ! that behavior if it's our bug. That's affirmative. Made me go astray a few times when trying to isolate it. On Fri, Jan 10, 2020 at 02:25:22PM -0500, Tom Lane wrote: ! Ah, I have it: whoever wrote pg_GSS_read() failed to pay attention ! to the fact that setting errno is a critical part of its API. ! Sometimes it returns -1 while leaving errno in a state that causes Wow, that's fast. My probability-guess this morning was either some hard-coded 8192-byte buffer, or something taking an [EWOULDBLOCK] for OK. Then I decided to not look into the code, as You will be much faster anyway, and there are other pieces of software where I do not have such a competent peer to talk to... Anyway, thanks a lot! PMc