pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carlos Mennens <carlos.mennens@gmail.com>
Cc: PostgreSQL (SQL) <pgsql-sql@postgresql.org>
Subject: Re: DECIMAL or NUMERIC Data Types
Date: Thu, 05 Jan 2012 14:14:37 -0500
Message-ID: <4632.1325790877@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAQLLO5_HFLG4r1qBs0PxVXLrOJMffZK4Ujy2g51ru2ii6=kTg@mail.gmail.com>
References: <CAAQLLO5_HFLG4r1qBs0PxVXLrOJMffZK4Ujy2g51ru2ii6=kTg@mail.gmail.com>

Carlos Mennens <carlos.mennens@gmail.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



view thread (2+ messages)

Message-ID: <4632.1325790877@sss.pgh.pa.us>
Permalink:  ../4632.1325790877@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4632.1325790877@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, carlos.mennens@gmail.com
  Subject: Re: DECIMAL or NUMERIC Data Types
  In-Reply-To: <4632.1325790877@sss.pgh.pa.us>

* 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