pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Thomas F.O'Connell <tfo@sitening.com>
Cc: Chandan_Kumaraiah <Chandan_Kumaraiah@satyam.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: query
Date: Mon, 21 Mar 2005 09:17:35 -0600
Message-ID: <20050321151735.GA20261@wolff.to> (raw)
In-Reply-To: <d2ac5d5caa72f051e6360166c9fbe40a@sitening.com>
References: <2EB549AAAFEA264FA926269A5BD5E9EB146577@certsrv.satyam.com>
	<d2ac5d5caa72f051e6360166c9fbe40a@sitening.com>

On Mon, Mar 21, 2005 at 08:33:43 -0600,
  "Thomas F.O'Connell" <tfo@sitening.com> wrote:
> You should be able to use the CURRENT_DATE function in place of sysdate.
> 
> You might need to cast the 1 explicitly to an interval.
> 
> As in:
> 
> CURRENT_DATE - '1 day'::interval

I don't think you want that. That is going to force a conversion from date
to a timestamp. You are going to be better off just using:
current_date - 1



view thread (15+ messages)  latest in thread

Message-ID: <20050321151735.GA20261@wolff.to>
Permalink:  ../20050321151735.GA20261@wolff.to/
Also on:    postgresql.org/message-id/20050321151735.GA20261@wolff.to

 · 

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: bruno@wolff.to, tfo@sitening.com, Chandan_Kumaraiah@satyam.com
  Subject: Re: query
  In-Reply-To: <20050321151735.GA20261@wolff.to>

* 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