Re: Hooks to Modify Execution Flow and Query Planner

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: Vincent Mirian <vince(dot)mirian(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Hooks to Modify Execution Flow and Query Planner
Date: 2018-11-05 05:02:26
Message-ID: bb99882d-80a0-39ab-931c-65331bcc6f0c@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2018/11/03 17:28, Vincent Mirian wrote:
> Hi Amit,
>
> Thank you for your response. Chapters 51, 57 and 59 (Overview of PostgreSQL
> Internals, Writing A Foreign Data Wrapper and Writing A Custom Scan
> Provider) seem to be relevant. Aside from the source code snippets in the
> document, is there functional source code that can be used as reference?

You can look at contrib/postgres_fdw for an example of a quite functional
foreign data wrapper.

For examples of a custom scan provider, you can look at Citus [1],
pg-strom [2].

Citus, for example, implements plan nodes like MultiJoin, Job, etc. that
are not present in vanilla PostgreSQL to implement additional query
execution functionality.

Similarly, you can find custom nodes like GpuJoin in pg-strom.

> Also, aside from this mailing list, is there an interactive medium for
> asking questions?

There are IRC and Slack channels which you can access via the following page:

https://www.postgresql.org/community/

Thanks,
Amit

[1] https://github.com/citusdata/citus
[2] https://github.com/heterodb/pg-strom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rajkumar Raghuwanshi 2018-11-05 05:25:54 Re: Getting ERROR: could not open file "base/13164/t3_16388" with partition table with ON COMMIT
Previous Message Amit Langote 2018-11-05 04:37:51 Re: Getting ERROR: could not open file "base/13164/t3_16388" with partition table with ON COMMIT