我使用Ubuntu 12.04,postgresql 9,1 postgis 1.5。 我想改变数据库的位置。 我使用说明http://www.whiteboardcoder.com/2012/04/change-postgres-datadirectory-folder.html唯一的区别是我不使用postgres帐户更改文件/etc/postgresql/9.1/main/postgresql .conf文件
当我resatrt postgresql我有错误:
Error: pid file is invalid
该错误存在于错误跟踪器https://tickets.opscode.com/browse/COOK-3618中
我怎样才能改变数据库的位置?
在这种情况下使用适当的工具 – pg_createcluster 。 仔细看看它的--datadir=选项。