Eliminate more detoast copies for packed varlenas - Mailing list pgsql-patches

From Gregory Stark
Subject Eliminate more detoast copies for packed varlenas
Date
Msg-id 876424ufsd.fsf@oxford.xeocode.com
Whole thread Raw
Responses Re: Eliminate more detoast copies for packed varlenas
Re: Eliminate more detoast copies for packed varlenas
List pgsql-patches
Ok, this removes what should be most if not all of the call sites where we're
detoasting text or byteas. In particular it gets all the regexp/like functions
and all the trim/pad functions. It also gets hashtext and hash_any.


$ zcat packed-varlena-efficiency_v0.patch.gz | diffstat
 backend/access/hash/hashfunc.c    |   12 !!
 backend/utils/adt/like.c          |   80 !!!!!!!!!!!!!!!!!!!
 backend/utils/adt/oracle_compat.c |  157 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 backend/utils/adt/regexp.c        |  119 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
 include/fmgr.h                    |    1
 5 files changed, 5 insertions(+), 364 modifications(!)


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

Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Minor comment fixes
Next
From: Tom Lane
Date:
Subject: Re: Eliminate more detoast copies for packed varlenas