Re: [GENERAL] Question slow query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Question slow query
Дата
Msg-id 27671.1485524692@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Question slow query  (John R Pierce <pierce@hogranch.com>)
Список 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 по дате отправления:

Предыдущее
От: Adam Dratwiński
Дата:
Сообщение: [GENERAL] Reading VARTAT EXTERNAL ONDISK value from logical replication decoder
Следующее
От: Brian Mills
Дата:
Сообщение: [GENERAL] Recovery Assistance