Re: TOAST usage setting - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: TOAST usage setting
Date
Msg-id 87myznobg2.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: TOAST usage setting  (Bruce Momjian <bruce@momjian.us>)
Responses Re: TOAST usage setting
List pgsql-hackers
"Bruce Momjian" <bruce@momjian.us> writes:

> Gregory Stark wrote:
>
>> Is your database initialized with C locale? If so then length(text) is
>> optimized to not have to detoast:
>> 
>>     if (pg_database_encoding_max_length() == 1)
>>         PG_RETURN_INT32(toast_raw_datum_size(str) - VARHDRSZ);
>
> Wow, we optimized length().  OK, will run the test with
> substring(t,1,1).

No, we did substring() too :)

You could try hashtext()

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: TOAST usage setting
Next
From: Bruce Momjian
Date:
Subject: Re: TOAST usage setting