Re: BUG #15207: In crash recovery, SyncDataDirectory() will fall into recursion trap

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bret(dot)shao(at)outlook(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15207: In crash recovery, SyncDataDirectory() will fall into recursion trap
Date: 2018-05-23 13:36:33
Message-ID: 3573.1527082593@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)org> writes:
> I install the PG at location "D:\highgo\database\", then i create a table
> space with "create tablespace spacetest location 'D:\highgo\database\'"

This is pilot error isn't it? It's certainly hard to see what would be
the value of making a tablespace pointing at the data directory itself.

Offhand, I think we do not support tablespaces that are physically inside
the data directory, either.

I think there's been some discussion of having CREATE TABLESPACE try to
detect and reject such cases. But it would be easy enough to fool it
(through symlinks, variant path spellings, etc), that people haven't been
excited about adding such a check.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2018-05-23 14:02:52 Re: BUG #15207: In crash recovery, SyncDataDirectory() will fall into recursion trap
Previous Message PG Bug reporting form 2018-05-23 07:50:28 BUG #15207: In crash recovery, SyncDataDirectory() will fall into recursion trap