Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Twav0-0001wf-0v for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Jan 2013 16:05:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Twauy-0002PU-Ri for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Jan 2013 16:05:16 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Twaux-0002PG-KV for pgsql-hackers@postgreSQL.org; Sat, 19 Jan 2013 16:05:15 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Twauv-0003Az-Mi for pgsql-hackers@postgreSQL.org; Sat, 19 Jan 2013 16:05:14 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Twauu-0000f9-Tl; Sat, 19 Jan 2013 11:05:12 -0500 Date: Sat, 19 Jan 2013 11:05:12 -0500 From: Bruce Momjian To: bricklen Cc: PostgreSQL-development Subject: Query to help in debugging Message-ID: <20130119160512.GA369@momjian.us> References: <20130117215753.108960@gmx.com> <20130118202656.F1C6.65ED1D25@efficlabo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Fri, Jan 18, 2013 at 07:35:43AM -0800, bricklen wrote: > Please post the results of the following query: > > SELECT 'version'::text AS "name", > version() AS "current_setting" > UNION ALL > SELECT name, > current_setting(name) > FROM pg_settings > WHERE NOT source='default'AND NOT name IN > ('config_file','data_directory','hba_file','ident_file','log_timezone','DateStyle','lc_messages','lc_monetary','lc_numeric','lc_time','timezone_abbreviations','default_text_search_config','application_name','transaction_deferrable','transaction_isolation','transaction_read_only'); Above is a very creative query that was posted to the bugs list by bricklen. It reports all non-default server settings, plus version(). Here is a realigned version: SELECT 'version'::text AS name, version() AS current_setting UNION ALL SELECT name, current_setting(name) FROM pg_settings WHERE source != 'default' AND name NOT IN ( 'config_file','data_directory','hba_file','ident_file','log_timezone', 'DateStyle','lc_messages','lc_monetary','lc_numeric','lc_time', 'timezone_abbreviations','default_text_search_config','application_name', 'transaction_deferrable','transaction_isolation','transaction_read_only' ); and the output from my server with an unmodified postgresql.conf: name | current_setting -----------------+------------------------------------------------------------------------------------------------- version | PostgreSQL 9.3devel on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.4.5-8) 4.4.5, 64-bit client_encoding | UTF8 lc_collate | en_US.UTF-8 lc_ctype | en_US.UTF-8 max_connections | 100 max_stack_depth | 2MB server_encoding | UTF8 shared_buffers | 128MB TimeZone | US/Eastern wal_buffers | 4MB (10 rows) I am wondering if we should make this query more widely used, perhaps by putting it in our docs about reporting bugs, or on our website. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers