pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] indexing a datetime by date
Date: Tue, 30 Mar 1999 13:59:14 +0200
Message-ID: <l0311070ab3266cb423c7@[147.233.148.140]> (raw)
In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D20378CC@cpsmail>

At 06:07 +0200 on 30/03/1999, Jackson, DeJuan wrote:


>
> Part of the problem is that PostgreSQL Assumes that a functions value will
> change each time it is required, therefore automatic table scan and the
> function is called for each row.
> Try using 'now'::date instead of now()::date

How about using the ANSI standard CURRENT_DATE instead of either? It's
already of type date. Or is it considered a function call?

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (9+ messages)  latest in thread

Message-ID: <l0311070ab3266cb423c7@[147.233.148.140]>
Permalink:  ../l0311070ab3266cb423c7@%5B147.233.148.140%5D/
Also on:    postgresql.org/message-id/l0311070ab3266cb423c7@[147.233.148.140]

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: herouth@oumail.openu.ac.il
  Subject: Re: [SQL] indexing a datetime by date
  In-Reply-To: <l0311070ab3266cb423c7@[147.233.148.140]>
  References: <D05EF808F2DFD211AE4A00105AA1B5D20378CC@cpsmail> <l0311070ab3266cb423c7@[147.233.148.140]>

* 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