Re: [HACKERS] casting & type comments - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] casting & type comments
Date
Msg-id 199803140608.BAA03862@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] casting & type comments  (Brett McCormick <brett@work.chicken.org>)
List pgsql-hackers
>
>
> Sorry, I meant at table creation time..  What are the implications of
> atttypmod in any case?  it is just a general purpose number to attach
> to attributes (for precision etc), correct?
>

It is passed to all input and output functions for each type as the
third argument.  You can see its use in char() and varchar().

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: indexing words slow
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] Re: indexing words slow