Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gTqWh-0007C9-VE for pgsql-docs@arkaria.postgresql.org; Mon, 03 Dec 2018 15:52:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gTqWg-0003cy-6y for pgsql-docs@arkaria.postgresql.org; Mon, 03 Dec 2018 15:52:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gTqWf-0003cr-VO for pgsql-docs@lists.postgresql.org; Mon, 03 Dec 2018 15:52:50 +0000 Received: from forward106o.mail.yandex.net ([37.140.190.187]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gTqWd-0006MO-Lv for pgsql-docs@lists.postgresql.org; Mon, 03 Dec 2018 15:52:49 +0000 Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 8E66F7840F4; Mon, 3 Dec 2018 18:52:45 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3mDnSfZiwH-qj3KbDhN; Mon, 03 Dec 2018 18:52:45 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1543852365; bh=aEiRCW6Np9l0TOycA2vISzCOfFUUl2FKkKnGtfGFDt4=; h=Subject:From:In-Reply-To:Date:Cc:Message-Id:References:To; b=tNmL4Hf1ElcPB8y1C9KP1U/FUHL41e1i8gTbGDOM6LJBEHsPXUB1ywSIt9xQ9y8lj oS0FIkYLibxjXbWmcjAThN2QnEsypj0e7jsJpNMmKJY1V2tcf1EfEQixfxcdOsEIdV VRWdDnzyX9Cx62FAoKo+djiMlUmJyzq3Y9w56Kv8= Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 7Yhjxy0f24-qih0jsim; Mon, 03 Dec 2018 18:52:44 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1543852364; bh=aEiRCW6Np9l0TOycA2vISzCOfFUUl2FKkKnGtfGFDt4=; h=Subject:From:In-Reply-To:Date:Cc:Message-Id:References:To; b=FDW23W6bidlb30iYiEK+WcSpJJ6TORJYThtAnMoLuZ9aWc+kgfHHrXYCcZvelW5jg 3pvwjAsTZ65jlEyK4dSKD8AfbGzEqAjN5e7OAaBSJXdpATui+vcss8aaq8xRB/Ji9h rcAfdbp7+Opo86SMPO+mC9sUSJhDEckTdxH564MY= Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@ya.ru Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: Return codes for archive and restore commands From: =?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg==?= In-Reply-To: <20181129022347.GH626@paquier.xyz> Date: Mon, 3 Dec 2018 18:52:44 +0300 Cc: pgsql-docs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <567B704B-90EF-4442-AED0-54F976AFEEAA@ya.ru> References: <154340283171.1324.10549444217937216132@wrigleys.postgresql.org> <20181129022347.GH626@paquier.xyz> To: Michael Paquier X-Mailer: Apple Mail (2.3445.101.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > If you were to rewrite those paragraphs or make them more precise, how > would you actually shape your suggestions? I personally quite like = the > current formulations, but I am rather used to it to be honest. > -- > Michael Yep, I am for make them more precise. Now this paragraphs describe = PostgreSQL and bash behavior for users of PostgreSQL and may be they = are good in this. But for a script or application programmer must be = described not only behavior of PostgreSQL, but also precisely described = the program interface. For instance, aws cli utility, that I used for my = archive and restore commands sometimes return 255 code, for instance, in = a case of network fault to connect to S3 (object get command). And I was = surprised that the PostgreSQL suddenly stoped in such case, there was = nothing in documentation about this. So explicitly describing behavior = of PostgreSQL in terms of script returning codes will be useful for = script programmes.=