pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: bobocc@yahoo.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Merge statement
Date: Thu, 17 Nov 2022 18:47:37 +0100
Message-ID: <20221117174737.w7jhwzarwmudolue@alvherre.pgsql> (raw)
In-Reply-To: <166870559096.639.9180457099983661630@wrigleys.postgresql.org>

On 2022-Nov-17, PG Doc comments form wrote:

> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/15/sql-merge.html
> Description:
> 
> From the description it looks like a single WHEN clause is accepted, which
> is definitely not true.

Hmm, the main synopsis has 

  when_clause [...]

where the [...] is there to indicate that when_clause can appear an
arbitrary number of times.

> Please let us know how many WHEN clauses are accepted for each of WNEM
> MATCHED and WHEN NOT MATCHED.

There's no specific restriction, although I didn't try to find a
limit.  I wonder what happens if you have a few hundred thousand ...
Time to experiment, I guess.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"No deja de ser humillante para una persona de ingenio saber
que no hay tonto que no le pueda enseñar algo." (Jean B. Say)





view thread (11+ messages)  latest in thread

Message-ID: <20221117174737.w7jhwzarwmudolue@alvherre.pgsql>
Permalink:  ../20221117174737.w7jhwzarwmudolue@alvherre.pgsql/
Also on:    postgresql.org/message-id/20221117174737.w7jhwzarwmudolue@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: alvherre@alvh.no-ip.org, bobocc@yahoo.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Merge statement
  In-Reply-To: <20221117174737.w7jhwzarwmudolue@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox