From: Richard Huxton <dev@archonet.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark Lubratt <mark.lubratt@indeq.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Schema comparisons
Date: Sun, 29 Feb 2004 14:08:07 +0000
Message-ID: <200402291408.07797.dev@archonet.com> (raw)
In-Reply-To: <11549.1078020095@sss.pgh.pa.us>
References: <C4BBB0BE-699E-11D8-ACD3-000A9579AF50@indeq.com>
<200402281759.50389.dev@archonet.com>
<11549.1078020095@sss.pgh.pa.us>
On Sunday 29 February 2004 02:01, Tom Lane wrote:
> Richard Huxton <dev@archonet.com> writes:
> > I've been looking at storing $REVISION$ in comments for each object, so
> > my install scripts can halt if there is a problem. Not wanting to use my
> > only comment slot for this I was thinking about an extension to the
> > COMMENT ON statement:
> > COMMENT ON TABLE foo IS 'This is where I stroe my foos.';
> > COMMENT ON TABLE foo SECTION 'default' IS 'I meant store my foos.';
> > COMMENT ON TABLE foo SECTION 'revision' IS '1.19';
> > COMMENT ON TABLE foo SECTION 'bar' IS 'baz';
>
> This seems a little, um, specialized. Why don't you just keep the info
> in a user-defined table?
For the same reasons you don't store existing comments in a user-defined
table:
1. It's convenient to have a standard (across providers) place for them.
2. It's meta-data, not data.
3. It gets dumped along with my table.
If it's just a case of "looks like a waste of time" then I might well waste my
time and do it. On the other hand, if it's a case of "unnecessary
complication - don't want it in the code" then I'll not bother.
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, tgl@sss.pgh.pa.us, mark.lubratt@indeq.com, pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Schema comparisons
In-Reply-To: <200402291408.07797.dev@archonet.com>
References: <C4BBB0BE-699E-11D8-ACD3-000A9579AF50@indeq.com> <200402281759.50389.dev@archonet.com> <11549.1078020095@sss.pgh.pa.us> <200402291408.07797.dev@archonet.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