Handling GIN incomplete splits

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Handling GIN incomplete splits
Date: 2013-11-13 16:49:55
Message-ID: 5283ADB3.9070306@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here's another part of my crusade against xlog cleanup routines. This
series of patches gets rid of the gin_cleanup() function, which is
currently used to finish splits of GIN b-tree pages, if the system
crashes (or an error occurs) between splitting a page and inserting its
downlink to the parent.

The first three patches just move code around. IMHO they make the code
more readable, so they should be committed in any case. The meat is in
the fourth patch.

Thoughts, objections?

Alexander, I'm sorry if this conflicts with your GIN patches. Feel free
to post the latest versions of your patches against the current master,
ignoring patches. I can fix the bitrot. That said, I think these
refactorings will make your code look a little bit nicer too, so you
might want to rebase because of that anyway.

- Heikki

Attachment Content-Type Size
0001-Further-GIN-refactoring.patch text/x-diff 15.6 KB
0002-Refactor-the-internal-GIN-B-tree-interface-for-formi.patch text/x-diff 7.5 KB
0003-More-GIN-refactoring.patch text/x-diff 9.9 KB
0004-Get-rid-of-the-post-recovery-cleanup-step-of-GIN-pag.patch text/x-diff 73.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message J Smith 2013-11-13 17:29:37 Re: Errors on missing pg_subtrans/ files with 9.3
Previous Message Merlin Moncure 2013-11-13 16:37:09 Re: additional json functionality