"there is no way to insert less than one row"

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: max1(at)inbox(dot)ru
Subject: "there is no way to insert less than one row"
Date: 2021-03-20 19:16:01
Message-ID: 161626776179.652.11944895442156126506@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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"?

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2021-03-22 04:17:42 Wrong distance shown in miles for extension earthdistance
Previous Message Vik Fearing 2021-03-18 23:55:52 Re: GROUP BY DISTINCT