Re: Aother tablespace permission issue (was Re: Permission problem ...) - Mailing list pgsql-general

From Tom Lane
Subject Re: Aother tablespace permission issue (was Re: Permission problem ...)
Date
Msg-id 16494.1161091743@sss.pgh.pa.us
Whole thread Raw
In response to Aother tablespace permission issue (was Re: Permission problem ...)  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-general
Ron Johnson <ron.l.johnson@cox.net> writes:
> ~$ touch /data/02/share/database/testing.testing
> ~$ dir /data/02/share/database
> total 8
> drwxrwxr-x  2 me postgres 4096 2006-10-16 21:53 ./
> drwxrwxr-x 16 me people   4096 2006-10-16 21:38 ../
> -rw-r--r--  1 me me          0 2006-10-16 21:53 testing.testing

> dupe_filenames=# create tablespace thisisatest
> dupe_filenames-# owner me
> dupe_filenames-# location '/data/02/share/database';
> ERROR:  could not set permissions on directory "/data/02/share/database":
>  Operation not permitted

The specified directory has to be owned by the postgres operating system
user, not by anyone else.  (The SQL-level notion of ownership is not
relevant --- the SQL owner might not correspond to any OS user at all.)

            regards, tom lane

pgsql-general by date:

Previous
From: "Sander Steffann"
Date:
Subject: Re: [HACKERS] Anyone using "POSIX" time zone offset capability?
Next
From: Tom Lane
Date:
Subject: Re: ERRORDATA_STACK_SIZE exceeded