Re: Get Date value from Datum

From: "Hannes Eder" <hannes(at)hanneseder(dot)net>
To: "Zhe He" <henryhezhe2003(at)gmail(dot)com>
Cc: "PG Hackers" <pgsql-hackers(at)postgresql(dot)org>, imad <immaad(at)gmail(dot)com>
Subject: Re: Get Date value from Datum
Date: 2008-11-04 07:35:08
Message-ID: 154e089b0811032335r2c490149m5afa82133f97d031@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 4, 2008 at 12:30 AM, imad <immaad(at)gmail(dot)com> wrote:
> What do you want to print? The integer value or the date string like
> "29-01-2008". Use the date_out function to convert your value to date.
>
> --Imad
>
> On Tue, Nov 4, 2008 at 10:19 AM, Zhe He <henryhezhe2003(at)gmail(dot)com> wrote:
>> Hi,
>> I met some problem with get date type value
>> from a table. I have a Datum which stores this
>> value as an integer and I want to get its date
>> value. Is there anyway that I can print it out?

Maybe inspecting the code of debugtup also helps, see

src/backend/access/common/printtup.c

(http://git.postgresql.org/?p=postgresql.git;a=blob;f=src/backend/access/common/printtup.c#l504)

--Hannes

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2008-11-04 07:47:33 Re: plperl needs upgrade for Fedora 10
Previous Message Simon Riggs 2008-11-04 07:31:27 Re: Hot standby v5 patch - restarted replica changes to warm standby mode