I have an Amazon EC2 instance running postgres. I would like to connect another EBS volume to it, which is used ONLY for postgres data. I can add a volume, but how do I configure postgres to use the installed ebs disk to store data?
You must edit pgdata postgres and point it to the directory mapped to your EBS volume, as described in this section here -
http://www.linuxquestions.org/questions/linux-server-73/change-postgresql-data-directory-649911/
Source: https://habr.com/ru/post/955845/More articles:ipmitool gives "NONE authentication type not supported" - ipmitoolProcessing a view controller that slides in any direction - iosInput axes attached to specific points in data coordinates? - pythonAdding a small image / image to a large graph in Matplotlib / Python - pythonHow to handle hyphens in Yahoo finance tickers in Quantmod - rPost tweet with tweepy - pythonDetect if an array has only null values - javascriptHow to comment on a block containing regexp - javascriptCheck if the array contains anything other than zero in javascript? - javascriptHow to log error messages using Flask and foreman (heroku)? - pythonAll Articles