Re: User Defined Types in Java
От | Martijn van Oosterhout |
---|---|
Тема | Re: User Defined Types in Java |
Дата | |
Msg-id | 20060209131054.GB14852@svana.org обсуждение исходный текст |
Ответ на | Re: User Defined Types in Java (Thomas Hallgren <thomas@tada.se>) |
Ответы |
Re: User Defined Types in Java
Re: User Defined Types in Java |
Список | 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@svana.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.
В списке pgsql-hackers по дате отправления: