Created
February 4, 2016 17:32
-
-
Save erickzanardo/6bd22c87abae4cf492a5 to your computer and use it in GitHub Desktop.
PG tablespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For many reason tablespace location should be on the partition root | |
sudo mkdir /root_of_fs/pgfoo | |
sudo chown postgres: /root_of_fs/pgfoo | |
CREATE TABLESPACE foo LOCATION '/root_of_fs/pgfoo'; | |
ALTER DATABASE my_db TABLESPACE foo; | |
CREATE DATABASE my_db TABLESPACE foo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment