public inbox for [email protected]  
help / color / mirror / Atom feed
From: Fabrízio de Royes Mello <[email protected]>
To: Michael Paquier <[email protected]>
Cc: Hannu Krosing <[email protected]>
Cc: pgsql-hackers <[email protected]>
Cc: [email protected]
Subject: Re: Including a sample Table Access Method with core code
Date: Wed, 5 Jul 2023 17:22:32 -0300
Message-ID: <CAFcNs+oAc24WghvxK+_N0YmtTG8xXZt0fvbksWEi5bJfvV1vzg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAMT0RQQXtq8tgVPdFb0mk4v+cVuGvPWk1Oz9LDr0EgBfrV6e6w@mail.gmail.com>
	<[email protected]>

>
> > Included Mark Dilger directly to this mail as he mentioned he has a
> > Perl script that makes a functional copy of heap AM that can be
> > compiled as installed as custom AM.
>
> Similar discussion has happened in 640c198 related to the creation of
> dummy_index_am, where the argument is that such a module needs to
> provide value in testing some of the core internals.  dummy_index_am
> did so for reloptions on indexes because there was not much coverage
> for that part of the system.
>
> > @mark - maybe you can create 3 boilerplate Table AMs for the above
> > named `mem_am`, `overlay_am` and `py3_am` and we could put them
> > somewhere for interested parties to play with ?
>
> Not sure if that's worth counting, but I also have a table AM template
> stored in my plugin repo:
> https://github.com/michaelpq/pg_plugins/tree/main/blackhole_am
>

And based on your `blackhole_am` I've sent a patch [1] to add a
`dummy_table_am` for testing purposes.

Regards,

[1]
https://www.postgresql.org/message-id/[email protected]...

--
Fabrízio de Royes Mello


view thread (4+ 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], [email protected]
  Subject: Re: Including a sample Table Access Method with core code
  In-Reply-To: <CAFcNs+oAc24WghvxK+_N0YmtTG8xXZt0fvbksWEi5bJfvV1vzg@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