Re: [GENERAL] date and C - Mailing list pgsql-general

From Bruce Tong
Subject Re: [GENERAL] date and C
Date
Msg-id Pine.LNX.3.95.980708090058.13539E-100000@laxmi.ev.net
Whole thread Raw
In response to date and C  (Bruno LEVEQUE <bleveque@unilim.fr>)
List pgsql-general
>    I'm using postgres95, I've a table with a row abstime's type.
> I want use it in a C program and I don't understand what I must do.

I don't intend to insult you, but have you written any C before? It is
hard to tell based on the way you asked the question. I'm going to assume
you have...

I'm not sure what you've tried already, so I'll start at the beginning.
You want to use C, which means you'll be using the LIBPQ library. I'm not
familiar with that particular data type (abstime), but odds are the
PQgetvalue() function will give it to you. You have some other functions
to call to get to the point where you can use that one.

If you've not found the docs for LIBPQ, check out the programmer manual on
the PostgreSQL web site. It has examples. If that's not enough, I can make
some more examples available.


Bruce Tong                 |  Got me an office; I'm there late at night.
Systems Programmer         |  Just send me e-mail, maybe I'll write.
Electronic Vision / FITNE  |
zztong@laxmi.ev.net        |  -- Joe Walsh for the 21st Century



pgsql-general by date:

Previous
From: Herouth Maoz
Date:
Subject: Re: [GENERAL] translate "bug"?
Next
From: Farzad FARID
Date:
Subject: How to rename a database?