Documenting MERGE INTO ONLY ...

Started by Dean Rasheedalmost 4 years ago4 messageshackers
Jump to latest
#1Dean Rasheed
dean.a.rasheed@gmail.com

While testing MERGE, I noticed that it supports inheritance
hierarchies and the ONLY keyword, but that isn't documented. Attached
is a patch to merge.sgml, borrowing text from update.sgml and
delete.sgml.

I note that there are also a couple of places early in the manual
(advanced.sgml and ddl.sgml) that also discuss inheritance, citing
SELECT, UPDATE and DELETE as examples of (already-discussed) commands
that support ONLY. However, since MERGE isn't mentioned until much
later in the manual, it's probably best to leave those as-is. They
don't claim to be complete lists of commands supporting ONLY, and it
would be a pain to make them that.

Regards,
Dean

Attachments:

doc-merge-only.patchtext/x-patch; charset=US-ASCII; name=doc-merge-only.patchDownload+16-3
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Dean Rasheed (#1)
Re: Documenting MERGE INTO ONLY ...

On Thu, Dec 08, 2022 at 03:26:52PM +0000, Dean Rasheed wrote:

While testing MERGE, I noticed that it supports inheritance
hierarchies and the ONLY keyword, but that isn't documented. Attached
is a patch to merge.sgml, borrowing text from update.sgml and
delete.sgml.

LGTM. I didn't see any tests for this in merge.sql or inherit.sql. Do you
think we should add some?

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

#3Alvaro Herrera
alvherre@alvh.no-ip.org
In reply to: Nathan Bossart (#2)
Re: Documenting MERGE INTO ONLY ...

On 2022-Dec-08, Nathan Bossart wrote:

On Thu, Dec 08, 2022 at 03:26:52PM +0000, Dean Rasheed wrote:

While testing MERGE, I noticed that it supports inheritance
hierarchies and the ONLY keyword, but that isn't documented. Attached
is a patch to merge.sgml, borrowing text from update.sgml and
delete.sgml.

LGTM.

LGTM2.

I didn't see any tests for this in merge.sql or inherit.sql. Do you
think we should add some?

Ouch! We should definitely have some.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/

#4Dean Rasheed
dean.a.rasheed@gmail.com
In reply to: Alvaro Herrera (#3)
Re: Documenting MERGE INTO ONLY ...

On Fri, 9 Dec 2022 at 10:02, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:

On 2022-Dec-08, Nathan Bossart wrote:

On Thu, Dec 08, 2022 at 03:26:52PM +0000, Dean Rasheed wrote:

While testing MERGE, I noticed that it supports inheritance
hierarchies and the ONLY keyword, but that isn't documented. Attached
is a patch to merge.sgml, borrowing text from update.sgml and
delete.sgml.

LGTM.

LGTM2.

I didn't see any tests for this in merge.sql or inherit.sql. Do you
think we should add some?

Ouch! We should definitely have some.

Agreed. I just pushed this, with some additional tests.

Regards,
Dean