Transactions and indexes - Mailing list pgsql-hackers

From Chris Cleveland
Subject Transactions and indexes
Date
Msg-id CABSN6VefPbyM4LOBvSE7LK3Y1315GPx02K8BiYveSjAGT6DgKQ@mail.gmail.com
Whole thread Raw
Responses Re: Transactions and indexes
List pgsql-hackers
Noob here.

I'm trying to implement a new type of index access method. I don't think I can use the built-in storage manager and buffer manager efficiently because files with 8k blocks aren't going to work. I really need to implement a log-structured file.

I'm confused on how to handle transactions and visibility. I don't see anything in the index action method functions (am*()) that tell me when to commit or rollback new index entries, or which transaction we're currently in so I can know whether recently-added index entries should be visible to the current scan. I'm guessing that all that magically happens in the storage and buffer managers.

So... how do I handle this? Is there some way for me to implement my own storage manager that manages visibility?

I'd be grateful for any guidance.


--
Chris Cleveland
312-339-2677 mobile

pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Added documentation for cascade and restrict option of drop statistics
Next
From: Fabien COELHO
Date:
Subject: Re: [HACKERS] WIP aPatch: Pgbench Serialization and deadlock errors