| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | John R Pierce <pierce(at)hogranch(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Question slow query |
| Date: | 2017-01-27 13:44:52 |
| Message-ID: | 27671.1485524692@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
John R Pierce <pierce(at)hogranch(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Brian Mills | 2017-01-27 21:31:06 | Recovery Assistance |
| Previous Message | Adam Dratwiński | 2017-01-27 11:12:25 | Reading VARTAT EXTERNAL ONDISK value from logical replication decoder |