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

Updated instrumentation patch

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Updated instrumentation patch
Date: 2005-07-30 14:39:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Per recent discussion, here is yet another updated version of the
instrumentation patch. Changes:

* Added guc option "disable_remote_admin", that disables any write
operations (write, unlink, rename) even for the superuser. Set as
PGC_POSTMASTER so it cannot be changed remotely.
I put this under "file locations", because that's where all the other
config file information is. Though that doesn't feel completely right, I
couldn't find a better place without creating a whole new category (it's
not *connection* security, after all), and if that's to be done I think
it's better if one of the committers pick name etc for it :-)

* Make sure pg_file_stat() can only be used by superuser. It lacked this
check previously.

* Updated so it applies to current cvs. This means all oids have
changed, since they were all used for other things now. Also added a
required header that had moved with the datetime stuff.

Actual code changes against the previous patch are very small.


Description: application/octet-stream (28.1 KB)
Attachment: genfile.c
Description: application/octet-stream (10.1 KB)


pgsql-patches by date

Next:From: Bruce MomjianDate: 2005-07-30 14:42:41
Subject: Re: [HACKERS] Autovacuum loose ends
Previous:From: Tom LaneDate: 2005-07-30 14:37:57
Subject: Re: [HACKERS] Autovacuum loose ends

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