Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D9DBE64FFA2 for ; Tue, 8 Jul 2008 04:31:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15937-09 for ; Tue, 8 Jul 2008 04:31:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136038.authsmtp.com (outmail136038.authsmtp.com [62.13.136.38]) by postgresql.org (Postfix) with ESMTP id 6FEE464FF9E for ; Tue, 8 Jul 2008 04:31:03 -0300 (ADT) Received: from mail-c188.authsmtp.com (mail-c188.authsmtp.com [62.13.128.25]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m687V1WP077575 for ; Tue, 8 Jul 2008 08:31:01 +0100 (BST) Received: from [192.168.0.3] (85-211-229-155.dyn.gotadsl.co.uk [85.211.229.155]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m687V0p3018780 for ; Tue, 8 Jul 2008 08:31:00 +0100 (BST) Subject: Re: [HACKERS] Userset logging From: Simon Riggs To: List pgsql-patches In-Reply-To: <1215443593.4051.601.camel@ebony.site> References: <1215443593.4051.601.camel@ebony.site> Content-Type: multipart/mixed; boundary="=-/lDk4JAZiBWJYz8rcHyp" Date: Tue, 08 Jul 2008 08:36:21 +0100 Message-Id: <1215502581.4051.674.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 X-Server-Quench: d02314cc-4cbf-11dd-aecc-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MOFUSTAAU Kk9GJVpeK3UEQkpF VCReGBUITgIzDi11 YxUrKFlCYEpOVxVq WEJKQ1hSFEtgBAID Bx8AUBt7aQRDfWFy YERnQXAVAUJyciB9 Ak1UFGUBbWcuamEf UQ4MdwFXcQcZLQJB OQIpSXIMNTEaNy8z FEprZ2lhYmxSeX8N TF0bF19ACXUrNxUf aio5KH0SBkAfXCgv ZxghJVEdGkl5 X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:1078/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/101 X-Sequence-Number: 6795 --=-/lDk4JAZiBWJYz8rcHyp Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, 2008-07-07 at 16:13 +0100, Simon Riggs wrote: > I notice log_temp_files is a PGC_USERSET parameter, which is out of step > with our current thinking on who is allowed to initiate logging. > > Is there a rationale for this? Or should we set this to PGC_SUSET like > all the other logging functions? Patch enclosed. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support --=-/lDk4JAZiBWJYz8rcHyp Content-Disposition: attachment; filename=log_temp_files_suset.v1.patch Content-Type: text/x-patch; name=log_temp_files_suset.v1.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: src/backend/utils/misc/guc.c =================================================================== RCS file: /home/sriggs/pg/REPOSITORY/pgsql/src/backend/utils/misc/guc.c,v retrieving revision 1.461 diff -c -r1.461 guc.c *** src/backend/utils/misc/guc.c 1 Jul 2008 21:07:33 -0000 1.461 --- src/backend/utils/misc/guc.c 8 Jul 2008 06:03:18 -0000 *************** *** 1861,1867 **** }, { ! {"log_temp_files", PGC_USERSET, LOGGING_WHAT, gettext_noop("Log the use of temporary files larger than this number of kilobytes."), gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."), GUC_UNIT_KB --- 1861,1867 ---- }, { ! {"log_temp_files", PGC_SUSET, LOGGING_WHAT, gettext_noop("Log the use of temporary files larger than this number of kilobytes."), gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."), GUC_UNIT_KB --=-/lDk4JAZiBWJYz8rcHyp--