I have written several postgres extensions in the past. However,currently I
am having difficulty with an extension returning a tuple. Basically I want
to return a tuple containing an integer and a very large variable length
string. I created a type on Postgres that contains two fields (int4 and
text). Originally, I was using buildTupleFromCStrings(). My function works
fine and everything is cool, until my string becomes large. At that
point NULL is returned in my tuple (I believe that this is
because Postgres is using char type conversion on the string). So, my
question is how can I return the large string as part of my tuple? Is there
a Datum function that will allow me to convert a text* into a datum? Any
help or a push in the right direction would be appreciated.

Thanks,

Rob.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-interfaces @
categoriespostgresql
postedMay 12, '07 at 1:34a
activeMay 12, '07 at 1:34a
posts1
users1
websitepostgresql.org
irc#postgresql

1 user in discussion

Rob Tester: 1 post

People

Translate

site design / logo © 2023 Grokbase