Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WBPys-0001dw-9k for pgsql-admin@arkaria.postgresql.org; Thu, 06 Feb 2014 14:31:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WBPyr-0003c9-QV for pgsql-admin@arkaria.postgresql.org; Thu, 06 Feb 2014 14:31:05 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WBPyr-0003c3-0l for pgsql-admin@postgresql.org; Thu, 06 Feb 2014 14:31:05 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WBPyk-0003cr-24 for pgsql-admin@postgresql.org; Thu, 06 Feb 2014 14:31:04 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WBPyi-00078l-Oe for pgsql-admin@postgresql.org; Thu, 06 Feb 2014 15:30:56 +0100 Received: from 195-202-234-210.dynamic.hispeed.ch ([195.202.234.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Feb 2014 15:30:56 +0100 Received: from stelian by 195-202-234-210.dynamic.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Feb 2014 15:30:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Stelian Iancu Subject: Re: Enable pg_stat_statements Date: Thu, 06 Feb 2014 15:30:53 +0100 Lines: 39 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195-202-234-210.dynamic.hispeed.ch User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: X-Pg-Spam-Score: -1.6 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 06/02/14 15:25, bricklen wrote: > > On Thu, Feb 6, 2014 at 6:16 AM, Stelian Iancu > wrote: > > Hi all, > > I have Postgres 9.3.2 running on Debian 7. > > I would like to enable the pg_stat_statements extension. In order to > do this, I added the following line to postgresql.conf: > > shared_preload_libraries = 'pg_stat_statements' > > However after that the server fails to restart and I get the > following error message: > > Restarting PostgreSQL 9.3 database server: mainThe PostgreSQL server > failed to start. Please check the log output: 2014-02-06 15:12:34 > CET FATAL: could not access file "pg_stat_statements": No such file > or directory ... failed! > failed! > > Any ideas why? > > > > Have you also installed the postgresql-contrib-9.3 package (via apt-get > etc)? Once you do that, you'll likely need to create the extension in > your database, eg. "create extension pg_stat_statements;", then you you > can set the shared_preload_libraries value. > No, I haven't done that, didn't know I have to do it, thanks! I will do like you suggested. Thanks again! S. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin