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

How to change the default storage strategy for varlena?

From
Jialun Zhang
Date:
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?

From
Tom Lane
Date:
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