C. Bensend
2004-01-24 19:35:04 UTC
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
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"
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly
"Have you ever tried simply turning off the TV, sitting down with your
children, and hitting them?" -- Bender, "Futurama"
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly