Re: Error creating Tablespace on Windows

From: Begin Daniel <jfd553(at)hotmail(dot)com>
To: deepak <deepak(dot)pn(at)gmail(dot)com>, John R Pierce <pierce(at)hogranch(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error creating Tablespace on Windows
Date: 2015-11-26 01:49:59
Message-ID: CY1PR10MB086069CDD85200608782ABBF94040@CY1PR10MB0860.namprd10.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of deepak
Sent: November-25-15 17:07
To: John R Pierce
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Error creating Tablespace on Windows

I chose temp only for illustration purposes. Actually the regression test "tablespace" fails too,
for the same reason, when run from sources (which creates a tablespace directory under
src/test/regress)

The above query used to work for me. May be you should make sure to use the appropriate owner.
CREATE TABLESPACE workspace1 OWNER postgres LOCATION 'E:\\TempFiles\\pgsqlData';
--
Deepak

On Wed, Nov 25, 2015 at 2:15 PM, John R Pierce <pierce(at)hogranch(dot)com<mailto:pierce(at)hogranch(dot)com>> wrote:
On 11/25/2015 12:01 PM, deepak wrote:
I am getting this permission denied error on Windows 2008 trying to create a tablespace.

template1=# create tablespace testtablespace location 'c:/windows/temp1/testtablespace';
ERROR: could not set permissions on directory "c:/windows/temp1/testtablespace": Permission denied

why are you putting database tables in the Windows directory?!? I would instead put them somewhere like

C:\Users\postgres\AppData\Local\Temp (assuming C:\Users\postgres is the %USERPROFILE% directory for the postgres service owner...)

--
john r pierce, recycling bits in santa cruz

--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org<mailto:pgsql-general(at)postgresql(dot)org>)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ramesh T 2015-11-26 03:33:42 Re: Taking lot time
Previous Message Jeff Janes 2015-11-26 01:24:08 Re: using a postgres table as a multi-writer multi-updater queue