Re: Reducing overhead for repeat de-TOASTing

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Reducing overhead for repeat de-TOASTing
Date: 2008-06-17 18:08:46
Message-ID: 4857FDAE.7040103@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2008-06-17 18:25:46 Re: GIN improvements
Previous Message Tom Lane 2008-06-17 17:59:33 Re: pg_dump fails to include sequences, leads to restore fail in any version