|From:||Heikki Linnakangas <hlinnaka(at)iki(dot)fi>|
|To:||Andrey Lepikhov <a(dot)lepikhov(at)postgrespro(dot)ru>, David Steele <david(at)pgmasters(dot)net>, a(dot)lubennikova(at)postgrespro(dot)ru|
|Cc:||Michael Paquier <michael(at)paquier(dot)xyz>, Dmitry Dolgov <9erthalion6(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>|
|Subject:||Re: Reduce amount of WAL generated by CREATE INDEX for gist, gin and sp-gist|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
On 26/03/2019 11:29, Andrey Lepikhov wrote:
> On 25/03/2019 15:21, Heikki Linnakangas wrote:
>> Hmm. When do we create all-zero pages during index build? That seems
>> pretty surprising.
> GIST uses buffered pages. During GIST build it is possible (very rarely)
> what no one index tuple was written to the block page before new block
> was allocated. And the page has become an all-zero page.
> You can't have problems in the current GIST code, because it writes into
> the WAL only changed pages.
Looking at the code, I don't see how that could happen. The only place
where the GiST index file is extended is in gistNewBuffer(), and all
callers of that initialize the page immediately after the call. What am
|Next Message||Kyotaro HORIGUCHI||2019-03-26 11:12:20||Re: Psql patch to show access methods info|
|Previous Message||David Rowley||2019-03-26 10:47:07||Re: Speed up transaction completion faster after many relations are accessed in a transaction|