Re: [GENERAL] Question slow query - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] Question slow query
Date
Msg-id 27671.1485524692@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Question slow query  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
John R Pierce <pierce@hogranch.com> writes:
> On 1/16/2017 11:27 AM, Patrick B wrote:
>> CREATE INDEX CONCURRENTLY ON note (timezone('Etc/UTC'::text, d_date));

> why did you prefix your index with timezone('etc/UTC'::text ??? that
> doesn't make sense to me at all.   is timezone() some function you've
> defined?  I'm not aware of any built in function by that name.

That's the internal spelling of "d_date AT TIME ZONE 'Etc/UTC'".

It's still a pretty good question why index that and not just d_date.

            regards, tom lane


pgsql-general by date:

Previous
From: Adam Dratwiński
Date:
Subject: [GENERAL] Reading VARTAT EXTERNAL ONDISK value from logical replication decoder
Next
From: Brian Mills
Date:
Subject: [GENERAL] Recovery Assistance