Retrieving timestamp data

From: "::Willi the One::" <sonic_and_tails2000(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Retrieving timestamp data
Date: 2007-03-04 15:23:10
Message-ID: 20070304152310.95205.qmail@web36709.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

In the documentation, it says that PQgetvalue()
returns string values for strings and "the value is in
the binary representation determined by the data
type’s typsend and typreceive functions." The problem
is, where's the typsend and typrecieve located? I know
that it's not in libpq, but I saw libpgtypes somewhere
in the postgres directory and saw that there are
PGTYPE-related functions but I can't find the typsend.

For example, if I want to retrieve a timestamp data,
how would I do it? Will it return as a string when I
call PQgetvalue()? What about other types such Points
or inet types?

Thanks in advance.

Life is too short for dial-up.


____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Fuhr 2007-03-04 17:23:55 Re: Retrieving timestamp data
Previous Message Leticia 2007-03-04 15:20:37 Multikey Index GISt