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 1jWwn9-00036R-5m for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 06:47:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWwn8-0002kD-2Q for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 06:47:26 +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 1jWwn7-0002k6-QF for pgsql-general@lists.postgresql.org; Fri, 08 May 2020 06:47:25 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWwn4-0003L8-TO for pgsql-general@postgresql.org; Fri, 08 May 2020 06:47:25 +0000 Received: by mail-wr1-x442.google.com with SMTP id g13so527391wrb.8 for ; Thu, 07 May 2020 23:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=KYpvqDk6yUBi8/YhcmxaeDU7MJzSkkWiQwUGVRr9LHI=; b=jJL8Aa+mPeqYLpNz0BUr5pd1AiIq67MfmhQdrCU2pGcakmKp916oNcPLxbps7U1OHX pAmKG896S+pGZebGdyxrXf/NPxBO0Dh6GdOfEQiSKcttHJ3v1SxFIzenAvVF9szIaBi2 Yo3pWsUhEO9hv/rsfD3Kzknxwv0gMobADdXLmv3+za1tDZp+hlh764+Cd0HYyDKDiiug d+7wqneOuaGParhK2kgmaO6njekm9IlUZk0LL/aIcys+ZCmMxawC8ea7CTQ2SMTWf0js vX9wUN7o1EoDrFQWDCjY2Z+s5aWPZHWMn3vhyfgHxut2JPLJ/isbyvHNrryKv81MgXr1 q8Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=KYpvqDk6yUBi8/YhcmxaeDU7MJzSkkWiQwUGVRr9LHI=; b=na4nLdX2+YWkyZlsdxyLcYXqYM1bsOEPrvqeKX5UtKhZxwqdLvPKYi9EmRIugwf63s oinBJSsVme60n8JRdPq9NqtQEAJjNLW8OD0qSzzeO7t2CExjjSFH54JU3QAK0IrpEOcy La5LG0+Qko+fN1j3ZH1TpyyPoxTmz/Ei4TILRDXOqT1uSsZspCgs1lv3VMmR5wwTp/A8 JKWzdmDC89zy9jI0yliL/Np40N7H7x7xt/lL3BZ+enfatREaIkkIJmUJddRhNX90YBam j5vuHnIGTk1gs76ohbt/nZTfjHed0jA83o06bBkMtG7NJEs23OQH0a0Tv5lwTaAfciFg a6EQ== X-Gm-Message-State: AGi0PuY1+hfUI9vSuCugdBRh9x4kzPuiQDT2RBPSjF0fOEEF+dcOtecD R7t4Uzi8HXQfE+nb6bhMiTKgWA== X-Google-Smtp-Source: APiQypIsxTUtYHd7zOdjgf1SKzxHB6HLDUSQdFlK6LMcjnQ4Be334IdjVVpg+5OxAdqOh17iwLLcnQ== X-Received: by 2002:adf:c38c:: with SMTP id p12mr1152273wrf.357.1588920441679; Thu, 07 May 2020 23:47:21 -0700 (PDT) Received: from dynamic-emngbpawjaqsxvclq-pd01.res.v6.highway.a1.net (dynamic-emngbpawjaqsxvclq-pd01.res.v6.highway.a1.net. [2001:871:60:4ec7:c2c1:32b6:5a97:228e]) by smtp.gmail.com with ESMTPSA id v16sm11591800wml.30.2020.05.07.23.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 23:47:21 -0700 (PDT) Message-ID: <9229bd9315ae87f8184872ec13d9d988bde95be1.camel@cybertec.at> Subject: Re: pg_restore V12 fails consistently against piped pg_dumps From: Laurenz Albe To: Mohamed Wael Khobalatte , Tom Lane Cc: pgsql-general@postgresql.org Date: Fri, 08 May 2020 08:47:20 +0200 In-Reply-To: References: <4717.1588833306@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2020-05-07 at 11:04 -0400, Mohamed Wael Khobalatte wrote: > Thanks Tom, I will review those changes tonight. In the meantime, to > reproduce, I run the following: > > - createdb test > - create some tables, I used a simple loop to create 10 empty ones. > - pg_dump -v -Fc test | tee test.dump > /dev/null (so it's through a > pipe, same as if the file is streamed through curl which was the > original case) > - pg_restore -j4 --verbose --clean --no-acl --no-owner -d test test.dump > > That should fail consistently. pg_restore_12 and pg_dump_12. Same > passes in if I run in earlier versions. I just tried that and didn't encounter any errors. Please come up with a more complete example. Are you OS user "postgres" when you run that? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com