From: Ashok Chauhan <ashok@kalculate.com>
To: pgsql-admin@postgresql.org
Subject: data type
Date: 31 Dec 2003 16:53:13 +0000
Message-ID: <1072889593.14188.19.camel@delta.greatindianproducts.com> (raw)
hello
how i recognize the data type of any field
except \d table_name;
there is a function of libpq library for recognize field type
but it returns a number not a name of the data type so how i know the
name with the help of this number.
recv_interger_number = PQftype(resultant_pointer,field_number);
And this number is same in all versions of postgresql.
suppose:-
in version 7.2 1043 for character & 1083 for varchar so
in version 7.3 is same or not.
Because my requirement is the data type name in string form not in
number's form.
plz. help me
thanks
Ashok
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ashok@kalculate.com
Subject: Re: data type
In-Reply-To: <1072889593.14188.19.camel@delta.greatindianproducts.com>
References: <1072889593.14188.19.camel@delta.greatindianproducts.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox