Ow Mun Heng
|| at Sep 4, 2007 at 4:22 am
On Tue, 2007-09-04 at 07:09 +0300, Mikko Partio wrote:
On 9/4/07, Ow Mun Heng wrote:
I'm running out of space on one of my partitions and I still
gotten all the data loaded yet. I've read that one could
pg_pg_xlog directory to another drive. I'm wondering if I can
same for specific tables as well.
Create another tablespace to the new location and the ALTER TABLE ...
OOooohhh... I didn't know one could use tablespaces like that. (I mean,
I did read the docs, but it just didn't register that it _can_ do
something like that)
additional question.. do I need to change the search_path?
I've already done a pg_dump of the entire schema but have not
re-init the DB to another location cos I'm afraid I'll lose
(I've to drop the DB, format the partition, merge it w/
partition and re-init the DB then restore the DB from the
sigh.. wish it was easier, (meaning, like SQL Server where one
detach an entire DB/tablespace and then re-attach it
If you are moving the whole cluster and can afford the downtime, you
can shutdown the postmaster, move $PGDATA to a new location and then
start postmaster from that new location.
It's not a cluster. Its a devel DB in my laptop so.. no issues w/
dropping everything and re-creating. Just exploring my options..
The tablespace thing looks/sounds interesting though...