Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWUL0-0006jt-TX for pgsql-general@arkaria.postgresql.org; Fri, 09 Sep 2022 03:05:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWUKz-000129-9D for pgsql-general@arkaria.postgresql.org; Fri, 09 Sep 2022 03:05:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWUKy-000120-HI for pgsql-general@lists.postgresql.org; Fri, 09 Sep 2022 03:05:48 +0000 Received: from fly.ash.relay.mailchannels.net ([23.83.222.61]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWUKu-0003IT-F9 for pgsql-general@lists.postgresql.org; Fri, 09 Sep 2022 03:05:47 +0000 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CD7D47E153C for ; Fri, 9 Sep 2022 03:05:39 +0000 (UTC) Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 2DA4F7E16FB for ; Fri, 9 Sep 2022 03:05:39 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1662692739; a=rsa-sha256; cv=none; b=Tje9ii/InQVHVGmW5iadBMVSXDZ3Jz1m6Xe1wb2HL+FokWXRd+WV9qmAqDHv2cKn8kMKbF ehFQNeurWvE4gV3Eo6tjmXd54kkDhiCAVK9IRZ0tZ6t56uLymz0LEQhCxhiBqVy46G1qP1 H3x93YRfFrHPc1/m6RdM8O12jBIKTKwbeF+PVL6uJPQN3dzo6PCHdlTcRjRy8+n3K7a9a3 vHDDNk0QRFRHE61r66Rg3cblF8ZA+fua5Df9MK41MJIHYIuVu4zYOQGSYA6U3O3JEAacq2 VThwOLmGqT6qoEfj1a/YwpKUihfREuZIe5tpeD6wbAbSg3+qu7X/f0tgS1dbnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1662692739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=3nVh+Saik0DASQQprW1AnklxEdtUOOW6G1CLod/jFPM=; b=F1PPXTdON7beByL9XR0uIiFGX7SjUmc7c94BynsQKlAoJXNbDljtXDvluwGCkrWBDw4Pgr mS/R2vDfHHxr1PEHEQhJ8oWt01p2bVoypgxtvv/0stlOnOkNafKLXx9UTZq8FPz3vkyqAZ xmNyr4349JUf7KRnHOXizVRMPupf1TXrkXVEKA18ZuEyzMgrENKSNmSPjKz2sVkR6rngZL lHWWVCWcbRsmfR/Oto2uMk86b3Gt4bQxkZAdEFAm/75W3yA5u06TiiZPeLAyfsPJtQVbxL nagly/QkW6KqAIH0SJV87W5ckEyKoeRI3pNUi8FQqiaBfvXVQqp0fjcjAOP0Bw== ARC-Authentication-Results: i=1; rspamd-f776c45b8-8hq9w; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Hook-Quick: 2e1c761c02c78d5e_1662692739549_1898744412 X-MC-Loop-Signature: 1662692739549:2200034935 X-MC-Ingress-Time: 1662692739549 Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.109.219.78 (trex/6.7.1); Fri, 09 Sep 2022 03:05:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:Date:Message-Id:Subject:Mime-Version: Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3nVh+Saik0DASQQprW1AnklxEdtUOOW6G1CLod/jFPM=; b=mfY2/YHtVTQsBRyDotr284wlSa NXDo8qE6elxRGAZ/BOxrlloG/X0aiQj42FThrFBA618yZZFdMgUBwwOD04EXSkDmuKeYbZei7HxIV iUaz/a60OCDEvZDSzbX1Ei0yeZmDpLz5L4whTQ59bWdesjwXRTRIXtW4rsSiBC76ut/uhUGWyvHqM yPMjop3pAQxXZeT96HWJhgZkz6lJ8W7x9ZJPMVFY0HuJdRUAHIF/GCEm05bawGCiufkLA3Vod9/H1 ETqRJlYEA2244qgNBB7bOWy2fIiKZWDnmlm2e3MxPorcu+orh8rN4WmYzcjAiVdaxkMMHhV+peQ2i Ct4HTkSA==; Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:58931 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oWUKn-0005Yc-Ku for pgsql-general@lists.postgresql.org; Thu, 08 Sep 2022 23:05:37 -0400 From: Perry Smith Content-Type: multipart/signed; boundary="Apple-Mail=_C91F200B-DE86-4792-B586-B4BECB6E5158"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: WARNING: could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted Message-Id: Date: Thu, 8 Sep 2022 22:05:36 -0500 To: pgsql-general list X-Mailer: Apple Mail (2.3696.120.41.1.1) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_C91F200B-DE86-4792-B586-B4BECB6E5158 Content-Type: multipart/alternative; boundary="Apple-Mail=_546D3A0F-9216-4D53-A335-946C6AFDB656" --Apple-Mail=_546D3A0F-9216-4D53-A335-946C6AFDB656 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 This is an issue when PostgreSQL is running inside a container. In my = quest to find an answer, I=E2=80=99ve discovered three instances that it = has come up and various people have talked about fixes but no one seemed = to notice what I found. I opened an issue here[1]. =46rom within the container, files which I assume are created by = PostgreSQL are ending up being owned by root rather than Postgres. = Thus, to me, it appears to NOT be an issue of mapping internal UIDs and = GIDs to external IDs since there should not be anything outside the = PostgreSQL container creating files inside Postgres=E2=80=99 data = directory. The reason I=E2=80=99m sending this note to the general list is to ask = how bad is this error? Some =E2=80=9Csolutions=E2=80=9D are to make the = pg_stat_tmp directory internal to the image and that somehow resolves = the issue but I don=E2=80=99t think anyone really understands why and = things like that bother me. But I=E2=80=99m also curious if that = appears to be a viable solution. The result will be that when the = Postgres is stopped and the container exited, the next time Postgres = starts back up, the pg_stat_tmp directory will be gone. Is that ok? = Does Postgres store anything that that needs to survive a restart? Thank you for your help, Perry [1] https://github.com/docker-library/docs/issues/2188#issue-1367170047 = --Apple-Mail=_546D3A0F-9216-4D53-A335-946C6AFDB656 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 This = is an issue when PostgreSQL is running inside a container.  In my = quest to find an answer, I=E2=80=99ve discovered three instances that it = has come up and various people have talked about fixes but no one seemed = to notice what I found.

I opened an issue here[1].

=46rom within the container, files = which I assume are created by PostgreSQL are ending up being owned by = root rather than Postgres.  Thus, to me, it appears to NOT be an = issue of mapping internal UIDs and GIDs to external IDs since there = should not be anything outside the PostgreSQL container creating files inside = Postgres=E2=80=99 data directory.

The reason I=E2=80=99m sending this = note to the general list is to ask how bad is this error?  Some = =E2=80=9Csolutions=E2=80=9D are to make the pg_stat_tmp directory = internal to the image and that somehow resolves the issue but I don=E2=80=99= t think anyone really understands why and things like that bother me. =  But I=E2=80=99m also curious if that appears to be a viable = solution.  The result will be that when the Postgres is stopped and = the container exited, the next time Postgres starts back up, the = pg_stat_tmp directory will be gone.  Is that ok?  Does = Postgres store anything that that needs to survive a restart?

Thank you for your = help,
Perry

= --Apple-Mail=_546D3A0F-9216-4D53-A335-946C6AFDB656-- --Apple-Mail=_C91F200B-DE86-4792-B586-B4BECB6E5158 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5yOa/gCtQpb3oCpljxzk9yzE+MAFAmMarYAACgkQjxzk9yzE +MB6WxAAsKpMPrRQDDJ9fFULWMadwj8VhLNLFmtAqDygIiN4RUnSaUvaXGPQ7aRi TOrrQ+C8meqYLAxfgvPfYKI/mkRb+SVxIwtGa0h5+By8WjYp3Zyq7q5dCta0ZqDl eeBTQAJjhNwhYh0qyntBblzEIb9BTYXxu2xTYKwXUZyNyUI6STgFFiHTRm3TmFwG Rse9LSEelOVYnpadVVCksgabd3qF2qhXwqICH175KlcKRCMYZmR/t/PlwMR8ATB0 KHzfWtZZNxCuyysNq4AQFF51Z5l9rSADgi9OFhfTvVJVI9B2XaH44v3bdDuqBL4j ZiURwTI1EhpQOUjCS6nhrCH9e6tLU19JPGx0uR6r7JFT5oIwYuVvy1ZJgFnrY30k tr9sG0XJt612Bpnx/5nk8/U6Z+5vnpzMs91EhCcjirKE9xXGQgYJ9k8hbQW1RhC4 xYay2zlxIrQ+ykWe1DNQhQxBJm4EHg9VPk36JoYW9K49KACAL84qXVbCKWcCq/s7 iqxXWx0Invq9aON3KcCyEZWh2cb7m+bUMGpEjf+Y4mLcM6cX8bMTMPcdmAjFvUsF 9SE4y+T/U6nWybgYEwGwMkHGweh0zlv3zRd+s5wPiU39gReD3JdiEWoLz37nqf4n dK7krs7CYyTpKKTVcNFVFB4nSYYvfC61yuk4BewwpulzSXLmZ08= =9Urm -----END PGP SIGNATURE----- --Apple-Mail=_C91F200B-DE86-4792-B586-B4BECB6E5158--