Re: [HACKERS] Best way to construct Datum out of a string?

2011-04-28 Thread Yves Weißig
Am 28.04.2011 05:52, schrieb Tom Lane: =?ISO-8859-15?Q?Yves_Wei=DFig?= weis...@rbg.informatik.tu-darmstadt.de writes: Am 27.04.2011 16:11, schrieb Heikki Linnakangas: What kind of a Datum do you want it to be? What data type? See CStringGetDatum, or perhaps CStringGetTextDatum(). Or perhaps

[HACKERS] Best way to construct Datum out of a string?

2011-04-27 Thread Yves Weißig
Hi, sadly, so far my search in the source code wasn't very successfull on this topic. So, how can I construct a Datum out of a string? Greetz, Yves -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription:

Re: [HACKERS] Best way to construct Datum out of a string?

2011-04-27 Thread Heikki Linnakangas
On 27.04.2011 17:06, Yves Weißig wrote: Hi, sadly, so far my search in the source code wasn't very successfull on this topic. So, how can I construct a Datum out of a string? What kind of a Datum do you want it to be? What data type? See CStringGetDatum, or perhaps CStringGetTextDatum(). Or

Re: [HACKERS] Best way to construct Datum out of a string?

2011-04-27 Thread Andrew Dunstan
On 04/27/2011 10:06 AM, Yves Weißig wrote: Hi, sadly, so far my search in the source code wasn't very successfull on this topic. So, how can I construct a Datum out of a string? CStringGetDatum() The code is replete with examples, cheers andrew -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Best way to construct Datum out of a string?

2011-04-27 Thread Yves Weißig
Am 27.04.2011 16:11, schrieb Heikki Linnakangas: On 27.04.2011 17:06, Yves Weißig wrote: Hi, sadly, so far my search in the source code wasn't very successfull on this topic. So, how can I construct a Datum out of a string? What kind of a Datum do you want it to be? What data type? See

Re: [HACKERS] Best way to construct Datum out of a string?

2011-04-27 Thread Tom Lane
=?ISO-8859-15?Q?Yves_Wei=DFig?= weis...@rbg.informatik.tu-darmstadt.de writes: Am 27.04.2011 16:11, schrieb Heikki Linnakangas: What kind of a Datum do you want it to be? What data type? See CStringGetDatum, or perhaps CStringGetTextDatum(). Or perhaps you want to call the input function of