Re: error moving table to tablespace (8.0 beta win32 ) - Mailing list pgsql-general

From Tom Lane
Subject Re: error moving table to tablespace (8.0 beta win32 )
Date
Msg-id 21884.1092267317@sss.pgh.pa.us
Whole thread Raw
In response to Re: error moving table to tablespace (8.0 beta win32 )  (Christian Traber <christian@traber-net.de>)
Responses Re: [pgsql-hackers-win32] error moving table to tablespace  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-general
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)

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: How copy a new line char to a file?
Next
From: Richard Welty
Date:
Subject: Re: PostgreSQL 8.0 Feature List?