Re: open item: tablespace handing in pg_dump/pg_restore - Mailing list pgsql-hackers

From Gavin Sherry
Subject Re: open item: tablespace handing in pg_dump/pg_restore
Date
Msg-id Pine.LNX.4.58.0410042220060.13117@linuxworld.com.au
Whole thread Raw
In response to Re: open item: tablespace handing in pg_dump/pg_restore  (Reini Urban <rurban@x-ray.at>)
Responses Re: open item: tablespace handing in pg_dump/pg_restore
List pgsql-hackers
On Mon, 4 Oct 2004, Reini Urban wrote:

> But the regression test fails: (the only failing test against cvs HEAD)
> This is not only a pg_dump/pg_restore issue, or?
>
> -- Will fail with bad path
> CREATE TABLESPACE badspace LOCATION '/no/such/location';
> ERROR:  could not set permissions on directory "/no/such/location": No
> such file or directory
> -- No such tablespace
> CREATE TABLE bar (i int) TABLESPACE nosuchspace;
> ERROR:  tablespace "nosuchspace" does not exist
> -- Fail, not empty
> DROP TABLESPACE testspace;
> ERROR:  tablespace "testspace" is not empty
> DROP SCHEMA testschema CASCADE;
> NOTICE:  drop cascades to table testschema.foo
> -- Should succeed
> DROP TABLESPACE testspace;
>
> =>
>
> ***************
> *** 38,45 ****
>    ERROR:  tablespace "nosuchspace" does not exist
>    -- Fail, not empty
>    DROP TABLESPACE testspace;
> ! ERROR:  tablespace "testspace" is not empty
>    DROP SCHEMA testschema CASCADE;
> ! NOTICE:  drop cascades to table testschema.foo
>    -- Should succeed
>    DROP TABLESPACE testspace;
> --- 41,49 ----
>    ERROR:  tablespace "nosuchspace" does not exist
>    -- Fail, not empty
>    DROP TABLESPACE testspace;
> ! ERROR:  tablespace "testspace" does not exist
>    DROP SCHEMA testschema CASCADE;
> ! ERROR:  schema "testschema" does not exist
>    -- Should succeed
>    DROP TABLESPACE testspace;
> + ERROR:  tablespace "testspace" does not exist

I cannot recreate on Linux. What platform, etc, are you on?

Gavin


pgsql-hackers by date:

Previous
From: Reini Urban
Date:
Subject: Re: open item: tablespace handing in pg_dump/pg_restore
Next
From: Reini Urban
Date:
Subject: Re: open item: tablespace handing in pg_dump/pg_restore