Re: pgsql DATE

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Charles Tassell <ctassell(at)isn(dot)net>
Cc: Martijn van Oosterhout <kleptog(at)cupid(dot)suninternet(dot)com>, Andras Balogh <abalogh(at)grafx(dot)ro>, pgsql-general(at)postgresql(dot)org
Subject: Re: pgsql DATE
Date: 2000-05-01 19:49:01
Message-ID: Pine.LNX.4.21.0005012145540.389-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Charles Tassell writes:

> Might want to try date BETWEEN '01/4/2000' AND '01/5/2000' as well, this
> is probably optimized better (although I may be wrong.)

It isn't. It's immediately converted to the below, so it's actually a few
cycles slower to use it.

> >How about you write your queries like:
> >
> >date >= '01/4/2000' and date < '01/5/2000'

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-05-01 19:50:23 Re: ERROR CODE
Previous Message Brett W. McCoy 2000-05-01 17:40:56 Re: GTK or TCL/TK ... what do you prefer ? (beginner)