Re: Patch for ALTER DATABASE WITH TABLESPACE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Patch for ALTER DATABASE WITH TABLESPACE
Date
Msg-id 6300.1226068592@sss.pgh.pa.us
Whole thread Raw
In response to Re: Patch for ALTER DATABASE WITH TABLESPACE  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Patch for ALTER DATABASE WITH TABLESPACE
List pgsql-hackers
Guillaume Lelarge <guillaume@lelarge.info> writes:
> Bernd Helmle a �crit :
>> Maybe this is nit-picking, but i see that you have to rmdir() an
>> existing empty tablespace directory to use copydir() afterwards. Maybe
>> we can teach copydir() to error out when trying to mkdir() an existing
>> directory only when forced by the caller? I see copydir() used at four
>> places, so the impact of this change would be minimal.

> I don't think this is nit-picking. I think about it too myself when I
> did v4 and v5. I wasn't so sure, I prefered not to change this function
> because it's used on important parts of the code (createdb and redo wal).

I like the v5 version better too.

Bernd, did you have any further comments?  If not I'll get started on
this patch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL/MED compatible connection manager
Next
From: Bernd Helmle
Date:
Subject: Re: Patch for ALTER DATABASE WITH TABLESPACE