Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm1dO-0006Vp-3u for pgsql-admin@arkaria.postgresql.org; Thu, 09 Mar 2017 17:13:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cm1dN-0002z0-Mm for pgsql-admin@arkaria.postgresql.org; Thu, 09 Mar 2017 17:13:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cm1bc-0008GV-Qv for pgsql-admin@postgresql.org; Thu, 09 Mar 2017 17:12:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cm1ba-0006yo-7R for pgsql-admin@postgresql.org; Thu, 09 Mar 2017 17:12:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v29HBukr023960; Thu, 9 Mar 2017 12:11:56 -0500 From: Tom Lane To: ghiureai cc: "pgsql-admin@postgresql.org" Subject: Re: cfg pg_stat_statements in PG 9.5 error In-reply-to: <58C182EF.3030405@nrc-cnrc.gc.ca> References: <58C182EF.3030405@nrc-cnrc.gc.ca> Comments: In-reply-to ghiureai message dated "Thu, 09 Mar 2017 08:29:35 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23958.1489079516.1@sss.pgh.pa.us> Date: Thu, 09 Mar 2017 12:11:56 -0500 Message-ID: <23959.1489079516@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 ghiureai writes: > I have to cfg pg_stat_statements in Pg version 9.5.1: I create the > extension inside db , next cfg: > local_preload_libraries = > '/usr/pgsql-9.5/share/extension/pg_stat_statements' > when re-starting the PG server seeing this in errorlog : > FATAL: access to library > "/usr/pgsql-9.5/share/extension/pg_stat_statements" is not allowed > I have root with full permission to the "/usr/pgsql-9.5/ and user > postgres with exec only , what I am missing form this cfg? Libraries to be loaded via local_preload_libraries must be in the plugins subdirectory. See the manual's description of that parameter. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin