Re: User Defined Types in Java

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Thomas Hallgren <thomas(at)tada(dot)se>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: User Defined Types in Java
Date: 2006-02-09 13:10:54
Message-ID: 20060209131054.GB14852@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Feb 09, 2006 at 01:53:13PM +0100, Thomas Hallgren wrote:
> >If you look at the code it says in a comment:
> >
> > /*
> > * Only C-coded functions can be I/O functions. We
> > enforce this
> > * restriction here mainly to prevent littering the
> > catalogs with
> > * shell types due to simple typos in user-defined function
> > * definitions.
> > */
> >
>
> Ouch. Any chance of getting this changed? If we can agree on a good design
> I'd be happy to implement and submit it.

Actually, I'm think this whole automatic creation of a shell-type a bit
silly anyway. Why not simply solve the problem directly like so:

CREATE TYPE complex AS SHELL;

or

DECLARE TYPE complex;

Don't beat around the bush, say what you mean.

Thoughts?
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message korry 2006-02-09 13:12:28 Re: pg_hba.conf alternative
Previous Message Thomas Hallgren 2006-02-09 12:53:13 Re: User Defined Types in Java