replacing tables

From: Mark Byerley <mrbyerle(at)uwaterloo(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: replacing tables
Date: 2001-04-06 17:59:41
Message-ID: 5.0.2.1.0.20010406134940.00a1e9c0@admmail.uwaterloo.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I have one table named temp and another table which I have added a few
fields to - let's call it temp_test. It has all the same fields as table
temp except it also has a birthdate field just recently added. Table temp
has many indexes and sequences created to handle certain fields and what
not. What I would like to know is simply if I insert into temp_test select
* from temp and then drop table temp and create table temp as select * from
temp_test, will I lose the indexes and sequences attributed to the original
table temp?
thanks for any help on this one.
M~

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Atul 2001-04-07 06:19:31 Query
Previous Message ADBAAMD 2001-04-06 16:03:40 Re: Database Name Case Sensitivity