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 1slfva-000Wv7-Ay for pgsql-general@arkaria.postgresql.org; Wed, 04 Sep 2024 02:39:26 +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 1slfvY-002tCv-LS for pgsql-general@arkaria.postgresql.org; Wed, 04 Sep 2024 02:39:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slfvY-002tCn-AF for pgsql-general@lists.postgresql.org; Wed, 04 Sep 2024 02:39:24 +0000 Received: from ook.raf.org ([139.99.156.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slfvS-00032T-P8 for pgsql-general@lists.postgresql.org; Wed, 04 Sep 2024 02:39:24 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 31C385DD57 for ; Wed, 4 Sep 2024 12:39:29 +1000 (AEST) X-Virus-Scanned: Debian amavis at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavis, port 10024) with ESMTP id plvnOkCjQ4H9 for ; Wed, 4 Sep 2024 12:39:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raf.org; s=001; t=1725417568; bh=ZHLaJosaGK2fBTTndwAZgnJ8iCpHwZEK2Tl7g4zvrKA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=j6C/wYWD5wUrX5blICUDjAdm2ktZ8iFxrBy9uePZGk81aKbSRUKP8lG2vj1c1nnqP xbnp0cC/duwszcxKBI082sjnPc8LKElPzQu67z8Ks/ZBfa50dcED+BKm2/jmzGTroC T509RWKP6ev92xZWDZDcqhMpC8SQhzpd05FlBjdP2bUzk+wpz3zotuWJ65I9CriRUT amYDvcejOkYIvH6uDIwBF2mLz9qdyPqbebHEPkDVFoGPuEBSc0ufSort+iyh+Y6Llj 0+d0rceXtV4gGF1/kZSKXGfFfycOwUtShNr8jkEtNMR6S1yweWrOE8hB6VRIPHKnjF lInZ60oEO2Evg== Received: by ook.raf.org (Postfix, from userid 1001) id 5EA9B5E373; Wed, 4 Sep 2024 12:39:28 +1000 (AEST) Date: Wed, 4 Sep 2024 12:39:28 +1000 From: raf To: pgsql-general@lists.postgresql.org Subject: Re: Help with "gpg -d ... | pg_restore ..." with unimportant pg_restore errors Message-ID: References: <1543230.1725416924@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1543230.1725416924@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 03, 2024 at 10:28:44PM -0400, Tom Lane wrote: > raf writes: > > On Tue, Sep 03, 2024 at 06:43:22PM -0700, "David G. Johnston" wrote: > >> You specified “-1” so I don’t get why you believe pg_restore should be > >> continuing to execute in the face of the SQL error. > > > The reason I believe pg_restore should be continuing to execute in the face of > > the SQL error is because I didn't supply the -e option which is described > > thusly in the pg_restore manual entry: > > But you'd better also read the para about -1: > > -1 > --single-transaction > Execute the restore as a single transaction (that is, wrap the > emitted commands in BEGIN/COMMIT). This ensures that either all > the commands complete successfully, or no changes are > applied. This option implies --exit-on-error. > > regards, tom lane > Yes, I saw that. Many thanks. All good now. cheer, raf