Describe how to change ownership in more detail.

This commit is contained in:
Tobias Preuss 2014-04-09 10:43:26 +02:00
parent bbe4125257
commit d047a90a2c
1 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,16 @@ All commands assume an existing CKAN database named ``ckan_default``.
#. Change the owner to spatial tables to the CKAN user to avoid errors later
on::
Open the Postgres console::
$ sudo -u postgres psql
Connect to the ``ckan_default`` database::
postgres=# \c ckan_default
Change the ownership for two spatial tables::
ALTER TABLE spatial_ref_sys OWNER TO ckan_default;
ALTER TABLE geometry_columns OWNER TO ckan_default;