RE: drop tablespace failed when location contains .. on win32

wangsh.fnst@fujitsu.com <wangsh.fnst@fujitsu.com>

From: "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
To: Michael Paquier <michael@paquier.xyz>, Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-09-09T02:35:52Z
Lists: pgsql-hackers
Hi, 

> -----Original Message-----
> From: Michael Paquier <michael@paquier.xyz>
> 
> On Wed, Sep 08, 2021 at 08:54:25AM -0400, Andrew Dunstan wrote:
> > That seems like a bug. It's not very canonical :-)
> 
> Yes, better to fix that.  I fear that more places are impacted than
> just the tablespace code paths.
> --
> Michael

Do you mean changing the action of canonicalize_path(), like remove all the (..) ?

I'm willing to fix this problem.

Regards
Shenhao Wang



Commits

  1. Simplify coding around path_contains_parent_reference().

  2. Make canonicalize_path() more canonical.