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 1obZtz-0006rS-TP for pgsql-general@arkaria.postgresql.org; Fri, 23 Sep 2022 04:03:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obZty-0007DT-JM for pgsql-general@arkaria.postgresql.org; Fri, 23 Sep 2022 04:02:58 +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 1obZtx-0007Ak-Hz for pgsql-general@lists.postgresql.org; Fri, 23 Sep 2022 04:02:58 +0000 Received: from resqmta-c1p-023464.sys.comcast.net ([2001:558:fd00:56::b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obZtr-0000Xh-Kz for pgsql-general@postgresql.org; Fri, 23 Sep 2022 04:02:55 +0000 Received: from resomta-c1p-023810.sys.comcast.net ([96.102.18.241]) by resqmta-c1p-023464.sys.comcast.net with ESMTP id bZsiohU3iBaiTbZtlo9BuX; Fri, 23 Sep 2022 04:02:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1663905765; bh=kPM44kAEYprvWi78wyI85gIWNAsthkxA9LJwksohk9c=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=jT9xD5SOyHOSZ6GABaKum4nBeJBNXy5VG5A+1k65/Q9oDHvSXj34hPBbS3TnEjjFW g70Buvwpu4dfQhqy6ybRVgIjyEvra8Tbv2SohbQ60E27O94kG0xw37I3uwCbQfDXkA kjYX2vh4yXqR7xNi0gNXqlfcBTAcEpHPeVAE5pr0CI1UOqbnpqlW1safk7e75soPCu Ppiq5n4ujwiFCtu/pwuuvpFPqMGB3MqbftYHMQjw13MYyvHuE1ommfQPlzyalWsEN3 Z+Dz19KQMYnQsWX5Expl0wwb6AjggBZHDeygpVGstL3mcxcEvKokACrEWKCmKi1Wb1 aDqaNqJPrcdyQ== Received: from R9N0YC2TC3.localdomain ([98.63.186.20]) by resomta-c1p-023810.sys.comcast.net with ESMTPA id bZtkovAIvp9xNbZtkol7M1; Fri, 23 Sep 2022 04:02:45 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefhedgjeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomheplfgvrhhrhicuufhivghvvghrshcuoehgshhivghvvghrshduleestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnheptdeileehudeltdeigfetleefleeffeetgfduudeuueevvefhffffhfdujeetgeffnecukfhppeelkedrieefrddukeeirddvtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopeftlefptdgjvedvvfevfedrlhhotggrlhguohhmrghinhdpihhnvghtpeelkedrieefrddukeeirddvtddpmhgrihhlfhhrohhmpehgshhivghvvghrshduleestghomhgtrghsthdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopehrohhnlhhjohhhnhhsohhnjhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-Xfinity-VMeta: sc=0.00;st=legit Received: by R9N0YC2TC3.localdomain (Postfix, from userid 503) id 1BF1C8FCDBE; Thu, 22 Sep 2022 23:02:44 -0500 (CDT) From: Jerry Sievers To: Ron Cc: pgsql-general@postgresql.org Subject: Re: pg_dump failed with error code 255, but I don't see why References: <239fa759-d0f7-7357-7731-854b33c3749f@gmail.com> <1397197.1663857240@sss.pgh.pa.us> <992001c5-0241-c4b8-7788-7ea1954db7ae@gmail.com> Date: Thu, 22 Sep 2022 23:02:44 -0500 In-Reply-To: <992001c5-0241-c4b8-7788-7ea1954db7ae@gmail.com> (Ron's message of "Thu, 22 Sep 2022 09:56:45 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron writes: > On 9/22/22 09:34, Tom Lane wrote: > >> Ron writes: >>> v9.6.2.23 >>> I always run pg_dump with the --verbose option, and the bash script ech= os >>> $?, 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? > > Good to know.=C2=A0 The RC might be from ssh (the actual command being "s= sh > postgres@HOSTNAME pg_dump ...". FWIW, here's what my ssh man page says, and a contrived example. So it seems your ssh call itself borked for some reason perhaps. EXIT STATUS ssh exits with the exit status of the remote command or with 255 if an error occurred. tmp$ ssh localhost false; echo $? 1 tmp$ ssh no-such-host true; echo $? ssh: Could not resolve hostname no-such-host: nodename nor servname provide= d, or not known 255 tmp$=20