Change the data directory of the PostgreSQL
In ubuntu 18.04 PostgreSQL is running on the default directory /usr/lib/postgresql/ and the data directory is ‘/etc/postgresql/10/main’ To get the data directory you can run To change the data directory, first, stop the PostgreSQL service I mounted a ZFS volume…