X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 097D1D1B55F for ; Wed, 29 Oct 2003 13:51:26 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27051-03 for ; Wed, 29 Oct 2003 09:50:58 -0400 (AST) Received: from mail.hive.nj2.inquent.com (mc.carriermail.com [205.178.180.9]) by svr1.postgresql.org (Postfix) with SMTP id 6577CD1B544 for ; Wed, 29 Oct 2003 09:50:54 -0400 (AST) Received: (qmail 5570 invoked from network); 29 Oct 2003 13:51:18 -0000 Received: from unknown (HELO ?192.168.1.199?) (134.22.71.200) by 205.178.180.9 with SMTP; 29 Oct 2003 13:51:18 -0000 Subject: Re: Table versions From: Rod Taylor To: Stef Cc: pgsql-admin@postgresql.org, pgsql-sql@postgresql.org In-Reply-To: <20031029125752.35069e3b.svb@ucs.co.za> References: <20031029125752.35069e3b.svb@ucs.co.za> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WG7D1I7R1d2JuK8VYhqd" Message-Id: <1067435458.99917.34.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 29 Oct 2003 08:50:58 -0500 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/406 X-Sequence-Number: 10967 --=-WG7D1I7R1d2JuK8VYhqd Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > What I did next, is put a trigger on pg_attribute that should, in theory, > on insert and update, fire up a function that will increment a version System tables do not use the same process for row insertion / updates as the rest of the system. You're trigger will rarely be fired. --=-WG7D1I7R1d2JuK8VYhqd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/n8XB6DETLow6vwwRAvTCAJ0XfBlKcc+578zlc88qJHyEPImgQQCdEE3V 4i9FLpQolhz3pPLuvpq5A2k= =0A2q -----END PGP SIGNATURE----- --=-WG7D1I7R1d2JuK8VYhqd--