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 1lRjcQ-0002fd-3P for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Mar 2021 22:47:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRjcO-0000aY-1o for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Mar 2021 22:47:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRjcN-0000aR-Rt for pgsql-bugs@lists.postgresql.org; Wed, 31 Mar 2021 22:47:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRjcH-0007BV-Jp for pgsql-bugs@lists.postgresql.org; Wed, 31 Mar 2021 22:47:19 +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 12VMl4hI3338140; Wed, 31 Mar 2021 18:47:04 -0400 From: Tom Lane To: Sergey KOPOSOV cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG In-reply-to: <5d848bddbb3b6421af5a742e36ede542e719c492.camel@ed.ac.uk> References: <16951-a4dd68cf0de23048@postgresql.org> <3331060.1617226031@sss.pgh.pa.us> <5d848bddbb3b6421af5a742e36ede542e719c492.camel@ed.ac.uk> Comments: In-reply-to Sergey KOPOSOV message dated "Wed, 31 Mar 2021 21:45:08 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3338138.1617230824.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 31 Mar 2021 18:47:04 -0400 Message-ID: <3338139.1617230824@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sergey KOPOSOV writes: > I also noticed when I tried to run pg_restore in the debugger the crash = doesn't happen. > but it does if I pipe it... I wonder if your platform is helpfully inserting Windows newlines, or perhaps removing them, when the data goes through a pipe. regards, tom lane