pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: C. Bensend <benny@bennyvision.com>
To: pgsql-admin@postgresql.org
Subject: "mirroring" a table - PostgreSQL 7.3.2
Date: Sat, 24 Jan 2004 13:35:04 -0600 (CST)
Message-ID: <53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net> (raw)


Hey folks,

   I searched the archives and didn't really come up with much, so I'm
posting my question here.

   I have two tables in the same database, whose structure I want to be
identical.  Call them 'bob' and 'test_bob' for example.

   If I make a change to the schema of 'bob', I want that exact change to
happen to 'test_bob'.  The data is irrelevant - any data in 'test_bob' is
going to be manipulated, spindled, folded, and mutilated.  The data in
'bob' must remain intact.

   For example, if I ALTER a column or ADD a column to 'bob', I need the
exact same thing to happen to 'test_bob'.

   Is this possible without the typical DROP and CREATE TABLE?  Many
thanks for any input.  :)

Benny


-- 
"Have you ever tried simply turning off the TV, sitting down with your
children, and hitting them?"                   -- Bender, "Futurama"



view thread (6+ messages)  latest in thread

Message-ID: <53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net>
Permalink:  ../53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net/
Also on:    postgresql.org/message-id/53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net

 · 

reply

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: <53076.63.227.74.41.1074972926.squirrel@webmail.stinkweasel.net>
  References: <53076.63.227.74.41.1074972926.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