Re: [HACKERS] Money type display - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Money type display
Date
Msg-id 199802271719.MAA10558@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Money type display  (darcy@druid.net (D'Arcy J.M. Cain))
Responses Re: [HACKERS] Money type display  (Brett McCormick <brett@work.chicken.org>)
List pgsql-hackers
> In fact, perhaps we should just turn the money code into the decimal
> type.  I understand we have a mechanism now for specifying an argument
> to the input and output functions so we can specify the precision of
> the decimal.  Is this correct?  If someone can help me out with the
> type specifications, I'll start creating the code to handle decimal
> types.  I'll just take the money code and modify it.

Yep, it's in there.  atttypmod is passed to all input/output function as
the third argument.

--
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: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] HISTORY list for 6.3
Next
From: Bruce Momjian
Date:
Subject: 6.3 Features