Re: New Event Trigger: table_rewrite

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: New Event Trigger: table_rewrite
Date: 2014-10-16 09:18:52
Message-ID: m2fveobceb.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr> writes:
> Please find attached to this email a patch to implement a new Event
> Trigger, fired on the the "table_rewrite" event. As attached, it's meant
> as a discussion enabler and only supports ALTER TABLE (and maybe not in
> all forms of it). It will need to grow support for VACUUM FULL and
> CLUSTER and more before getting commited.

And here's already a new version of it, including support for ALTER
TABLE, VACUUM and CLUSTER commands, and documentation.

Still is a small patch:

doc/src/sgml/event-trigger.sgml | 106 ++++++++++++++++++++
src/backend/commands/cluster.c | 14 ++-
src/backend/commands/event_trigger.c | 106 +++++++++++++++++++-
src/backend/commands/tablecmds.c | 53 ++++++++--
src/backend/commands/vacuum.c | 3 +-
src/backend/utils/cache/evtcache.c | 2 +
src/include/commands/cluster.h | 4 +-
src/include/commands/event_trigger.h | 1 +
src/include/utils/evtcache.h | 3 +-
src/test/regress/expected/event_trigger.out | 23 +++++
src/test/regress/sql/event_trigger.sql | 24 +++++
11 files changed, 322 insertions(+), 17 deletions(-)

--
Dimitri Fontaine 06 63 07 10 78
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

Attachment Content-Type Size
table_rewrite.1.patch text/x-patch 46.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2014-10-16 10:09:16 Re: Incorrect initialization of sentPtr in walsender.c
Previous Message Simon Riggs 2014-10-16 08:26:49 Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]