pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: brent@rcfile.org
To: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: creating an index on a function
Date: Fri, 15 Feb 2002 11:27:57 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGOELIEFAA.nickf@ontko.com> (raw)
In-Reply-To: <14110.1013788811@sss.pgh.pa.us>

Tom, Brent-

Thanks for the thoughtful responses. I now understand why it didn't work and
what I need to change about my approach.

> This raises a subtle point that you'd better think about before you go
> too far in this direction: truncating a timestamp to date is not a very
> well-defined operation, because it depends on the timezone setting.

That's a good point. Fortunately, in this specific application the events
are selected by location as a part of the same operation, so I *think* I'll
be OK- However, there are some other application functions I'm contemplating
for the future which would really get mangled if I lost my TZ information.

Regards,

-Nick





view thread (4+ messages)

Message-ID: <NEBBLAAHGLEEPCGOBHDGOELIEFAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGOELIEFAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGOELIEFAA.nickf@ontko.com

 · 

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: nickf@ontko.com, tgl@sss.pgh.pa.us, brent@rcfile.org
  Subject: Re: creating an index on a function
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGOELIEFAA.nickf@ontko.com>

* 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