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
If I use 'c:/windows/temp/testtablespace' for location, it works.
If I look at properties for c:/windows/temp and c:/windows/temp1, they look identical (same ownership and read/write permissions).