Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoyT-0002Vd-I7 for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Oct 2018 22:35:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBoyQ-0001id-IB for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Oct 2018 22:34:58 +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.89) (envelope-from ) id 1gBoyQ-0001iU-1c for pgsql-hackers@lists.postgresql.org; Sun, 14 Oct 2018 22:34:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoyN-0004Ys-GO for pgsql-hackers@postgresql.org; Sun, 14 Oct 2018 22:34:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9EMYojA000944; Sun, 14 Oct 2018 18:34:51 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: [RFC] Removing "magic" oids In-reply-to: <20181014220923.j4mlgue7y7chv533@alap3.anarazel.de> References: <20180930034810.ywp2c7awz7opzcfr@alap3.anarazel.de> <20181014220923.j4mlgue7y7chv533@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 14 Oct 2018 15:09:23 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <942.1539556490.1@sss.pgh.pa.us> Date: Sun, 14 Oct 2018 18:34:50 -0400 Message-ID: <943.1539556490@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Does anybody have engineering / architecture level comments about this > proposal? FWIW, I'm -1 on making OIDs be not-magic for SELECT purposes. Yeah, it's a wart we wouldn't have if we designed the system today, but the wart is thirty years old. I think changing that will break so many catalog queries that we'll have the villagers on the doorstep. Most of the other things you're suggesting here could be done easily without making that change. Possibly we could make them not-magic from the storage standpoint (ie they're regular columns) but have a pg_attribute flag that says not to include them in "SELECT *" expansion. BTW, the fact that we have magic OIDs in the system catalogs doesn't mean that any other storage system has to support that. (When I was at Salesforce, we endured *substantial* pain from insisting that we move the catalogs into their custom storage system. There were good reasons to do so, but it's not a decision I'd make again if there were any plausible way not to.) Personally, I'd drop WITH OIDs support for user tables altogether, rather than having pg_dump create a "compatible" translation that won't be very compatible if it loses the magicness aspect. regards, tom lane