From: Tom Lane <tgl@sss.pgh.pa.us>
To: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Retroactively adding send and recv functions to a type?
Date: Mon, 19 Aug 2019 13:32:19 -0400
Message-ID: <23029.1566235939@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA_SOw954VvMGi8bt3P5C7FN37Jj=SRxnBjxjPcTZGG8KN_KkQ@mail.gmail.com>
References: <CAA_SOw97LHiS+iqLkXKJ4Sqjc1bagKxQT11R=e=HS460sZ3hYw@mail.gmail.com>
<CAA_SOw954VvMGi8bt3P5C7FN37Jj=SRxnBjxjPcTZGG8KN_KkQ@mail.gmail.com>
"Johann 'Myrkraverk' Oskarsson" <johann@myrkraverk.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, johann@myrkraverk.com
Subject: Re: Retroactively adding send and recv functions to a type?
In-Reply-To: <23029.1566235939@sss.pgh.pa.us>
References: <CAA_SOw97LHiS+iqLkXKJ4Sqjc1bagKxQT11R=e=HS460sZ3hYw@mail.gmail.com> <CAA_SOw954VvMGi8bt3P5C7FN37Jj=SRxnBjxjPcTZGG8KN_KkQ@mail.gmail.com> <23029.1566235939@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox