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 1obNdF-0004lE-07 for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 14:56:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obNdD-0003Mr-UB for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 14:56:51 +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 1obNdD-0003Mi-I1 for pgsql-general@lists.postgresql.org; Thu, 22 Sep 2022 14:56:51 +0000 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1obNdA-0002Lq-9n for pgsql-general@postgresql.org; Thu, 22 Sep 2022 14:56:51 +0000 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1278a61bd57so14228919fac.7 for ; Thu, 22 Sep 2022 07:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=BcdVZ5ExzOKVTBslEJmab94D+t1RSfq3WLXmgC9W0KY=; b=og2Hw7+r1jumMIzFYUqZec3J+QiiVZaShqcy5F+eZdh+CfSiW1ESc3GSMtO+DXiTTS 2LC6TMI25b9uXDu4CBodKPLOSt4fbsVx6MF7gltyBArCxgL3woVtU7P98xddDidiA5+I lUFBmDIxSrfZyjrkNPBGngH7h3cNk6l5kd6q6hyN98pgxQFEkBtVfYy/6tJJu575oZ/F 1olqBuZvtWZDHq+Jrqi9a/Ar11hn6DsQ9uWQNqFsnrLHBjnGNvZBOCCbv4Blp2AO/tgm RTkNyvrQ8tdunmkjYjQkrS9F/upY05n0cnOga4ZXAXqQSVR2WvxtOkxIeFf5Cf8dOYXx GVKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=BcdVZ5ExzOKVTBslEJmab94D+t1RSfq3WLXmgC9W0KY=; b=w5sLMWSOSsAh+qEOziqroTaBg0fCj+QGdagmD0l6z0tIakdi+6P9cTe1MU+cqI+wvJ cIAujD6B6WekMAdGb90UtrsGCtsy5Lwb6JYQrdpAXgRQ+PDBJs1YaDdEq6gw1wZ8fKiA wujL+EQkZ6kCPDdl1/XI6yUknF7eASX/7FAnuOHKBx8ZJAC68IcLqvbSKYqMjRKxxVZw dPvd88Mtqxjq28DBRdWTN6JZrMtrRllQqtQ4qQO9EEA7SDEnk2O5lX/vT/mCNho9HzoB miCT4wLNge+LuIP7sFfzQtmNz+sW4IYMbqF/U+fUKOzHOQpCXqDny6Xq8NBauoX7IcBZ o9iQ== X-Gm-Message-State: ACrzQf2vwxKoIYvUPKLiYqqYhZvaWn1WGE7M/QLpGUleLhKVLZiMdKFm 66JZgZU3aiJfUh0HFiYM+9+u5rHCPYc= X-Google-Smtp-Source: AMsMyM69ETfuTgnAQhZtZQYM8wotDG8yBroo7h2wSw2rU4YCTn9vtsqWHCEqY76zULfKd8HRLBgrWA== X-Received: by 2002:a05:6871:689:b0:12c:52be:94f6 with SMTP id l9-20020a056871068900b0012c52be94f6mr8337400oao.214.1663858606452; Thu, 22 Sep 2022 07:56:46 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id e2-20020a056820060200b004320b0cc5acsm2286924oow.48.2022.09.22.07.56.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 07:56:45 -0700 (PDT) Message-ID: <992001c5-0241-c4b8-7788-7ea1954db7ae@gmail.com> Date: Thu, 22 Sep 2022 09:56:45 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: pg_dump failed with error code 255, but I don't see why Content-Language: en-US To: pgsql-general@postgresql.org References: <239fa759-d0f7-7357-7731-854b33c3749f@gmail.com> <1397197.1663857240@sss.pgh.pa.us> From: Ron In-Reply-To: <1397197.1663857240@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 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? Good to know.  The RC might be from ssh (the actual command being "ssh postgres@HOSTNAME pg_dump ...". -- Angular momentum makes the world go 'round.