Re: MetaData (size of datatype)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Shra <shravan(at)yaskatech(dot)com>
Cc: Hannu Krosing <hannu(at)krosing(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: MetaData (size of datatype)
Date: 2002-04-29 14:39:34
Message-ID: 23624.1020091174@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-committers pgsql-hackers

Shra <shravan(at)yaskatech(dot)com> writes:
> As tom said.....The type is encoded in the atttypmod field (see PQfmod) and
> recommendedusing format_type().....
> but when this is used, it returns -1 for integer , real n other fixed
> datatypes .........

The interpretation of typmod is datatype-specific. That's why I
recommended using format_type. But if you want to know what format_type
knows, look at the source code (src/backend/utils/adt/format_type.c).

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurent Belmonte 2002-04-29 16:39:28 timestamp in trigger
Previous Message Hannu Krosing 2002-04-29 13:54:01 Re: MetaData (size of datatype)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2002-04-29 17:30:18 pgsql/src/bin/pg_dump pg_dump.c
Previous Message Hannu Krosing 2002-04-29 13:54:01 Re: MetaData (size of datatype)

Browse pgsql-hackers by date

  From Date Subject
Next Message Francois Suter 2002-04-29 15:05:27 Re: pid gets overwritten in OSX
Previous Message Tom Lane 2002-04-29 14:28:41 Re: pid gets overwritten in OSX