Re: Field size - Mailing list pgsql-general

From Dmitriy Igrishin
Subject Re: Field size
Date
Msg-id CAAfz9KPg0Cb7uEpvO2ATs08OzzYi3Za2SDXT2BGUtS=qjx_7Wg@mail.gmail.com
Whole thread Raw
In response to Re: Field size  (aliosa <constantinica_alin@yahoo.com>)
List pgsql-general
Hey aliosa

2012/8/16 aliosa <constantinica_alin@yahoo.com>
Hello
I am using libpq to find information about fileds of table ( type and size).
I have a problem with getting the sizeof varchar fields.
If a table has a fiels varchar[35] and want to obtain 35.
I used PQgetlength or PQfsize  but is not good for my work.
Can someone tell me what function shall I use to get the size of filed ?
You should use PQfmod().

--
// Dmitriy.


pgsql-general by date:

Previous
From: aliosa
Date:
Subject: Re: Field size
Next
From: Wolfgang Keller
Date:
Subject: Re: Visualize database schema