Обсуждение: How to change the default storage strategy for varlena?

Поиск
Список
Период
Сортировка

How to change the default storage strategy for varlena?

От
Jialun Zhang
Дата:
Hi All,

The defualt stroage strategy for varlena is 'x', i.e. EXTENDED. Is there a way to change it, from either front end or source code?  

Thanks,
Jialun Zhang

Re: How to change the default storage strategy for varlena?

От
Tom Lane
Дата:
Jialun Zhang <reatank@gmail.com> writes:
> The defualt stroage strategy for varlena is 'x', i.e. EXTENDED. Is there a
> way to change it, from either front end or source code?

As of v13 you could do something like

alter type varchar set (storage = main);

(repeat for every varlena type in the system, if that is indeed your
desire).  This seems like a remarkably bad idea, but it's breaking
nobody's database but your own.

            regards, tom lane