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 1i05fO-0001xN-GM for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 15:03:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i05fN-0007Cz-8j for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 15:03:21 +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 1i05fM-0007BP-Vd for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 15:03:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i05fK-0005be-9z for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 15:03:20 +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 x7KF3Dqq016031; Tue, 20 Aug 2019 11:03:13 -0400 From: Tom Lane To: Stephen Frost cc: Vik Fearing , "Johann 'Myrkraverk' Oskarsson" , pgsql-general@lists.postgresql.org Subject: Re: Retroactively adding send and recv functions to a type? In-reply-to: <20190820143614.GP16436@tamriel.snowman.net> References: <23029.1566235939@sss.pgh.pa.us> <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com> <20190820143614.GP16436@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Tue, 20 Aug 2019 10:36:14 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <16029.1566313393.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 20 Aug 2019 11:03:13 -0400 Message-ID: <16030.1566313393@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > * Vik Fearing (vik.fearing@2ndquadrant.com) wrote: >> We generally discourage updating the catalogs directly.  This was why I >> wrote the CREATE/ALTER DATABASE patch in 2014 that you helped me with >> (fbb1d7d73f8). >> I'm willing to work on a patch for ALTER TYPE if it has a chance of >> being accepted. > Seems pretty clear that it'd be a useful thing to have, so +1 from me, > at least. We'd have to be extremely circumspect about what aspects of a base type could be altered after-the-fact. Adding binary I/O functions seems unproblematic, but I'm not very sure what else is. regards, tom lane