Re: Confusing bit in the "EXAMPLES" section for INSERT

From: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
To: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Confusing bit in the "EXAMPLES" section for INSERT
Date: 2022-08-16 21:14:26
Message-ID: CAGHENJ5prr3c-BJTtoSy2iEqVE1V9hg6rK1VChcpVCd2CgDWWQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Added a missing word:

Insert a distributor, or do nothing if the proposed row conflicts with an
existing row. Per-row triggers BEFORE INSERT are fired, and possible
effects on the proposed row applied, before checking for conflicts. Example
assumes a unique index on the did column exists:

Regards
Erwin

On Tue, 16 Aug 2022 at 23:09, Erwin Brandstetter <brsaweda(at)gmail(dot)com> wrote:

> https://www.postgresql.org/docs/devel/sql-insert.html#id-1.9.3.152.9
>
> Insert a distributor, or do nothing for rows proposed for insertion when
>> an existing, excluded row (a row with a matching constrained column or
>> columns after before row insert triggers fire) exists. Example assumes a
>> unique index has been defined that constrains values appearing in the did
>> column:
>>
>
> Suggesting this as replacement:
>
> Insert a distributor, or do nothing if the proposed row conflicts with an
> existing row. Per-row triggers BEFORE INSERT are fired, and possible
> effects on the proposed applied, before checking for conflicts. Example
> assumes a unique index on the did column exists:
>
> Regards
> Erwin
>

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Erwin Brandstetter 2022-08-16 21:22:46 Re: Confusing bit in the "EXAMPLES" section for INSERT
Previous Message Erwin Brandstetter 2022-08-16 21:09:59 Confusing bit in the "EXAMPLES" section for INSERT