Re: C Set Returning Function (SRF)

From: Gary Chambers <gwchamb(at)gwcmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Novices <pgsql-novice(at)postgresql(dot)org>
Subject: Re: C Set Returning Function (SRF)
Date: 2011-09-08 18:27:54
Message-ID: alpine.DEB.2.00.1109081421510.30628@lollipop.garychambers.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message ScientificWare-Luigi D'Angelo 2011-09-09 15:02:42 replication set-up
Previous Message Carlo Ascani 2011-09-08 07:46:01 Re: copy- what's my root directory?