From: Tom Lane <tgl@sss.pgh.pa.us>
To: ZongtianHou <zongtianhou@icloud.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: how to insert row with specific oid
Date: Fri, 19 Jun 2020 10:14:02 -0400
Message-ID: <1647744.1592576042@sss.pgh.pa.us> (raw)
In-Reply-To: <99E3D554-1D96-42F0-9647-B7D2CECB3E7E@icloud.com>
References: <99E3D554-1D96-42F0-9647-B7D2CECB3E7E@icloud.com>
ZongtianHou <zongtianhou@icloud.com> writes:
> Could I insert a row to table with specific row oid. just like insert into tbl values (xx,xx) oid=xx? Is there some syntax to do this?
Nope, at least not in PG versions that have special oid columns at all.
(Since v12, if you want an OID column, it's just a regular column.)
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, zongtianhou@icloud.com
Subject: Re: how to insert row with specific oid
In-Reply-To: <1647744.1592576042@sss.pgh.pa.us>
* 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