From: Tom Lane <tgl@sss.pgh.pa.us>
To: Anibal David Acosta <aa@devshock.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Do cast affects index usage?
Date: Fri, 12 Oct 2012 21:34:08 -0400
Message-ID: <27829.1350092048@sss.pgh.pa.us> (raw)
In-Reply-To: <000001cda8d9$913a7770$b3af6650$@devshock.com>
References: <004301cda8b4$fdc57bd0$f9507370$@devshock.com>
<21823.1350074311@sss.pgh.pa.us>
<000001cda8d9$913a7770$b3af6650$@devshock.com>
"Anibal David Acosta" <aa@devshock.com> writes:
> Because I need to get all rows where datetime is greater than (for example)
> '2012-10-10 00:00:00' but ignoring timezone, so basically I need to truncate
> timezone
> This can be done by converting to timestamp without timezone.
[ shrug... ] It can also be done without that. Whatever your cutoff
time is can be expressed as a timestamp *with* tz.
regards, tom lane
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, aa@devshock.com
Subject: Re: Do cast affects index usage?
In-Reply-To: <27829.1350092048@sss.pgh.pa.us>
* 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