Re: How to move a tablespace?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 22 June 2007 14:14, Chris Hoover wrote:
> How do you correctly move a tablespace?
>
> I am thinking this would be the process:
> 1.  Cleanly shutdown Postgres
> 2.  Move tablespace directory and all contents to new location
> 3.  Create a symlink from the new location back to the old location
> 4.  Restart Postgres
>
> Would that be correct?  Or is there a better way.
>

ISTM it would be safer to just create a new tablspace within the db and then 
move the objects in that tablespace over. 

On a side note, this is one reason to make tablespaces on clean mount points, 
so that you can swap the disk systems out underneath, but maintain the same 
mountpoint, and not let the db care about the difference. 

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux