Re: [HACKERS] ALTER INDEX .. SET STATISTICS ... behaviour

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: [HACKERS] ALTER INDEX .. SET STATISTICS ... behaviour
Дата
Msg-id CAA4eK1LgUs8t7AGdAMUubNWLr272+i-BU9b8dcqmxKgZ9jp7VA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] ALTER INDEX .. SET STATISTICS ... behaviour  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Ответы Re: [HACKERS] ALTER INDEX .. SET STATISTICS ... behaviour  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Jun 1, 2017 at 6:40 PM, Alexander Korotkov
<a.korotkov@postgrespro.ru> wrote:
> On Wed, May 31, 2017 at 7:18 PM, Alexander Korotkov
> <a.korotkov@postgrespro.ru> wrote:
>>
>>>
>>> Don't like either of those particularly, but what about just targeting
>>> a column by column number, independently of whether it's an expression?
>>>
>>>         ALTER INDEX myindex ALTER COLUMN 4 SET STATISTICS 1000;
>>
>>
>> I completely agree with that.
>> If no objections, I will write a patch for that.
>
>
> Please, find it in attached patch.
>
> I decided to forbid referencing columns by numbers for tables, because those
> numbers could contain gaps.  Also, I forbid altering statistics target for
> non-expression index columns, because it has no effect.
>

In order to avoid losing track of this patch, I think it is better to
add it in open items list for 10.



-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



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

Предыдущее
От: Rafia Sabih
Дата:
Сообщение: Re: [HACKERS] Default Partition for Range
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] ALTER INDEX .. SET STATISTICS ... behaviour