From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Hammond <ahammond@ca.afilias.info>
Cc: pgsql-sql@postgresql.org
Subject: Re: date - date returns integer?
Date: Fri, 04 Mar 2005 23:36:20 -0500
Message-ID: <14000.1109997380@sss.pgh.pa.us> (raw)
In-Reply-To: <4228CC16.7020900@ca.afilias.info>
References: <4228CC16.7020900@ca.afilias.info>
Andrew Hammond <ahammond@ca.afilias.info> writes:
> Should date - date return type integer, not interval?
If we made it return interval then there would be all sorts of timezone
dependencies introduced (think about DST crossings) ... which is
generally something you don't want to think about when doing date
arithmetic. I think the definitions of these operators are fine.
regards, tom lane
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, ahammond@ca.afilias.info
Subject: Re: date - date returns integer?
In-Reply-To: <14000.1109997380@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