pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a test module for Object Access hooks
Date: Tue, 22 Mar 2022 14:29:53 +0000
Message-ID: <E1nWfWC-000sSF-BY@gemulon.postgresql.org> (raw)

Add a test module for Object Access hooks

This includes tests of both the newly added name type object access
hooks and the older Oid type hooks, and provides a useful example
of how to use the hooks.

Mark Dilger, based on some code from Joshua Brindle.

Discussion: https://postgr.es/m/47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/90efa2f5565d28054c30c18f6a2f17f94fdff91e

Modified Files
--------------
src/test/modules/Makefile                          |   1 +
src/test/modules/test_oat_hooks/.gitignore         |   4 +
src/test/modules/test_oat_hooks/Makefile           |  24 +
src/test/modules/test_oat_hooks/README             |  86 ++
.../test_oat_hooks/expected/test_oat_hooks.out     | 209 +++++
.../modules/test_oat_hooks/sql/test_oat_hooks.sql  |  52 ++
src/test/modules/test_oat_hooks/test_oat_hooks.c   | 934 +++++++++++++++++++++
.../modules/test_oat_hooks/test_oat_hooks.conf     |   1 +
8 files changed, 1311 insertions(+)



Message-ID: <E1nWfWC-000sSF-BY@gemulon.postgresql.org>
Permalink:  ../E1nWfWC-000sSF-BY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nWfWC-000sSF-BY@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: Add a test module for Object Access hooks
  In-Reply-To: <E1nWfWC-000sSF-BY@gemulon.postgresql.org>
  References: <E1nWfWC-000sSF-BY@gemulon.postgresql.org>

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

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