pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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 10:36:14 -0400
Message-ID: <20190820143614.GP16436@tamriel.snowman.net> (raw)
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>

Greetings,

* Vik Fearing (vik.fearing@2ndquadrant.com) wrote:
> 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.

Seems pretty clear that it'd be a useful thing to have, so +1 from me,
at least.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (10+ messages)  latest in thread

Message-ID: <20190820143614.GP16436@tamriel.snowman.net>
Permalink:  ../20190820143614.GP16436@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20190820143614.GP16436@tamriel.snowman.net

 · 

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: sfrost@snowman.net, 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: <20190820143614.GP16436@tamriel.snowman.net>
  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> <20190820143614.GP16436@tamriel.snowman.net>

* 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