Re: [INTERFACES] add/delete field utility?

Поиск
Список
Период
Сортировка
От James Olin Oden
Тема Re: [INTERFACES] add/delete field utility?
Дата
Msg-id 81Sep3.063049edt.35713@gateway.lee.k12.nc.us
обсуждение исходный текст
Ответ на Re: [INTERFACES] add/delete field utility?  ("Cary B. O'Brien" <cobrien@access.digex.net>)
Список 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.
>

Also, he should be able to come with some script or program in any one of the
numerous languages out there to automate the processes so that he can perfect the
process once on his test database, and then just run one command on each of the
other workstations.

...james



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] ecpg and embedded SQL
Следующее
От: mheravi@siac.com
Дата:
Сообщение: initdb problems