Re: create tablespace fails silently, or succeeds improperly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Dave Cramer <pg(at)fastcrypt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: create tablespace fails silently, or succeeds improperly
Date: 2010-12-11 15:56:19
Message-ID: 2880.1292082979@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Frost <sfrost(at)snowman(dot)net> writes:
> * Robert Haas (robertmhaas(at)gmail(dot)com) wrote:
>> On Fri, Dec 10, 2010 at 10:33 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Anybody have a problem with adopting this behavior?

>> Seems a bit surprising.

> Yeahh.. I'm not really sure about mkdir -p type actions from a SQL
> command. Not entirely sure why but it doesn't feel 'right' to me. I'd
> rather have PG complain "that directory doesn't exist".

OK. Is there any value in doing mkdir -p in WAL-recovery execution of
CREATE TABLESPACE but not regular execution?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-12-11 16:13:12 Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags
Previous Message Dmitriy Igrishin 2010-12-11 15:28:20 Re: proposal: auxiliary functions for record type