Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r9870-00EPEq-1g for pgsql-general@arkaria.postgresql.org; Fri, 01 Dec 2023 18:19:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r986x-008yBV-UG for pgsql-general@arkaria.postgresql.org; Fri, 01 Dec 2023 18:19:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r986x-008yBH-J8 for pgsql-general@lists.postgresql.org; Fri, 01 Dec 2023 18:19:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r986v-008JV4-27 for pgsql-general@lists.postgresql.org; Fri, 01 Dec 2023 18:19:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3B1IJSQo124575; Fri, 1 Dec 2023 13:19:28 -0500 From: Tom Lane To: Meera Nair cc: "pgsql-general@lists.postgresql.org" , Joel Howard Subject: Re: Query related to pg_dump write to a pipe on a windows client and with compressed format In-reply-to: References: Comments: In-reply-to Meera Nair message dated "Fri, 01 Dec 2023 02:57:34 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <124573.1701454768.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 01 Dec 2023 13:19:28 -0500 Message-ID: <124574.1701454768@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Meera Nair writes: > We tried pg_dump write to a pipe with compressed format and faced issue = as in thread referred here. > It was on windows client and for postgres 9.2 version. So during pg_rest= ore, seek error was seen. Are you really using PG 9.2.something? If not, then what? The problem here probably is that pg_restore is failing to detect that the pipe input file is not seekable. We've had repeated rounds of fixes to try to detect that reliably on Windows. I think it works if you are running a current PG release (something shipped in the last six months), but maybe not with older ones. regards, tom lane