pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: "König, Monika" <monika.koenig@bonn.de>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: trigger ddl actions in a table
Date: Thu, 15 Nov 2007 16:29:51 +0100
Message-ID: <1C2329C9430609409808ECF10237287612EA4CC7@mydomain.com> (raw)


I need a way for logging every action on the system catalog. I must have a
table which shows when a tables was created or updated or deleted. I need
the date  of the change .

I tried to make an trigger on pg_catalog.pg_class but this throws an error :
"ERROR: permission denied: "pg_class" is a system catalog".

I can see all ddl in my log files, but 
	- there are even the errors in and 
	- i can't use it for a select


Is there an possibility for having such an system-action table??



Thanks

Monika König








view thread (4+ messages)  latest in thread

Message-ID: <1C2329C9430609409808ECF10237287612EA4CC7@mydomain.com>
Permalink:  ../1C2329C9430609409808ECF10237287612EA4CC7@mydomain.com/
Also on:    postgresql.org/message-id/1C2329C9430609409808ECF10237287612EA4CC7@mydomain.com

 · 

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-admin@postgresql.org
  Cc: monika.koenig@bonn.de
  Subject: Re: trigger ddl actions in a table
  In-Reply-To: <1C2329C9430609409808ECF10237287612EA4CC7@mydomain.com>
  References: <1C2329C9430609409808ECF10237287612EA4CC7@mydomain.com>

* 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