Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Money type display

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
Cc: martin(at)biochemistry(dot)ucl(dot)ac(dot)uk, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Money type display
Date: 1998-02-27 17:19:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

In response to


pgsql-hackers by date

Next:From: sferacDate: 1998-02-27 17:25:46
Previous:From: Thomas G. LockhartDate: 1998-02-27 16:55:27
Subject: Re: [HACKERS] HISTORY list for 6.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group