Re: Partition prune with stable Expr

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Partition prune with stable Expr
Дата
Msg-id 0c629e7b-97b7-5e32-fe48-c0d775ec0909@gmx.net
обсуждение исходный текст
Ответ на Re: Partition prune with stable Expr  (Andy Fan <zhihui.fan1213@gmail.com>)
Ответы Re: Partition prune with stable Expr
Список pgsql-hackers
Andy Fan schrieb am 28.09.2020 um 02:54:
> Well, that's very interesting.  Specific to my user case, 
> SELECT * FROM p WHERE pkey = to_date('2018-12-13', 'yyyy-mm-dd)';

Why use to_date() at all for a constant value?
Can't you use a standard ANSI date literal (date '2018-12-13')?

Alternatively, you could use make_date(2018,12,13) which is marked as immutable.

Thomas



В списке pgsql-hackers по дате отправления:

Предыдущее
От: torikoshia
Дата:
Сообщение: Re: Is it useful to record whether plans are generic or custom?
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: BLOB / CLOB support in PostgreSQL