Re: [INTERFACES] add/delete field utility?

From: "Cary B(dot) O'Brien" <cobrien(at)access(dot)digex(dot)net>
To: fmorton(at)mail(dot)base2inc(dot)com
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] add/delete field utility?
Date: 1998-09-03 17:44:19
Message-ID: 199809031744.NAA07093@access1.digex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> Is there a utility anywhere that can take an existing
> database and add or delete fields/tables? I often
> need to update databases on multiple machines
> that need the same structure but have different data,
> so dumping the data base, updating in a text editor
> and reloading gets too tedious and the sizes of
> all these are going to get too large eventually.
>

I'm not sure I understand the question, but can't you do this with
psql? You can add and delete tables, and add fields easily (alter table ...).

Dropping a field (column, attribute, whatever) can be done by creating
a temporary table via a select with the columns you want, dropping the
old table, and renaming the temp table to what you want.

Am I misunderstanding the question?

-- cary

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Gerald Gryschuk 1998-09-03 17:53:46 Re: [INTERFACES] postodbc on sparc2.5.1
Previous Message Frank Delahoyde 1998-09-03 16:12:42 Re: [INTERFACES] postodbc on sparc2.5.1