Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSMXl-0002Kx-EN for pgsql-general@arkaria.postgresql.org; Thu, 10 Mar 2022 17:25:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nSMXk-0004RB-9I for pgsql-general@arkaria.postgresql.org; Thu, 10 Mar 2022 17:25:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSLUS-0004B2-BG for pgsql-general@lists.postgresql.org; Thu, 10 Mar 2022 16:18:12 +0000 Received: from smtp.uhusystems.com ([185.193.220.69]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSLUP-0001sD-BU for pgsql-general@postgresql.org; Thu, 10 Mar 2022 16:18:11 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.uhusystems.com (Postfix) with ESMTP id 772083E60060; Thu, 10 Mar 2022 17:18:06 +0100 (CET) Authentication-Results: smtp.uhusystems.com (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=comnica.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=comnica.com; h= content-transfer-encoding:mime-version:user-agent:content-type :content-type:date:date:reply-to:from:from:subject:subject :message-id:received:received; s=default; t=1646929086; bh=wzDIK X7MnDF97Y/qDLKIy/S8+4n3JrNeuElyvxb2GaA=; b=hGd6s7g3QUZPsNgApBSp8 XgJsKY+ydm7ot0iUzF68CiWtvI4tuGoA2gmmyKmW/UmcSVfba688tN0GzznbFPXv Uxs265t3jH55Rk7zKGa4XgIT1OaJyEfKUxC7JHze6FeeaqtiOWvU9n1/1VFByK+M cVaOAa1EZYKfc5J6zNpttE= X-Virus-Scanned: by clamav at smtp.uhusystems.com Received: from smtp.uhusystems.com ([127.0.0.1]) by localhost (smtp.uhusystems.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qR8R3481P1dv; Thu, 10 Mar 2022 17:18:06 +0100 (CET) Received: from [10.177.211.50] (unknown [185.193.221.211]) by smtp.uhusystems.com (Postfix) with ESMTPSA id 51A603E6005F; Thu, 10 Mar 2022 17:18:06 +0100 (CET) Message-ID: Subject: [pgpool] invalid read kind From: Peter Juhasz Reply-To: peter.juhasz@comnica.com To: pgsql-general@postgresql.org Date: Thu, 10 Mar 2022 17:18:06 +0100 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi all, we have a setup where we use PGPOOL instances between our application and the main DB server. Lately there is an intermittent but annoying error that sometimes pops up: ERROR: unable to parse the query DETAIL: invalid read kind SSL SYSCALL error: EOF detected Version numbers: pgpool 3.7.20 postgresql 9.5.25 Relevant part of pgpool's log: 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992409-1] 2022-03-10 09:44:50: pid 8731: LOG: statement: SELECT 'OK' 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992410-1] 2022-03-10 09:44:50: pid 8731: LOG: DB node id: 0 backend pid: 29433 statement: SELECT 'OK' 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992411-1] 2022-03-10 09:44:50: pid 8731: ERROR: unable to parse the query 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992411-2] 2022-03-10 09:44:50: pid 8731: DETAIL: invalid read kind 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992412-1] 2022-03-10 09:44:50: pid 8731: LOG: statement: DISCARD ALL 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992413-1] 2022-03-10 09:44:50: pid 8731: LOG: DB node id: 0 backend pid: 29433 statement: DISCARD ALL 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992414-1] 2022-03-10 09:44:50: pid 8731: FATAL: failed to read kind from backend 0 2022-03-10T09:44:50.000000+00:00 sanitized_hostname pgpool[8731]: [2992414-2] 2022-03-10 09:44:50: pid 8731: DETAIL: kind == 0 The query does not appear to be relevant, it's well-formed and not the same every time. Now, what does this mean, and how to deal with it? Best regards, Peter Juhasz Comnica Kft.