How to change the default storage strategy for varlena?

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

How to change the default storage strategy for varlena?

От:
Jialun Zhang <reatank@gmail.com>
Дата:
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 <tgl@sss.pgh.pa.us>
Дата:
Jialun Zhang  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


FAQ