Re: Reducing overhead for repeat de-TOASTing - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Reducing overhead for repeat de-TOASTing
Date
Msg-id [email protected]
Whole thread Raw
In response to Reducing overhead for repeat de-TOASTing  (Tom Lane <[email protected]>)
Responses Re: Reducing overhead for repeat de-TOASTing
List pgsql-hackers
> But we can resolve that by ruling that the required lifetime is the same
> as the value would have had if it'd really been palloc'd --- IOW, until
> the memory context that was current at the time gets deleted or reset.

Many support functions of GiST/GIN live in very short memory context - only for 
one call. So, that cache invalidation technique doesn't give any advantage 
without rearranging this part.

-- 
Teodor Sigaev                                   E-mail: [email protected]
  WWW: http://www.sigaev.ru/
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump fails to include sequences, leads to restore fail in any version
Next
From: Tom Lane
Date:
Subject: Re: Reducing overhead for repeat de-TOASTing