I am trying to bring up a postgres server where the configuration files and the data are in separate places/partitions
postgresql-10 has been installed using the official repository using YUM in Centos 7
And it has been initialised using
/usr/pgsql-10/bin/pg_ctl initdb --pgdata=/var/lib/pgsql/10/data
What is referenced as PGDATA (configuration) directory is the default one:
# ls -salt /var/lib/pgsql/10/data total 120 4 drwxrwxr-x. 19 app app 4096 Nov 10 17:29 .
I would like to use the following directory for data storage:
# ls -salt /usr/ip-spotlight/postgresql/ total 12 4 drwxrwxr-x. 3 postgres postgres 4096 Nov 10 17:43 . 4 drwx------. 2 postgres postgres 4096 Nov 10 17:43 data
And it complains about:
2017-11-10 17:51:44.495 CET  FATAL: "/usr/ip-spotlight/postgresql/data" is not a valid data directory 2017-11-10 17:51:44.495 CET  DETAIL: File "/usr/ip-spotlight/postgresql/data/PG_VERSION" is missing.
On the other hand, in https://www.postgresql.org/docs/current/static/runtime-config-file-locations.html it says:
If you wish, you can specify the configuration file names and locations individually using the parameters config_file, hba_file and/or ident_file. config_file can only be specified on the postgres command line, but the others can be set within the main configuration file.
/var/lib/pgsql/10/data/postgresql.conf is configured as:
data_directory = '/usr/ip-spotlight/postgresql/data' hba_file = '/var/lib/pgsql/10/data/pg_hba.conf' ident_file = '/var/lib/pgsql/10/data/pg_ident.conf'
Could you please advise how to separate the config files of postgresql and the actual data storage ?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!