Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebJvG-0004Dc-NZ for pgsql-general@arkaria.postgresql.org; Tue, 16 Jan 2018 05:36:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebJvG-0002A0-5v for pgsql-general@arkaria.postgresql.org; Tue, 16 Jan 2018 05:36:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ebJvF-00029q-RE for pgsql-general@lists.postgresql.org; Tue, 16 Jan 2018 05:36:33 +0000 Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ebJvC-0007jm-HD for pgsql-general@postgresql.org; Tue, 16 Jan 2018 05:36:32 +0000 Received: by mail-io0-x242.google.com with SMTP id c17so15499795iod.1 for ; Mon, 15 Jan 2018 21:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QinM0zmcsTIDi5cpSHpS2j7/VhcKIusYxRYcV1aWoME=; b=qCTT9QSc3IqIohUK4vEcVBMfQBjJn3ESJXRlC0mdFE1dN3S1JElFmPODBQjZSYXT+R wKRgs/UQg4Q8ATQhTcdDAj9wJp8N7IIg801bNkJnCftkANooVXVmNI3SWIWroKyfhg8i IdDKnFX9swkCCFttIgb349liktQ5sGnYQ9AnkSLeNZJhHAn6ckLU9BSvcG/7KAoCfQlA I0Sj5G7mFzbDBc6aFECXCrdwy+JRgqEmH6WdzEp0lipq33VH+MQ+bh6KBlbo9nlXNsPN jPgFWiLO532/mzh9jh49DRdvHo37FINITQoXJYpW2hS4AftP1C1nXOd1tl4gd8xfHRp5 8y7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QinM0zmcsTIDi5cpSHpS2j7/VhcKIusYxRYcV1aWoME=; b=GP/Y3zAjum0MQiG47ukDnTYyaC8hfvJdPALOF3oEwu79TVQHfnXcBiUbCk5zrOT/Lw GL6GbCB3CJeVqnAWVk+bMIwhAl7w3sh4V9hxDpjN/KHifedRxTPFvBTCe2NejlGqggtJ RAMsr2Va4rWkkX7zzJ9NIRV8Z+j84waUy4/L0AFnssDCX29gDW9ShAaWHBJ9afwQ6YJ6 K/UlhV9UpO//hHCkRycXopp+BjxbwEhPeCUpo+Fmxetj5hTkwfyhhUeQFtHxyE/65f95 lkRk38EUSFwoY2t/F4GerxdoELdvNYtOcnigrTU3G1SXqOFmb8dkwFoFIbCtzdJskil5 S4tQ== X-Gm-Message-State: AKwxytcV/DL++j3vOZWw/6JNH37KdDqasrNcqz7CrLAnfKrY1KoMPLNC q9aF4/6excBZYqO/HlTZqRM= X-Google-Smtp-Source: ACJfBoub3Dxy+5AQONkLTByLr+MINhBWQL4UYjkhoH0MkBc/OLeMesP8H4wjiLWZVesMUXXG+5UkWw== X-Received: by 10.107.7.69 with SMTP id 66mr12868524ioh.216.1516080989574; Mon, 15 Jan 2018 21:36:29 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id m186sm744123ith.2.2018.01.15.21.36.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jan 2018 21:36:28 -0800 (PST) Date: Tue, 16 Jan 2018 14:36:17 +0900 From: Michael Paquier To: Rob Sargent Cc: Sherman Willden , "pgsql-general@postgresql.org" Subject: Re: Insert results in 0 1 Message-ID: <20180116053617.GC2212@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="w7PDEPdKQumQfZlR" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --w7PDEPdKQumQfZlR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > 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.=20 Please refer to the documentation as well, section "Outputs": https://www.postgresql.org/docs/current/static/sql-insert.html -- Michael --w7PDEPdKQumQfZlR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpdj1EACgkQnvQgOdby QH1kog//ZRZa6AUnY14IQVJxYgGvtyBIkcYAVS4LIv9zjMUTGNfHIO9OtUVbyvpg pQ2/4bdnPlaGA6zS7Mjw3Krj7JGDbciXdM2shw+WFRzQUGfgJKo4o0AxYllBQpPI ZNwVUH+CUvTnC9I1JDlzrxRuN7ZQ0LqCjTQ4E/vMGFxOYiCaBPOQYOOTGph6SiKt Vhxwv1kjXlyrfrkELG3Tw+E6A11+wb/OF5Y0odRtTN8RiVGZJFTJ3A6tY4Gafxpm nZT0enTFoMb+1aZWBHVttTy9yCqFGyK+KagfKR2oh+JdMBYWX9g7hQHlTkawuhCK brpoPGn3xpyWbI7lgh8yHiLc3LgllBEt2GNTTHyTE2jRyfB84bnqRv86nIs3zHgo vAFNG2wCD3Xu+Q2nv82miX9yDsy5M9TZcWWdNvAy5BwzAV988u6azJhqFHcxvrKV 4IdKUzytelrifki9UnDiuc+pzluMRmdLZn+EEqrzc8+BHQiQe0+pnvUOd9fKcmIV nTQ5QqH63mxt5DklW+fc0KsPcFPIsAuXEglz+eAgSniy5pEqXemtd0HyszYSYVXD 588Ow/BCyxmGidY8/rW5X/XsZF6V/dI1y8KdfdmNk/Y5SGsXCejLAA/3cAgGQGZI FSJSGpULozLFgqcplur6O8D50ygm6FRcFf3Ku6HO4t7h6eikN7g= =Ny5d -----END PGP SIGNATURE----- --w7PDEPdKQumQfZlR--