Skip site navigation (1) Skip section navigation (2)

pgsql: Extend object access hook framework to support arguments,and DR

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Extend object access hook framework to support arguments,and DR
Date: 2012-03-09 19:40:34
Message-ID: E1S65g2-0003hm-BP@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Extend object access hook framework to support arguments, and DROP.

This allows loadable modules to get control at drop time, perhaps for the
purpose of performing additional security checks or to log the event.
The initial purpose of this code is to support sepgsql, but other
applications should be possible as well.

KaiGai Kohei, reviewed by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/07d1edb954bc8f5d0e2c010dec8482328af38cb8

Modified Files
--------------
src/backend/catalog/dependency.c           |   10 +++++++++
src/backend/catalog/heap.c                 |    3 +-
src/backend/catalog/pg_collation.c         |    2 +-
src/backend/catalog/pg_constraint.c        |    3 +-
src/backend/catalog/pg_conversion.c        |    4 +-
src/backend/catalog/pg_namespace.c         |    3 +-
src/backend/catalog/pg_operator.c          |    4 +-
src/backend/catalog/pg_proc.c              |    3 +-
src/backend/catalog/pg_type.c              |    6 +++-
src/backend/commands/dbcommands.c          |   12 ++++++++++-
src/backend/commands/extension.c           |    2 +-
src/backend/commands/foreigncmds.c         |    8 ++++--
src/backend/commands/functioncmds.c        |    3 +-
src/backend/commands/opclasscmds.c         |    4 +-
src/backend/commands/proclang.c            |    2 +-
src/backend/commands/tablecmds.c           |    2 +-
src/backend/commands/tablespace.c          |   11 +++++++++-
src/backend/commands/trigger.c             |    2 +-
src/backend/commands/tsearchcmds.c         |   11 ++++++---
src/backend/commands/user.c                |   12 ++++++++++-
src/backend/rewrite/rewriteDefine.c        |    2 +-
src/backend/storage/large_object/inv_api.c |    2 +-
src/include/catalog/objectaccess.h         |   29 ++++++++++++++++++++++-----
23 files changed, 104 insertions(+), 36 deletions(-)

pgsql-committers by date

Next:From: Robert HaasDate: 2012-03-09 20:19:03
Subject: pgsql: sepgsql DROP support.
Previous:From: Tom LaneDate: 2012-03-09 17:49:42
Subject: pgsql: Revise FDW planning API, again.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group