pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igal @ Lucee.org <igal@lucee.org>
To: Allan Kamau <kamauallan@gmail.com>
Cc: Postgres General Postgres General <pgsql-general@postgresql.org>
Subject: Re: Migrating money column from MS SQL Server to Postgres
Date: Wed, 8 Nov 2017 18:25:24 -0800
Message-ID: <fdf92d62-c165-e6f3-9a22-dbb562b5afd4@lucee.org> (raw)
In-Reply-To: <CAF3N6oQow_Bj8P6Y1f+rw00yTrK6ncvmqF2xCSvWwNJ6+ua7uA@mail.gmail.com>
References: <8acca674-ac7c-2b48-9a3e-8b8acf8b2c36@lucee.org>
	<4497.1510188301@sss.pgh.pa.us>
	<CAF3N6oS3REmTvwimqhRm0oikyncTUoiQ23sHKYrXJENxcW7JvA@mail.gmail.com>
	<4b6a0bfb-0cbc-b407-feaa-0be86f06e4d9@lucee.org>
	<CAF3N6oQow_Bj8P6Y1f+rw00yTrK6ncvmqF2xCSvWwNJ6+ua7uA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 11/8/2017 5:27 PM, Allan Kamau wrote:
> Maybe using NUMERIC without explicitly stating the precision is 
> recommended. This would allow for values with many decimal places to 
> be accepted without truncation. Your field may need to capture very 
> small values such as those in bitcoin trading or some banking fee or 
> interest.

That's a very good idea.  For some reason I thought that I tried that 
earlier and it didn't work as expected, but I just tested it (again?) 
and it seems to work well, so that's what I'll do.

Thank you,

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/;

view thread (12+ messages)  latest in thread

Message-ID: <fdf92d62-c165-e6f3-9a22-dbb562b5afd4@lucee.org>
Permalink:  ../fdf92d62-c165-e6f3-9a22-dbb562b5afd4@lucee.org/
Also on:    postgresql.org/message-id/fdf92d62-c165-e6f3-9a22-dbb562b5afd4@lucee.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: igal@lucee.org, kamauallan@gmail.com
  Subject: Re: Migrating money column from MS SQL Server to Postgres
  In-Reply-To: <fdf92d62-c165-e6f3-9a22-dbb562b5afd4@lucee.org>
  References: <8acca674-ac7c-2b48-9a3e-8b8acf8b2c36@lucee.org> <4497.1510188301@sss.pgh.pa.us> <CAF3N6oS3REmTvwimqhRm0oikyncTUoiQ23sHKYrXJENxcW7JvA@mail.gmail.com> <4b6a0bfb-0cbc-b407-feaa-0be86f06e4d9@lucee.org> <CAF3N6oQow_Bj8P6Y1f+rw00yTrK6ncvmqF2xCSvWwNJ6+ua7uA@mail.gmail.com> <fdf92d62-c165-e6f3-9a22-dbb562b5afd4@lucee.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox