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 1i05FD-00012C-Kb for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 14:36:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i05FB-0002y1-6e for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 14:36:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i05FA-0002xu-Pj for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 14:36:16 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1i05F8-0006d6-IU for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 14:36:15 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D16C85F79F; Tue, 20 Aug 2019 10:36:14 -0400 (EDT) Date: Tue, 20 Aug 2019 10:36:14 -0400 From: Stephen Frost To: Vik Fearing Cc: Tom Lane , Johann 'Myrkraverk' Oskarsson , pgsql-general@lists.postgresql.org Subject: Re: Retroactively adding send and recv functions to a type? Message-ID: <20190820143614.GP16436@tamriel.snowman.net> References: <23029.1566235939@sss.pgh.pa.us> <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="q/E04pvXIjS/VngA" Content-Disposition: inline In-Reply-To: <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --q/E04pvXIjS/VngA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Vik Fearing (vik.fearing@2ndquadrant.com) wrote: > On 19/08/2019 19:32, Tom Lane wrote: > > "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. >=20 > We generally discourage updating the catalogs directly.=A0 This was why I > wrote the CREATE/ALTER DATABASE patch in 2014 that you helped me with > (fbb1d7d73f8). >=20 > 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. Thanks, Stephen --q/E04pvXIjS/VngA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdXAVeAAoJEO1sijiDR2RVmYwP+wUNNYSfeAaSR3ChcL6qAx/d C6BOdqq9Jq096EYVnMT8ELe3wgWQM76xNoCRgajmfrNzk5ojL9lKlOfiO14fIBIU 4f8U6XzkdHhTuGHx1pcSMgUHsbP8LiDYjzBLLSV1rUGWf7BjYMP69pwpHZ6lVT4F Wx6Z536/nZ4FjYsorqomXsEhDrOf6cROPC+zAv+VH2tgId9kZeqiBJ8nsl/GbK/G q2iuYePTSMVq9BwIGW3eIQ0JFlxAuymBUHjAT0jcK1PpMk9n3UYEaBJPMpao90cK eow9/03t5uCqakHdRV8LyuAg7QH9cHuGcrwo455nFDCRIq3lAooVncCCLTvhUKkC WWJyGQqBqUeKUV10IBnEoULvJYFGR8typDJa8r/T9xMIHw+3TzeU+ADGcj57J/M1 ntq65Sz+BF+lMbj0QF0qhgjC9TIfnyrna/hGj/XAbwEdgZspTZKMcYi+ksso5Vih s0qbf4lshz+Ug7Uxbjw7hSaCYrqwJt4rpof16UaWTQyTNvDkYrT0mnBawg+ykBJj FfeP27QdVZdX8p/Jm/ESxc7O/p2aP6Zwwal8+jxRyydA9TbfpU93spELUQ7Ja6qd 6iD05/XzXrfcQFIGpe9BZRuHSMQ1WZxIzNsQewBxQYvj8yQmaUFVhr3M0WkVSmAs BJjIXmLBbJQ/yLT7XDh9 =McfF -----END PGP SIGNATURE----- --q/E04pvXIjS/VngA--