Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B75452E2E6F for ; Fri, 16 Nov 2007 02:00:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 05564-04 for ; Fri, 16 Nov 2007 01:59:58 -0400 (AST) Received: from node2.bonn.de (BONNGW.bonn.de [212.79.173.52]) by postgresql.org (Postfix) with ESMTP id 8D7902E2DF9 for ; Fri, 16 Nov 2007 01:59:58 -0400 (AST) Received: from mx2.bonn.de by node2.bonn.de via smtpd (for postgresql.org [200.46.204.71]) with ESMTP; Fri, 16 Nov 2007 07:00:06 +0100 Received: Received by internal MTA Received: Received by internal MTA Received: from (unknown [10.81.1.77]) by SV5104.bonn.de with smtp id 557d_6f60258c_9411_11dc_a81a_0014221da358; Fri, 16 Nov 2007 07:59:11 +0100 Received: Received by internal MTA Message-ID: <1C2329C9430609409808ECF10237287612EA4CCA@mydomain.com> From: =?iso-8859-1?Q?=22K=F6nig=2C_Monika=22?= To: "'pgsql-admin@postgresql.org'" Subject: trigger ddl actions in a table Date: Fri, 16 Nov 2007 07:01:22 +0100 MIME-Version: 1.0 X-Mailer: internal Mail Client Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Header-Manager: Changed by NetCon X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/162 X-Sequence-Number: 27405 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=20 - there are even the errors in and=20 - i can't use it for a select Is there an possibility for having such an system-action table?? Thanks Monika K=F6nig