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 1obNHC-0003de-3H for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 14:34:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obNHA-0008JZ-AN for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 14:34:04 +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 1obNH9-0008JQ-Vt for pgsql-general@lists.postgresql.org; Thu, 22 Sep 2022 14:34:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obNH7-00062W-RT for pgsql-general@postgresql.org; Thu, 22 Sep 2022 14:34:02 +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 28MEY0xT1397198; Thu, 22 Sep 2022 10:34:00 -0400 From: Tom Lane To: Ron cc: pgsql-general@postgresql.org Subject: Re: pg_dump failed with error code 255, but I don't see why In-reply-to: <239fa759-d0f7-7357-7731-854b33c3749f@gmail.com> References: <239fa759-d0f7-7357-7731-854b33c3749f@gmail.com> Comments: In-reply-to Ron message dated "Thu, 22 Sep 2022 09:19:39 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1397196.1663857240.1@sss.pgh.pa.us> Date: Thu, 22 Sep 2022 10:34:00 -0400 Message-ID: <1397197.1663857240@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron writes: > v9.6.2.23 > I always run pg_dump with the --verbose option, and the bash script echos > $?, so there's a 25,664 line log file for me to examine which explicitly > shows the return code. A quick search of the 9.6 pg_dump source code shows that it only ever calls exit() with values 0 or 1. 255 would have to be coming from some outside factor. You sure your shell script isn't misbehaving and corrupting the reported return code? regards, tom lane