From: C. Bensend <benny@bennyvision.com>
To: pgsql-admin@postgresql.org
Subject: Re: "mirroring" a table - PostgreSQL 7.3.2
Date: Sat, 24 Jan 2004 15:21:38 -0600 (CST)
Message-ID: <56251.63.227.74.41.1074979320.squirrel@webmail.stinkweasel.net> (raw)
In-Reply-To: <5233.1074978599@sss.pgh.pa.us>
References: <53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net>
<5233.1074978599@sss.pgh.pa.us>
> Possibly you could get the effect you want by making one a child of the
> other. Read up on inheritance. There are some side-effects you'd
> probably *not* want, so this isn't a perfect solution, but I can't think
> of anything else.
Thanks for the quick reply, Tom. I appreciate that.
I've looked at this, and it seems to be on the same level as a quick
DROP/CREATE. Is there no way to "mirror" a table structure in real time?
CREATE TABLE test_bob AS ( SELECT * FROM bob WHERE '1' = '2' );
.. appears to also do what I want, but I'd like to be able to do this
without DROP/CREATE (just because I'm anal, no other real reason). :)
Thoughts?
Benny
--
"Have you ever tried simply turning off the TV, sitting down with your
children, and hitting them?" -- Bender, "Futurama"
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: benny@bennyvision.com
Subject: Re: "mirroring" a table - PostgreSQL 7.3.2
In-Reply-To: <56251.63.227.74.41.1074979320.squirrel@webmail.stinkweasel.net>
References: <53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net> <5233.1074978599@sss.pgh.pa.us> <56251.63.227.74.41.1074979320.squirrel@webmail.stinkweasel.net>
* 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