Re: MERGE command is not mentioned in the list of commands for variable substitution - Mailing list pgsql-docs

From David Rowley
Subject Re: MERGE command is not mentioned in the list of commands for variable substitution
Date
Msg-id CAApHDvqCWEWL3QtOr+ebCXmCu0asLTcxTVhOwBWtY_N3zx+A6w@mail.gmail.com
Whole thread Raw
In response to MERGE command is not mentioned in the list of commands for variable substitution  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: MERGE command is not mentioned in the list of commands for variable substitution
List pgsql-docs
On Tue, 11 Nov 2025 at 05:52, PG Doc comments form
<noreply@postgresql.org> wrote:
> "Variable substitution currently works only in SELECT, INSERT, UPDATE,
> DELETE, and commands containing one of these..."
> https://www.postgresql.org/docs/current/plpgsql-implementation.html#PLPGSQL-VAR-SUBST
> But experiments showed that variable substitution works for MERGE command
> too.

Thanks for the report. You're right that this has been overlooked.

The attached patch fixes it. I can take care of this once the back
branches are open again after the minor releases are out.

David

Attachment

pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: MERGE command is not mentioned in the list of commands for variable substitution
Next
From: Peter Eisentraut
Date:
Subject: Re: Use uppercase keywords in foreign key tutorial