Re: open item: tablespace handing in pg_dump/pg_restore

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Gavin Sherry" <swm(at)linuxworld(dot)com(dot)au>, "Reini Urban" <rurban(at)x-ray(dot)at>
Cc: "PostgreSQL Developers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: open item: tablespace handing in pg_dump/pg_restore
Date: 2004-10-04 13:00:54
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE475DF9@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > >>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?
> >
> > hmm, I'll investigate then.
> >
> > postgresql latest CVS with 2 minor shlib building patches left
> > (added -lpgport)
> > cygwin-1.5.11
> > gcc-3.4.1
>
> Hmm.. sounds like we're trying to support tablespaces on a
> system which doesn't actually support symlinks (in the way we
> need them). Can any of the windows guys help?

There was special code added to handle symlinks on windows using NTFS
junction points to pgport. Not sure if it's a) enabled, or b) working,
under cygwin. Dunno if anyone has even tried it. I'd go looking around
that area :-)

//Magnus

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-10-04 13:14:53 Re: Libpq problem on Windows.
Previous Message Gavin Sherry 2004-10-04 12:56:10 Re: open item: tablespace handing in pg_dump/pg_restore