Re: Which DatumGet ? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Which DatumGet ?
Date
Msg-id 20061110175901.GA18137@svana.org
Whole thread Raw
In response to Which DatumGet ?  (Enrico <scotty@linuxtime.it>)
List pgsql-general
On Fri, Nov 10, 2006 at 05:30:09PM +0100, Enrico wrote:
> In my table I have a field myfied defined by
>
> myfield numeric(20,5);
>
> Which kind of DatumGet macro I have to use?

As an indirect type you want DatumGetPointer and cast it to numeric*.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Using GIN indexes on 8.2
Next
From: "Andrus"
Date:
Subject: Cached dataset