Re: immutable function querying table for partitioning

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: immutable function querying table for partitioning
Дата
Msg-id CAKFQuwZSrN5_vXniGJ66sh189X2J+jvWq63UZWrErzT=a2=90Q@mail.gmail.com
обсуждение исходный текст
Ответ на immutable function querying table for partitioning  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Ответы Re: immutable function querying table for partitioning  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Список pgsql-general
On Tuesday, June 15, 2021, Vijaykumar Jain <vijaykumarjain.github@gmail.com> wrote:


--- now since the lookup table is update, a noop update would get new shards for ids and rebalance them accordingly.

test=# update t set id = id ;
UPDATE 25

You probably avoid the complications by doing the above, but the amount of bloat you are causing seems excessive.

I’d suggest an approach where you use the table data to build DDL in a form that does adhere to the limitations described in the documentation instead of building you system upon a lie that your immutable function is actually a stable one.

David J.

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

Предыдущее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Re: query issue
Следующее
От: Vijaykumar Jain
Дата:
Сообщение: Re: immutable function querying table for partitioning