Re: [HACKERS] For review: Server instrumentation patch - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] For review: Server instrumentation patch
Date
Msg-id 21618.1123871254@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] For review: Server instrumentation patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] For review: Server instrumentation patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Here is an updated patch I have just applied (catalog version updated).

Actually, you forgot the catversion bump.

I read over this and fixed most of the problems I could see, but there
is still one left:

    /*
     *    Prevent reference to the parent directory.
     *    "..a.." is a valid file name though.
     *
     * XXX this is BROKEN because it fails to prevent "C:.." on Windows.
     * Need access to "skip_drive" functionality to do it right.  (There
     * is no actual security hole because we'll prepend the DataDir below,
     * resulting in a just-plain-broken path, but we should give the right
     * error message instead.)
     */

I'm not sure whether to export skip_drive from path.c or just duplicate
it.  If we do export it, a different name would probably be a good idea,
as it seems too generic for a global symbol.

            regards, tom lane

pgsql-patches by date:

Previous
From: Mark Wong
Date:
Subject: Re: [HACKERS] Autovacuum loose ends
Next
From: Mary Edie Meredith
Date:
Subject: Re: [HACKERS] data on devel code perf dip