Re: DECIMAL or NUMERIC Data Types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: "PostgreSQL (SQL)" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: DECIMAL or NUMERIC Data Types
Date: 2012-01-05 19:14:37
Message-ID: 4632.1325790877@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com> writes:
> Does it matter when writing SQL code in PostgreSQL if I use DECIMAL or
> NUMERIC date types for a column named 'price' assuming it's to store
> the associated items actual dollar amount?

No, because they're the same type in Postgres, as you were already told
last week:
http://archives.postgresql.org/pgsql-general/2011-12/msg00899.php

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message cc "maco" young 2012-01-06 09:17:08 notes on materialized views
Previous Message Carlos Mennens 2012-01-05 18:38:01 DECIMAL or NUMERIC Data Types