Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

> 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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group