Christian Traber <christian@traber-net.de> writes:
> Maybe its only win32 version?
Well, I can't reproduce it on Unix. It seems awfully odd though that
you can create tables in that tablespace to begin with but can't move
them there. I'm cc'ing this to the pgsql-hackers-win32 to see if anyone
there has a clue ...
regards, tom lane
> Here what i tried:
> CREATE TABLE test (name varchar(100));
> CREATE TABLE
> CREATE TABLESPACE test LOCATION 'C:\\tmp\\ts_test';
> CREATE TABLESPACE
> \db
> List of tablespaces
> Name | Owner | Location
> ------------+----------+----------------
> pg_default | postgres |
> pg_global | postgres |
> test | postgres | C:/tmp/ts_test
> (3 rows)
> ALTER TABLE test SET TABLESPACE test;
> ALTER TABLE
> \d+ test
> Table "public.test"
> Column | Type | Modifiers | Description
> --------+------------------------+-----------+-------------
> name | character varying(100) | |
> Contains OIDs: yes
> Tablespace: "test"
> ALTER TABLE test SET TABLESPACE pg_default;
> ERROR: could not create relation 1663/317186/1317654: Permission denied
> select version();
> version
> ----------------------------------------------------------------------------------------------------------
> PostgreSQL 8.0.0beta1 on i686-pc-mingw32, compiled by GCC gcc.exe
> (GCC) 3.2.3 (mingw special 20030504-1)
> (1 row)