Re: Bug in CREATE/DROP TABLESPACE command

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: William Garrison <postgres(at)mobydisk(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Bug in CREATE/DROP TABLESPACE command
Date: 2007-03-20 22:57:53
Message-ID: 200703202257.l2KMvrn27257@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


What version of PostgreSQL is this? Please provide the SQL commands
that cause this problem, with error output.

---------------------------------------------------------------------------

William Garrison wrote:
> On Windows Server 2003, if you create a tablespace to a location that
> doesn't exist, then try to remove that tablespace, you get an error that
> pg_tblspc/##### does not exist. It appears that postgres created the
> tablespace internally, but not the folder. When you try to drop the
> tablespace, the folder doesn't exist and it reports an error.
>
> This sounds like two interacting bugs:
> 1) The tablespace should not have been created because the symlink could
> not be created.
> 2) It should be possible to remove a tablespace even if the symlink has
> already been deleted manually.
>
> The workaround is to create a pg_tblsc/##### directory then do the drop.
>
> Where do I submit this bug?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org/

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dhaval Shah 2007-03-20 23:01:26 Re: Unable to start postgres in recovery mode.
Previous Message Arthur Hoogervorst 2007-03-20 22:40:24 Re: Postgresql to Delphi

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-03-20 23:00:52 Re: Make TIMESTAMP + TIME in the source code
Previous Message Gavin Sherry 2007-03-20 22:36:55 Re: Bitmapscan changes - Requesting further feedback