Re: [BUGS] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS]
Date
Msg-id 20598.1019920048@sss.pgh.pa.us
Whole thread Raw
In response to ...  (Shra <shravan@yaskatech.com>)
Responses MetaData (size of datatype)  (Shra <shravan@yaskatech.com>)
List pgsql-hackers
Shra <shravan@yaskatech.com> writes:
> [ where to get declared-length info for var-length columns ]

This is encoded in the atttypmod field (see PQfmod).  I'd recommend
using format_type() to decode the info, but if you don't mind possibly
having to change your code from time to time, you could just wire
knowledge of the interpretation of typmod into your code.

In future, kindly be more selective about the lists you cross-post to.
I generally make a practice of ignoring questions posted to the bugs
list, for example.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Mandrake 8.1 RPMs posted
Next
From: Lamar Owen
Date:
Subject: Re: Mandrake 8.1 RPMs posted