From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jackson, DeJuan <djackson@cpsgroup.com>
Cc: Andrew Merrill <andrew@compclass.com>
Cc: pgsql-sql@hub.org, PGSQL Hackers <pgsql-hackers@hub.org>
Subject: Re: [SQL] indexing a datetime by date
Date: Tue, 30 Mar 1999 06:14:13 +0000
Message-ID: <37006BB5.E5720D9@alumni.caltech.edu> (raw)
References: <D05EF808F2DFD211AE4A00105AA1B5D20378CC@cpsmail>
> Your index creation syntax is good but there's a bug in function
> indexes which require you to specify the ops. Try:
> create index when_ndx3 on notes (date(when) date_ops);
> Which won't work because the date(datetime) function isn't trusted.
> You can change this yourself in the system tables or you can use
> PL/PGSQL (the only trustable PL in PostgreSQL that I've found) to
> create another conversion function and use it instead. Or you can as
> Thomas Lockhart (or is it Tom Lane) if he'd create a trusted function
> for the conversions in 6.5.
Tom, does this ring a bell with you? istm that (almost) all builtin
functions should be trusted, but I haven't done anything explicit
about it that I can remember.
In your new role as System Table Berserker, perhaps you would want to
fix this? :)
- Tom
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: lockhart@alumni.caltech.edu, tgl@sss.pgh.pa.us, djackson@cpsgroup.com, andrew@compclass.com, pgsql-hackers@hub.org
Subject: Re: [SQL] indexing a datetime by date
In-Reply-To: <37006BB5.E5720D9@alumni.caltech.edu>
References: <D05EF808F2DFD211AE4A00105AA1B5D20378CC@cpsmail> <37006BB5.E5720D9@alumni.caltech.edu>
* 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