Re: "there is no way to insert less than one row" - Mailing list pgsql-docs

From David G. Johnston
Subject Re: "there is no way to insert less than one row"
Date
Msg-id CAKFQuwY4edByxicpaFX5vc=meE=PM7ivZzvuiqhuzo_YZft0iQ@mail.gmail.com
Whole thread Raw
In response to Re: "there is no way to insert less than one row"  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: "there is no way to insert less than one row"  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-docs
On Wed, Mar 24, 2021 at 1:29 PM Peter Eisentraut <peter.eisentraut@enterprisedb.com> wrote:
On 20.03.21 20:16, PG Doc comments form wrote:
> So, the last insert command inserted zero rows. What is meant by "there is
> no way to insert less than one row"?

I think the point was that you can't insert partial rows.

Sure, if you think its related to the following sentence.  If you think its related to the subsequent one it means "cannot insert zero rows".  Frankly, both interpretations are wrong, inserting an explicit column list with omitted columns populated using defaults is a "partial row API" for inserting data.

I'm also not fond of the word "conceptually" here - its actually a physical reality that regardless of how one or more rows are supplied they are inserted one-at-a-time so far as constraints, discussed in the previous chapter, are concerned (though some constraints can be deferred).

David J.

pgsql-docs by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Update to reflect that TLS1 and TLSv1.1 are now deprecated
Next
From: Daniel Gustafsson
Date:
Subject: TLS acronym