Re: Which DatumGet ?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Enrico <scotty(at)linuxtime(dot)it>
Cc: Pg general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Which DatumGet ?
Date: 2006-11-10 17:59:01
Message-ID: 20061110175901.GA18137@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2006-11-10 18:23:40 Cached dataset
Previous Message Teodor Sigaev 2006-11-10 17:39:06 Re: Using GIN indexes on 8.2