public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andrey Borodin <[email protected]>
To: [email protected] <[email protected]>
Cc: pgsql-hackers <[email protected]>
Subject: Re: How to implement read operations for my own access method?
Date: Sat, 4 Feb 2023 12:44:26 -0800
Message-ID: <CAAhFRxjr+3S=tOGBaY5iWCwuMy_w9gtRFHnYiT8hLVp_5oWSqg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Sat, Feb 4, 2023 at 12:59 AM [email protected] <[email protected]> wrote:
>
>
> Hi,I'm trying to implement my own access method. But I find the functions baout read is difficult.
> Can you give me an existed easy extension that impelment the tableamroutine to reference? I ho[e
> it's not complicated like heap_am,and it support insert sqls and select sqls.Thanks
>

Hi Jack,

I'd recommend first to start from official documentation on index
access methods [0].
Please also check the contrib/bloom module [1]. It is designed to
showcase index-as-extension technology.
Also, you can see my free lectures about details of implementation of
built-in access methods [2]. Also, I can offer you my PGCon talk
"Index DIY" about forking GiST into extension [3].

Thank you!

Best regards, Andrey Borodin.
[0] https://www.postgresql.org/docs/current/xindex.html
[1] https://github.com/postgres/postgres/tree/REL_15_STABLE/contrib/bloom
[2] https://www.youtube.com/watch?v=UgSeSo973lA&list=PLzrhBdcKTjLTyCIdDO1ig8qCZFZYYi3VH
[3] https://github.com/x4m/index_diy






view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: How to implement read operations for my own access method?
  In-Reply-To: <CAAhFRxjr+3S=tOGBaY5iWCwuMy_w9gtRFHnYiT8hLVp_5oWSqg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox