From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: max1@inbox.ru
Subject: "there is no way to insert less than one row"
Date: Sat, 20 Mar 2021 19:16:01 +0000
Message-ID: <161626776179.652.11944895442156126506@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/13/dml-insert.html
Description:
The documentation here says the following: "Of course you can also insert
more than one row, but there is no way to insert less than one row."
I tried this in psql:
---cut---
mydb=> create temporary table t1 (i1 int, v2 varchar(100));
CREATE TABLE
mydb=> create temporary table t2 (i1 int, v2 varchar(100));
CREATE TABLE
mydb=> insert into t2 select * from t1;
INSERT 0 0
mydb=>
---cut---
So, the last insert command inserted zero rows. What is meant by "there is
no way to insert less than one row"?
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: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, max1@inbox.ru
Subject: Re: "there is no way to insert less than one row"
In-Reply-To: <161626776179.652.11944895442156126506@wrigleys.postgresql.org>
* 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