Re: [GENERAL] Getting relation/attribute names from inside UDT input/output function

2006-05-11 Thread Martijn van Oosterhout
On Wed, May 10, 2006 at 09:12:33PM -0600, Michael Fuhr wrote: > On Wed, May 10, 2006 at 02:50:26PM -0300, Humberto Luiz Razente wrote: > > I'm trying to index data characteristics extracted from multimedia > > files (like a color distribution histogram from an image), in > > order to make k-nearest

Re: [GENERAL] Getting relation/attribute names from inside UDT input/output function

2006-05-10 Thread Michael Fuhr
[Please copy the mailing list on replies so others can contribute to and learn from the discussion.] On Wed, May 10, 2006 at 02:50:26PM -0300, Humberto Luiz Razente wrote: > I'm trying to index data characteristics extracted from multimedia > files (like a color distribution histogram from an imag

Re: [GENERAL] Getting relation/attribute names from inside UDT input/output function

2006-05-10 Thread Tom Lane
"Humberto Luiz Razente" <[EMAIL PROTECTED]> writes: > I wrote the UDT input/output functions for my complex type > and everything is working well. > But now, in the input function, I need to get the relation/attribute > names where a new object is being inserted. Since, in general, there *is* no s

Re: [GENERAL] Getting relation/attribute names from inside UDT input/output function

2006-05-10 Thread Michael Fuhr
On Wed, May 10, 2006 at 09:58:04AM -0300, Humberto Luiz Razente wrote: > I wrote the UDT input/output functions for my complex type > and everything is working well. > But now, in the input function, I need to get the relation/attribute > names where a new object is being inserted. Why would the t

[GENERAL] Getting relation/attribute names from inside UDT input/output function

2006-05-10 Thread Humberto Luiz Razente
Hello, I wrote the UDT input/output functions for my complex type and everything is working well. But now, in the input function, I need to get the relation/attribute names where a new object is being inserted. PG_FUNCTION_INFO_V1(complex_in); Datum complex_in(PG_FUNCTION_ARGS) { char *arg1 =