Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYz79-0001DZ-Un for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 09 Jan 2018 18:59:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYz79-0006Ti-GM for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 09 Jan 2018 18:59:11 +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 1eYz79-0006TY-69 for pgsql-pkg-yum@lists.postgresql.org; Tue, 09 Jan 2018 18:59:11 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eYz75-00012I-Q5 for pgsql-pkg-yum@postgresql.org; Tue, 09 Jan 2018 18:59:10 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id BF9B020BD7; Tue, 9 Jan 2018 13:59:04 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 09 Jan 2018 13:59:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=NYaEEG 9+Pp0jiVPQA97MprmfLrCjbesWZOuLj47ijJw=; b=VvoUIZkfn33SzRBslL6d2S Aq9DVBM+bqdAoYODGMlzg7uD8Xvm2N5A1XvfdNEccQrGEOWTYi+4qi+ICfqSbNsB 4KmkhdJN1fumxb21pGUCGP8MXvNGOlArHyqyp2MlsOtM4fdj0PTE1xHtsZFaJ7RF o0ZrLVuZq36uIQ6F1tHHcQVgokVyHqyvcwVRClH5VDeKW4SOs8eeUaFUdLi/mcSE QkxqrUiwqJFI7EQWr4SyNkBtqy9Oxjuh0LlVgKCuY6YfXOWsCAmACzSawhEF9DEa 7IcYlumJFENxWGFpM/MauxANDuDISti1A2n40JJ1an8HsEsYCx3W07Lf927Dy23w == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 79E0724608; Tue, 9 Jan 2018 13:59:04 -0500 (EST) Subject: Re: pgbouncer packaging issue To: Brandon Snider , pgsql-pkg-yum@postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 9 Jan 2018 13:59:04 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/9/18 13:47, Brandon Snider wrote: > You're installing /usr/lib/tmpfiles.d/pgbouncer.conf to create the > /var/run/pgbouncer dir, but the permissions on that dir are too > restrictive -- 700 -- for any file to be read by any user except > pgbouncer and root. In my situation, for whatever reason my PHP > implementation can't read unix sockets in /tmp, That might need further explanation. > and I would like to > install the socket to the /var/run dir since the pgbouncer user has > write permissions there. This is a very similar situation as the > postgresql conf file which creates the /var/run/postgresql dir. I > could manually change the directory permission myself, but it would be > overwritten the next time there's a bouncer update. Depending on the operating system, you should put the socket into /tmp or /var/run/postgresql, because that's where a PostgreSQL client would expect it. The client isn't supposed to know that it's connecting to pgbouncer instead. So /var/run/pgbouncer is in any case not a designated place for a Unix-domain socket. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services