It is solved. I'll propose my work the next weeks. :-)
Regards,
Samuel.
Le mercredi 21 octobre 2009 à 17:31 +0200, Samuel ROZE a écrit :
> Hi,
>
> I'm writing two functions "parse_url_key" and "parse_url_record" which
> will have one text argument and w
Le mercredi 21 octobre 2009 à 12:59 -0400, Andrew Dunstan a écrit :
> On 8.3 you might need to put a #define for it directly in your C file.
I can't: cstring_to_text isn't defined.
I'll develop on 8.4.
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to you
sizeof(nulls));
// build tuple from datum array
tuple = BuildTupleFromCStrings(attinmeta, values);
// Return the composite type
PG_RETURN_DATUM(HeapTupleGetDatum(tuple));
}
-------
Thanks a lot !
Samuel ROZE.
Le
00, Andrew Dunstan a écrit :
>
> Samuel ROZE wrote:
> > Le mercredi 21 octobre 2009 à 11:42 -0400, Tom Lane a écrit :
> >
> >> CStringGetTextDatum
> >>
> >
> > Can you give me more precisions ?
> >
> > I'm creating a "us
Le mercredi 21 octobre 2009 à 11:42 -0400, Tom Lane a écrit :
> CStringGetTextDatum
Can you give me more precisions ?
I'm creating a "user C function", with shared library and
CStringGetTextDatum is in "varlena.h" file which is not in the
"src/include" dir... How can I include it ?
Thanks.
Samue
tuple = BuildTupleFromCStrings(attinmeta, values);
// Return the composite type
PG_RETURN_DATUM(HeapTupleGetDatum(tuple));
}
---
This code doesn't works better... :/
Le mercredi 21 octobre 2009 à 18:42 +0300, Hei
cord' LANGUAGE C;
CREATE FUNCTION
postgres=# SELECT * FROM parse_url_record('') as ("scheme" text, "host"
text);
scheme | host
+--
|
(1 row)
Is there anybody here who can help me ?
Thanks you very much !
Samuel ROZE.
http://www.d-sites.com
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers