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 1hzlW8-0002Rq-7R for pgsql-general@arkaria.postgresql.org; Mon, 19 Aug 2019 17:32:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hzlW7-0002Ys-3B for pgsql-general@arkaria.postgresql.org; Mon, 19 Aug 2019 17:32:27 +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 1hzlW6-0002Yl-QD for pgsql-general@lists.postgresql.org; Mon, 19 Aug 2019 17:32:26 +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 1hzlW4-0001Br-Kl for pgsql-general@lists.postgresql.org; Mon, 19 Aug 2019 17:32:26 +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 x7JHWJNf023030; Mon, 19 Aug 2019 13:32:19 -0400 From: Tom Lane To: "Johann 'Myrkraverk' Oskarsson" cc: pgsql-general@lists.postgresql.org Subject: Re: Retroactively adding send and recv functions to a type? In-reply-to: References: Comments: In-reply-to "Johann 'Myrkraverk' Oskarsson" message dated "Tue, 20 Aug 2019 01:26:02 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23028.1566235939.1@sss.pgh.pa.us> Date: Mon, 19 Aug 2019 13:32:19 -0400 Message-ID: <23029.1566235939@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Johann 'Myrkraverk' Oskarsson" writes: > I meant ALTER TYPE. Adding the send and recv functions doesn't seem > to supported by ALTER TYPE. > Is there a workaround for this? You could manually update the pg_type row, and then if you were being fussy, add pg_depend entries showing the type depends on the functions. regards, tom lane