Permissions error when trying to create Postgresql tablespace on Virtual Box shared folder Odoo 10 CE
I don't know if this belongs here or in a PostgreSQL forum somewhere, but this is related to my previous post of wanting to move my database to a different hardware. I thought about using Pgadmin3 (or 4) to issue CREATE TABLESPACE sql to create a new datastore and specify location other than the default and then simply restore my existing database to the new datastore. I run Ubuntu 16.04 host with Ubuntu 16.04 guest for Odoo. It was an out-of-the-box all-in-one install using the deb file from Odoo which puts the PostgreSQL datastore inside my virtual disk. I would like to have my datastore on a virtual box shared folder which is a large hard drive. I used Pgadmin3 (or 4?) to execute the sql to create the tablespace, but I get a permissions error. I can create and delete files and folders on this shared folder from inside Odoo's VM, so the shared folder is set up correctly for my user account there, but obviously Pgadmin3 is not using my account. Maybe it's using Pgamin3's account name (if there is one for it), or maybe PostgreSQL's account name (whatever that is). Does anyone know what permissions are missing? I hope I got the right forum for this. If not, does anyone know of a good PostgreSQL forum where they will be able to help me on this?