Re: Error creating Tablespace on Windows

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Error creating Tablespace on Windows
Date: 2015-11-25 20:15:00
Message-ID: 565616C4.30309@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-11-25 20:33:20 Re: Convert from hex to string
Previous Message deepak 2015-11-25 20:01:57 Error creating Tablespace on Windows