Skip site navigation (1) Skip section navigation (2)

Bug in file access functions

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Bug in file access functions
Date: 2005-08-29 18:39:13
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9CFD@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-patches
The attached patch fixes a couple of minor issues in the file access
functions added for 8.1. These seem to have been introduced in recent
changes following the original patch.

1) Stop them rejecting paths that use Windows backslash directory
seperators.

2) Allow absolute paths to files into the data dir, as we already do for
the log dir. This allows queries like the following to work:

   select pg_stat_file((select setting from pg_settings where name =
'config_file'));

Without, a relative path must be constructed which is obviously
non-trivial in SQL.

Please apply for beta 2.

Regards, Dave

Attachment: genfile.c.diff
Description: application/octet-stream (1.2 KB)

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2005-08-29 19:14:52
Subject: Re: Bug in file access functions
Previous:From: Tom LaneDate: 2005-08-29 15:44:59
Subject: Re: be-secure.c patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group