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