Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQLMk-0008El-3h for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Jul 2016 21:18:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bQLMj-0002Qt-MY for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Jul 2016 21:18:45 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bQL7x-0003tx-Js for pgsql-bugs@postgresql.org; Thu, 21 Jul 2016 21:03:29 +0000 Received: from mail.aegee.org ([144.76.142.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bQL7t-0003WO-BN for pgsql-bugs@postgresql.org; Thu, 21 Jul 2016 21:03:28 +0000 Authentication-Results: aegeeserv.aegee.org; auth=pass (PLAIN) smtp.auth=didopalauzov DKIM-Filter: OpenDKIM Filter v2.10.3 mail.aegee.org u6LL3bVt021184 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aegee.org; s=k4096; t=1469135017; i=dkim+MSA-tls@aegee.org; r=y; bh=EYbYPMMIe9NCY4dA0pZC4dbrT5Tw9ApjDqbezViqyLg=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=UbXtFD4A00B2CChFvWKQ3TBpNt9BELOkPS0ajrKdqhBvOhnn7R7Lr65V7ggUoSAF9 9fromd/M4HesspUIKYiD/GqYHXrn3WnmcJZPWIVD5KylFhxM6gYAtiJNHzBWU2aXA7 gGyvoVHN987R5AmKmi5YMl5bu03V8c3O7pMH6Fer+kXQi4+XX005eh8CdJoTh7n9bX jsUnMZDcoTnP1bSwphVMSSSe/+OEcaqEbQUGnE3CmtUfSFKEppHljXlGPSbxH2AAwf sZj7m36YxzYsdWE6/xLtL8F/DsBQKWuwYOHLjiHnx1A3o4rjCLqj+e19xoxcRReGrP T/K39kuoNyiJ/Jt0WAAwJ5t13W3dAdK+VEWwS4W8+bSM0VCoO6d50rkZtTjfb1qW2H 5Y+dO8dSJZFwdi0gASxtTpUFsK1A/SpLSz/crso9lOxiB6csuE0RGeDl2mi8UqmyVB JThb0cJsAZ6+QbKMOb3a90keMQo5ZRqFIrFodWHczO9h4SHb2tMH/AxGs+if9kyxKn DbNfeHhLJufMEeemU3kD1RmKvGK8D6scmMV5F8RhI9OgSjfYvdw8ZPR6yIOv0WGtPr +CjaMH7+NsLHxTYTe6z6wbqk2xi15SAR4julBkLOOkJgCL8d3hQ7UVMeGGFzkvH6yS yN6Jpgs3oyB42pn4MNxCVLJA= Authentication-Results: mail.aegee.org; dkim=none Received: from [192.168.178.20] (x5f74d97d.dyn.telefonica.de [95.116.217.125]) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.1) with ESMTPSA id u6LL3bVt021184 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 21 Jul 2016 21:03:37 GMT Subject: Re: BUG #14258: Documentation pl/pgsql To: Tom Lane References: <20160718181437.1414.40802@wrigleys.postgresql.org> <14180.1468870149@sss.pgh.pa.us> Cc: pgsql-bugs@postgresql.org From: =?UTF-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= Message-ID: <6d916240-3525-3116-e575-898d04238a8e@aegee.org> Date: Thu, 21 Jul 2016 23:08:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: <14180.1468870149@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.2 at mail.aegee.org X-Virus-Status: Clean X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello Tom, in you answer you have not tackled the argument, that the line with NOT NULL {DEFAULT | := | = } is soo long, that it does fit in its current form in the PDF provided documentation: https://www.postgresql.org/files/documentation/pdf/9.5/postgresql-9.5-A4.pdf, page logical 1063(physical 1138). On which occasions is the online documentation regenerated (in terms of https://www.postgresql.org/docs/9.5/static/, https://www.postgresql.org/docs/9.4/static/ and https://www.postgresql.org/files/documentation/pdf/9.5/postgresql-9.5-A4.pdf ) from the .sgml files? Greetings Dilian On 07/18/2016 09:29 PM, Tom Lane wrote: > dpa-postgres@aegee.org writes: >> in doc/src/sgml/plpgsql.sgml please replace: >> ... >> because NOT NULL can be used only with {DEFAULT | := | =}. > > I'm disinclined to do that; it's not required by the plpgsql grammar, > and in principle it might not be required at runtime either. In > particular, if the variable is of a domain type it would be sensible for > plpgsql to adopt the domain's default value if any. > >> For GET [CURRENT] DIAGNOSITCS (plpgsql.sgml, line 1441) the documentation >> within pgpgsql.sgml is unclear, what is CURRENT supposed to do. > > Hmm, it's just a noise word, but I agree the docs ought to say that. > >> In , 1834 is written >> IF ... THEN >> CASE ... WHEN ... END CASE >> More consistent would be to write IF ... THEN ... END IF > > Makes sense. > >> In Trigger Procedures, Triggers on Data Changes is stated, that the return >> value of a row-level trigger is ignored. Does such a trigger have to >> execute explicitly RETURN, contrary to functions returning void? > > Yes, I believe so; the documentation for RETURN does not make any > exception for triggers. > >> In the example afterwards "A PL/pgSQL Trigger Procedure For Auditing", in >> process_emp_audit() as AFTER trigger, the comment states, that the return >> value is ignored, but why does the function have four return statements >> instead of just one? > > [ shrug... ] Seems like reasonable coding style to me; for one thing, > it would make it easier to copy-and-paste the example as a basis for a > BEFORE trigger. I probably wouldn't have written it that way myself, > but I don't feel a need to change it. > >> In subsection "Triggers on Events" please replace "is called as a event >> trigger" with "is called as AN event trigger". > > Good catch, looks like there's a couple of those... > > Thanks for the notes! > > regards, tom lane > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs