table move across databases

Поиск
Список
Период
Сортировка
От Duncan Sargeant
Тема table move across databases
Дата
Msg-id 20020723035935.GA23072@circe.rcpt.to
обсуждение исходный текст
Ответы Re: table move across databases  (Ron Johnson <ron.l.johnson@cox.net>)
Re: table move across databases  (Andrew McMillan <andrew@catalyst.net.nz>)
Список pgsql-novice
Hi,

Is there a way to move a table between databases?

The reason I ask is that I have a growing 'log' table which is only
ever inserted to and no rows are ever deleted, updated and replace.  It
is indexed by the time of insert.  I'd like to archive off this table to
another database so that vacuum and pg_dump don't take so long on the
'live' database.  I'm taking a nightly backup, and this data never
changes so it doesn't need to be archived as often.  If there is a way
to do all this or something similar without rotating the table to a
different database then I would like to hear it (the only other way I
can think of is to use the -t option of pg_dump for each of the other
tables, but that's too ugly)

many thanks in advance
,dunc

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

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: Memory problems
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: table move across databases