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 1oWVNw-0003LD-04 for pgsql-general@arkaria.postgresql.org; Fri, 09 Sep 2022 04:12:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWVNu-00011w-Qs for pgsql-general@arkaria.postgresql.org; Fri, 09 Sep 2022 04:12:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWVNu-0000xp-Ej for pgsql-general@lists.postgresql.org; Fri, 09 Sep 2022 04:12:54 +0000 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oWVNs-000589-0v for pgsql-general@lists.postgresql.org; Fri, 09 Sep 2022 04:12:53 +0000 Received: by mail-qt1-x82f.google.com with SMTP id x7so278747qtv.9 for ; Thu, 08 Sep 2022 21:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date; bh=Qwh74XmA+rT1KGQnzrQ0wkFbBZIlwiF5hSh+avWNzp8=; b=PYBg20VmIBiDb/I+26RB/G72MaHq0U6z60zmT27ncWuwTleYNC+CPNR2LREM0xTm4i nxcGOR28wOrKsLFAPa/0HO7Ep7tj46JoXSsM+1Z0EESUq9fcOyS0nSg+SrRCeaf2Kod+ v+DxkuryFnjj5ndSVIUydz2WkomEB7OjFL2tZEZbaRneGYqu7AxWnuho5Wx25f/ckioK +C/bkIGGLua82perTgZ/16PEKyzVACaBENDHsibQSOj7iNfubLk119KsRuGFudhqLLDN 8/9RjnxLz8U3bSsbWTzhCmQa9BmwRjl2G1yDk7hZeIWsE23m/+dKlzzJqGaqSHG4g8lf HshA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date; bh=Qwh74XmA+rT1KGQnzrQ0wkFbBZIlwiF5hSh+avWNzp8=; b=WRJwBMdzk8+ejeZrYC9Qj7LrL8epnKeVVCktjiqI/s1ghzZARlIGx3bohy5q1pZMPR vh0PVdfZk0ccvbdjIkR1YCBAWogp+JBY+x36MBPD6N3+vxBfJDl8ejL+bosXf7SD/3ht oPzJH8420uPslZ0GYB04gGZjhvKhB5i+IZfUvCeLZtC1xiUjmQ0NhC4dRu/fxRgOWS1C 0RudjJiZhi9H1SUKM2Q/E67WdYsjmj7iZBzu9h1GWMQ0Qcepd7R0Z9RXBOB1VH7tfh2+ iTMJuBD/8t1BfcJdwzJKaXs6ZgZenoAh+nITFvYLrtsAB8n7nBszNJc7jhLh1jEFvTKs dpxA== X-Gm-Message-State: ACgBeo1TXls9TO5Nyn6H/e/G2KCDkaZfIxZYACzs9aC0PId/luRgNHkk Ck6cjzbrfghszQfo75uzDCl4qLgwKRfgCGpH X-Google-Smtp-Source: AA6agR7BJjfRuvPL/czCthh4yNNtDqD5qzKDHdn8uQ68j+iOkHfJB5Y8rGKj7ZF3AldsLNOHmxnDlg== X-Received: by 2002:ac8:5acf:0:b0:344:8f3e:5f08 with SMTP id d15-20020ac85acf000000b003448f3e5f08mr10541729qtd.207.1662696770701; Thu, 08 Sep 2022 21:12:50 -0700 (PDT) Received: from [192.168.2.100] (pool-72-79-30-4.nwrknj.east.verizon.net. [72.79.30.4]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a240500b006b8e63dfffbsm562092qkn.58.2022.09.08.21.12.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 21:12:50 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------2Rl0L5b3tue5RSpBj0vFHRJ5" Message-ID: <14c7c00e-4812-f7e1-13fa-92a6faafed59@gmail.com> Date: Fri, 9 Sep 2022 00:12:49 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: ***SPAM*** Re: WARNING: could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <12702.1662694970@sss.pgh.pa.us> From: Mladen Gogala In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------2Rl0L5b3tue5RSpBj0vFHRJ5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/9/22 00:08, Perry Smith wrote: > The data directory is outside so it is persistent. The pg_stat_tmp is inside the data directory. Ah, that's the reason. Docker daemon runs as root so if you do binding mount, files will be owned by root. You may want to use normal Docker volume and not an external directory. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com --------------2Rl0L5b3tue5RSpBj0vFHRJ5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 9/9/22 00:08, Perry Smith wrote:
The data directory is outside so it is persistent.  The pg_stat_tmp is inside the data directory.  

Ah, that's the reason. Docker daemon runs as root so if you do binding mount, files will be owned by root. You may want to use normal Docker volume and not an external directory.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
--------------2Rl0L5b3tue5RSpBj0vFHRJ5--