Describe how to change ownership in more detail.
This commit is contained in:
parent
97a84f3b3f
commit
e02fcce22f
|
@ -40,6 +40,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
|
#. Change the owner to spatial tables to the CKAN user to avoid errors later
|
||||||
on::
|
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 spatial_ref_sys OWNER TO ckan_default;
|
||||||
ALTER TABLE geometry_columns OWNER TO ckan_default;
|
ALTER TABLE geometry_columns OWNER TO ckan_default;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue