table move across databases - Mailing list pgsql-novice

From Duncan Sargeant
Subject table move across databases
Date
Msg-id 20020723035935.GA23072@circe.rcpt.to
Whole thread Raw
Responses Re: table move across databases  (Ron Johnson <ron.l.johnson@cox.net>)
Re: table move across databases  (Andrew McMillan <andrew@catalyst.net.nz>)
List 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 by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: Memory problems
Next
From: Ron Johnson
Date:
Subject: Re: table move across databases