[PATCH] DOCS: Fix inconsistent text description punctuation in UPDATE FOR PORTION OF

Started by ZizhuanLiu X-MANabout 2 months ago3 messagesdocs
Jump to latest
#1ZizhuanLiu X-MAN
44973863@qq.com

Hi,
I noticed an inconsistency in the documentation between UPDATE and DELETE 
commands regarding the FOR PORTION OF clause description. 

In doc/src/sgml/ref/update.sgml (line 169), the description reads:
  "must be in the form ( portion ) where portion is an expression..." 

In doc/src/sgml/ref/delete.sgml (line 166), it reads:
 "must be in the form ( portion ), where portion is an expression..." 

The UPDATE documentation misses a comma before "where" that DELETE has.
For consistency, add the comma to the UPDATE documentation to match DELETE.

I have recompiled the documentation and verified that
share/doc/postgresql/html/sql-update.html and
share/doc/postgresql/html/sql-delete.html are now consistent.

Best regards,
Zizhuan Liu

Attachments:

0001-DOCS-Fix-missing-comma-in-UPDATE-FOR-PORTION-OF-text.patchapplication/octet-stream; charset=utf-8; name=0001-DOCS-Fix-missing-comma-in-UPDATE-FOR-PORTION-OF-text.patchDownload+1-2
#2Paul A Jungwirth
pj@illuminatedcomputing.com
In reply to: ZizhuanLiu X-MAN (#1)
Re: [PATCH] DOCS: Fix inconsistent text description punctuation in UPDATE FOR PORTION OF

On Mon, May 25, 2026 at 2:33 AM X-MAN <44973863@qq.com> wrote:

Hi,
I noticed an inconsistency in the documentation between UPDATE and DELETE
commands regarding the FOR PORTION OF clause description.

In doc/src/sgml/ref/update.sgml (line 169), the description reads:
"must be in the form ( portion ) where portion is an expression..."

In doc/src/sgml/ref/delete.sgml (line 166), it reads:
"must be in the form ( portion ), where portion is an expression..."

Thanks for the patch! This looks good to me.

Yours,

--
Paul ~{:-)
pj@illuminatedcomputing.com

#3ZizhuanLiu X-MAN
44973863@qq.com
In reply to: Paul A Jungwirth (#2)
Re: [PATCH] DOCS: Fix inconsistent text description punctuation in UPDATE FOR PORTION OF

&gt;On Mon, May 25, 2026 at 2:33 AM X-MAN <44973863@qq.com&gt; wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt; I noticed an inconsistency in the documentation between UPDATE and DELETE
&gt;&gt; commands regarding the FOR PORTION OF clause description.
&gt;&gt;
&gt;&gt; In doc/src/sgml/ref/update.sgml (line 169), the description reads:
&gt;&gt; &nbsp; "must be in the form ( portion ) where portion is an expression..."
&gt;&gt;
&gt;&gt; In doc/src/sgml/ref/delete.sgml (line 166), it reads:
&gt;&gt; &nbsp;"must be in the form ( portion ), where portion is an expression..."
&gt;
&gt;Thanks for the patch! This looks good to me.
&gt;
&gt;Yours,
&gt;
&gt;--
&gt;Paul &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;~{:-)
&gt;pj@illuminatedcomputing.com

Thanks a lot for the review!

--
X-MAN (Zizhuan Liu)&nbsp;
44973863@QQ.COM