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

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 (view raw or flat)
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

pgsql-sql by date

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

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