Extensible Rmgr for Table Ams

From: Pradeep Kumar <spradeepkumar29(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "pgsql(at)j-davis(dot)com" <pgsql(at)j-davis(dot)com>, "amit(dot)kapila16(at)gmail(dot)com" <amit(dot)kapila16(at)gmail(dot)com>, "andres(at)anarazel(dot)de" <andres(at)anarazel(dot)de>, "bharath(dot)rupireddyforpostgres(at)gmail(dot)com" <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, "rjuju123(at)gmail(dot)com" <rjuju123(at)gmail(dot)com>
Subject: Extensible Rmgr for Table Ams
Date: 2023-02-14 13:39:49
Message-ID: CAJ4xhPnvQ19CO-dr=zbEK-zhrASUbdv9ECGod4PBjT8AhVYeGQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello All,

Im working on my postgres FDW extension, to support logical replication I
need to use Custom WAL resource manager. In postgres extensions have the
flexibility to register their resource managers in RmgrTable[]. But Like
RmgrTable[] we have another resource manager related table RmgrDescTable[],
there we didn't have the flexibility to register our
1) rm_name
2) rm_desc
3) rm_identify
GetRmgrDesc() are widely used in XLogDumpDisplayRecord() and
XLogDumpDisplayStats() in pg_waldump.c. In function GetRmgrDesc() for
custom resource managers by the default they are assign
1) rm_desc = default_desc
2) rm_identify = default_identify
Suggest some ways to register my own rm_desc and rm_identify in
RmgrDescTable[]?

Attaching the Custom WAL resource managers commit for the reference:
https://github.com/postgres/postgres/commit/5c279a6d350205cc98f91fb8e1d3e4442a6b25d1

Thanks and regards
Pradeep Kumar

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nazir Bilal Yavuz 2023-02-14 13:52:46 Re: meson: Non-feature feature options
Previous Message Peter Eisentraut 2023-02-14 13:32:04 some namespace.c refactoring