Re: logfile subprocess and Fancy File Functions - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: logfile subprocess and Fancy File Functions
Date
Msg-id 200407232122.i6NLMn604170@candle.pha.pa.us
Whole thread Raw
In response to Re: logfile subprocess and Fancy File Functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: logfile subprocess and Fancy File Functions
List pgsql-patches
Tom Lane wrote:
> Also, while I'm aware that a superuser can persuade the backend to write
> on anything, it doesn't follow that we should invent pg_file_write(),
> pg_file_rename(), or pg_file_unlink().  Those are not needed for the
> originally intended purpose of this patch and I think that they are just
> invitations to trouble.  If you are aware that there are burglars out
> there who know how to pick your door lock, do you then post directions
> and tools to help on your door?

We already allow COPY to write anywhere.  Might as well give people some
utilities in case it is helpful.

I think the analogy is locking one door but leaving the other door
unlocked.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: logfile subprocess and Fancy File Functions
Next
From: "Magnus Hagander"
Date:
Subject: Re: Updated logging config (was: Initial eventlog support on win32 )