[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: Re: Returning Vector of Pairs with a PostgreSQL C Extension Function
From: TalGloz <glozmantal () gmail ! com>
Date: 2018-08-27 13:04:14
Message-ID: 1535375054445-0.post () n3 ! nabble ! com
[Download RAW message or body]
Pavel Stehule wrote
> There are already prepared macros
>
> #define CStringGetTextDatum(s) PointerGetDatum(cstring_to_text(s))
> #define TextDatumGetCString(d) text_to_cstring((text *)
> DatumGetPointer(d))
Thanks for pointing out the macros, for some reason I've missed them.
Best regards,
Tal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic