From: Michael Paquier <michael.paquier@gmail.com>
To: Rob Sargent <robjsargent@gmail.com>
Cc: Sherman Willden <operasopranos@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Insert results in 0 1
Date: Tue, 16 Jan 2018 14:36:17 +0900
Message-ID: <20180116053617.GC2212@paquier.xyz> (raw)
In-Reply-To: <D085675C-E993-4BDD-BDD4-5AC815A4B298@gmail.com>
References: <CAGv-wXGh8kN-V+3yyJkSJzWhy_mEjpJWNTk73h0XMaefBcC2Vg@mail.gmail.com>
<D085675C-E993-4BDD-BDD4-5AC815A4B298@gmail.com>
On Mon, Jan 15, 2018 at 07:13:28PM -0700, Rob Sargent wrote:
> On successful completion, an INSERT command returns a command tag of
> the form
>
> INSERT oid count
> The count is the number of rows inserted or updated. If count is
> exactly one, and the target table has OIDs, then oid is the OID
> assigned to the inserted row. The single row must have been inserted
> rather than updated. Otherwise oid is zero.
Please refer to the documentation as well, section "Outputs":
https://www.postgresql.org/docs/current/static/sql-insert.html
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael.paquier@gmail.com, robjsargent@gmail.com, operasopranos@gmail.com
Subject: Re: Insert results in 0 1
In-Reply-To: <20180116053617.GC2212@paquier.xyz>
References: <CAGv-wXGh8kN-V+3yyJkSJzWhy_mEjpJWNTk73h0XMaefBcC2Vg@mail.gmail.com> <D085675C-E993-4BDD-BDD4-5AC815A4B298@gmail.com> <20180116053617.GC2212@paquier.xyz>
* 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