pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik.fearing@2ndquadrant.com>
To: 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: Tue, 20 Aug 2019 04:27:42 +0200
Message-ID: <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com> (raw)
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>

On 19/08/2019 19:32, Tom Lane wrote:
> "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.


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.

-- 

Vik Fearing






view thread (10+ messages)  latest in thread

Message-ID: <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com>
Permalink:  ../64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com/
Also on:    postgresql.org/message-id/64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com

 · 

reply

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: vik.fearing@2ndquadrant.com, tgl@sss.pgh.pa.us, johann@myrkraverk.com
  Subject: Re: Retroactively adding send and recv functions to a type?
  In-Reply-To: <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com>
  References: <CAA_SOw97LHiS+iqLkXKJ4Sqjc1bagKxQT11R=e=HS460sZ3hYw@mail.gmail.com> <CAA_SOw954VvMGi8bt3P5C7FN37Jj=SRxnBjxjPcTZGG8KN_KkQ@mail.gmail.com> <23029.1566235939@sss.pgh.pa.us> <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com>

* 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