pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sivakumar K <sivakumark@pervasive-postgres.com>
To: sandhyar@amiindia.co.in
Cc: pgsql-admin@postgresql.org
Subject: Re: error codes in postgresql
Date: Tue, 23 Aug 2005 09:54:38 +0530
Message-ID: <B4AF8C04F762D246A1E38EC5DFAEFC0B04EF7E@blrmail2.aus.pervasive.com> (raw)

 

Hi sandhya,

            I really wonder if the function name is pg_field_type (res,
col_no). 

The function name which returns the field type of a particular column is
PQftype (res, col_no).

This returns the field type as oid.The oid of the built-in data types
can be found in src/include/catalog/pg_type.h

 

When using libpq API's you need to include only "libpq-fe.h".

 

 

Is pg_field_type (res, col_no) an abstraction over PQftype (res, col_no)
in your case?

 

Regards,

Siva Kumar.K

 

 

 

-----Original Message-----
From: sandhya [mailto:sandhyar@amiindia.co.in] 
Sent: Monday, August 22, 2005 7:12 PM
To: Sivakumar K
Cc: postgre; sandhya
Subject: Re: [ADMIN] error codes in postgresql

 

Hi,

I have one doubt,

 

Inorder to get the field type in a table i am using
pg_field_type(res,col_no)

 

Col_no : Is the field no. for which i have to know the field type.

 

When i am using the above declaration, i am getting the error as,

pg_field_type undeclared(First use this function)

 

What i have to include?

I am unable to get.Pls Help me.

I have included 'libpq-fe.h".Otherthan this what i should include.

Pls help me in this regard,

 

Thanks&Regards,

Sandhya R

 

 

view thread (5+ messages)

Message-ID: <B4AF8C04F762D246A1E38EC5DFAEFC0B04EF7E@blrmail2.aus.pervasive.com>
Permalink:  ../B4AF8C04F762D246A1E38EC5DFAEFC0B04EF7E@blrmail2.aus.pervasive.com/
Also on:    postgresql.org/message-id/B4AF8C04F762D246A1E38EC5DFAEFC0B04EF7E@blrmail2.aus.pervasive.com

 · 

reply

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: sivakumark@pervasive-postgres.com, sandhyar@amiindia.co.in
  Subject: Re: error codes in postgresql
  In-Reply-To: <B4AF8C04F762D246A1E38EC5DFAEFC0B04EF7E@blrmail2.aus.pervasive.com>
  References: <B4AF8C04F762D246A1E38EC5DFAEFC0B04EF7E@blrmail2.aus.pervasive.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