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 E91DBD1B523; Wed, 29 Oct 2003 14:31:18 +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 28128-09; Wed, 29 Oct 2003 10:30:51 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 00ABFD1B54B; Wed, 29 Oct 2003 10:30:47 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9TEUpit003732; Wed, 29 Oct 2003 09:30:51 -0500 (EST) To: Stef Cc: Rod Taylor , pgsql-admin@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] Table versions In-reply-to: <1067435458.99917.34.camel@jester> References: <20031029125752.35069e3b.svb@ucs.co.za> <1067435458.99917.34.camel@jester> Comments: In-reply-to Rod Taylor message dated "Wed, 29 Oct 2003 08:50:58 -0500" Date: Wed, 29 Oct 2003 09:30:50 -0500 Message-ID: <3731.1067437850@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/348 X-Sequence-Number: 10909 Rod Taylor writes: >> 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. s/rarely/never/. We do not support triggers on system catalogs. The system should have done its best to prevent you from creating one ... I suppose you had to hack around with a "postgres -O" standalone backend? Returning to the original problem, it seems to me that comparing "pg_dump -s" output is a reasonable way to proceed. The problem of inconsistent output format across pg_dump versions is a red herring --- just use a single pg_dump version (the one for your newest server) for all the dumps. Recent pg_dump versions still talk to older servers, back to 7.0 or thereabouts. regards, tom lane