I want to move my data folder from my SSD do HDD on my Linux Mint 19.1 Cinnamon.
I have install postgresql from https://www.enterprisedb.com/downloads/postgres-postgresql-downloads version Linux x86-64 10.7. I have found this article: https://www.digitalocean.com/community/tutorials/how-to-move-a-postgresql-data-directory-to-a-new-location-on-ubuntu-18-04 and tried to follow, but I am stuck.
I have my data directory here: /opt/PostgreSQL/10/data (from psql -> SHOW data_directory) and I have my postgresql.conf in this data directory as well (/opt/PostgreSQL/10/data/postgresql.conf). I can move my data directory, but I would move conf file as well. I just cannot see, how postgresql would know new configuration if this configuration is in new location.