I am trying to create a PG db in a specified location. According to the docs here, I must use the LOCATION flag. However, when I run CREATE DATABASE (from the pgsql CLI), I get the following warning:
WARNING: LOCATION is not supported anymore
HINT: Consider using tablespaces instead.
However, the PG documentation on TABLESPACES does not show how it can be used to create a database in a specific directory. What is the required syntax to do this?
CREATE TABLESPACEcommand in the fine manual here postgresql.org/docs/9.1/static/sql-createtablespace.html , and than do a create datbase : postgresql.org/docs/9.1/static/sql-createdatabase.html referring to that location