Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT62Y-0001G7-8x for pgsql-general@arkaria.postgresql.org; Sat, 01 Dec 2018 14:14:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gT62W-0003dF-WC for pgsql-general@arkaria.postgresql.org; Sat, 01 Dec 2018 14:14:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT62W-0003d8-O9 for pgsql-general@lists.postgresql.org; Sat, 01 Dec 2018 14:14:36 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT62U-0006wz-5K for pgsql-general@postgresql.org; Sat, 01 Dec 2018 14:14:36 +0000 Received: from [192.168.127.1] (port=63085 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gT62R-0003Cg-Fd; Sat, 01 Dec 2018 14:14:31 +0000 Received: from [127.0.0.1] (port=42083 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gT62Q-000Nx1-Or; Sat, 01 Dec 2018 14:14:30 +0000 From: Andrew Gierth To: PegoraroF10 Cc: pgsql-general@postgresql.org Subject: Re: Transition Tables =?utf-8?Q?doesn=C2=B4t?= have OID In-Reply-To: <1543666938082-0.post@n3.nabble.com> (PegoraroF's message of "Sat, 1 Dec 2018 05:22:18 -0700 (MST)") Message-ID: <87pnull9k0.fsf@news-spur.riddles.org.uk> References: <1543666938082-0.post@n3.nabble.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Sat, 01 Dec 2018 14:14:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PegoraroF10" =3D=3D PegoraroF10 writes: PegoraroF10> I would like to user OID value because we change our PegoraroF10> primary keys, sometimes, OID doesn=C2=B4t. "oid" as a special system column and the WITH OIDS option when creating tables are being removed in pg12 (having been deprecated for something like 12 years now), you might want to start thinking about alternatives. PegoraroF10> So, there is a way to get OID on transition tables ? Well, arguably it is an oversight in the implementation of transition tables that they were not added to the various places in the parser that treat "oid" as a system column name. However, I not sure that you'll get any agreement to fix that in light of the demise of "oid" as mentioned above. (Not least because backpatching it could be dangerous in that it could break queries that now work, by making "oid" an ambiguous column reference.) I tried various workarounds, but they were defeated by the fact that evaluation of a whole-row Var does not copy the oid value (if any). (I'm not sure if this ever really worked, so calling it a bug may be a bit of a stretch.) --=20 Andrew (irc:RhodiumToad)