Re: C Set Returning Function (SRF) - Mailing list pgsql-novice

From Gary Chambers
Subject Re: C Set Returning Function (SRF)
Date
Msg-id alpine.DEB.2.00.1109081421510.30628@lollipop.garychambers.com
Whole thread Raw
In response to Re: C Set Returning Function (SRF)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Tom,

> CStringGetDatum produces a datum of type cstring.  You want a datum of
> type text.   PointerGetDatum(cstring_to_text(pw)) ought to do it.

Thanks very much -- that works!  This is my first foray into writing C
functions so I have a lot to learn.  Is there a better way to accomplish
what I am trying to do?

-- Gary Chambers

pgsql-novice by date:

Previous
From: Carlo Ascani
Date:
Subject: Re: copy- what's my root directory?
Next
From: ScientificWare-Luigi D'Angelo
Date:
Subject: replication set-up