Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gX3lo-0004OG-IW for pgsql-general@arkaria.postgresql.org; Wed, 12 Dec 2018 12:37:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gX3ll-0007c6-Jj for pgsql-general@arkaria.postgresql.org; Wed, 12 Dec 2018 12:37:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gX3ll-0007bz-Bi for pgsql-general@lists.postgresql.org; Wed, 12 Dec 2018 12:37:41 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gX3lj-0007DT-DE for pgsql-general@lists.postgresql.org; Wed, 12 Dec 2018 12:37:40 +0000 Received: from hermes ([77.11.239.255]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQzoI-1h1QVC34IQ-00UM1v for ; Wed, 12 Dec 2018 13:37:37 +0100 Received: from ncq by hermes with local (Exim 4.91) (envelope-from ) id 1gX3le-0004We-1Y for pgsql-general@lists.postgresql.org; Wed, 12 Dec 2018 13:37:34 +0100 Date: Wed, 12 Dec 2018 13:37:34 +0100 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: Does PostgreSQL use atomic file creation of FS? Message-ID: <20181212123733.GA29783@hermes.hilbert.loc> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) User-Agent: Mutt/1.10.1 (2018-07-13) Sender: X-Provags-ID: V03:K1:B3VAop9OwPbRfxdpwhVBWwNtqP6d8ANwtZKSC98L9wAejZnIaX+ cYV61Kz1wPxrz3y/WbyQ4ghL+CaV3jpMcI56+PoLpaSNFQHYWzKdLFJvTprCFc5fg4m7giH zJ6+sPAvwMmDSzm9uvLVaxi/nGkY+q7KJ1cZZ1hEeoFefn3TlTM6Q5gurog5xK34D8bYVi9 geveOu8LXHsLlDAOBpIvQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Dg17QfaYuS0=:m0gQWD7OkTWUDUq0/6KlxH J+PklXRV6wAPT6pV7617ippuxuZQsjYcHdEfk2vjXWlD11Yh516W0eglg3Vsdgjamy8bJUT95 0eOU4NMZfYRW88AnOOpaPsB03bQSRNa2X8djFUmRZdAxiTbCc9oRtOXckqwS/kDWt63hfLuQx GQJt9J0cbVShklRH9EIz8qIgV2T6YmiN8eA7rnpmrc7H7zEEuu4v42iAs5xdydCICOLC2qksS jd8TRS15GFc38vGeM8EmhVDD0sTlZrOSH8wp5cDPF1pQRhrQSuRgfrTwACiPnr4qUL/N2easv HKK+ZcLrcro+DV9YaMF9xM8vtTKP9xZSQNdko7uaCiE5ixtT9JoUifQkNwHstuxnTgetMOxCa S4TVUn5Lsd/gVi8kDDZ+3nqMxibIt16OOpTJZHiM2PhOu1HmKwDEMvt3u1O0hTO/VozT5/ND4 Gdpv/T0SqZI9r0ozb9oyq5Sz1zYFDn3A+xjN0SkCB71fPYZVaa3veiFNeTCWQ/kvDIQCgUhfk QRi6Qq92AGsQH3xO+l+k8w6hDZfNm0qghvW9DZIZOUN5OYsL+owKxzrbfYep0WNL5S8j6xygz uXG+Q24Zx62RAvPx27omIzc/1E2hGRFzMy03fz/2sTfxdTN+rdnSSPKOlP6HJAN87MkEslKTg n0YVkquD47fz1gjNJynorcPUrg/H5m7Pef0DakDRXMfeLt1sodWuDpm9uqgPsH/81s4bztvwQ wZpoazgZHC5gL08OiHRbUzYdTnOkzUAq0nkuuxSlGnEA2fNqNhB+DSsMcr0rVeCAJ9mqAA+nL VvcWI/Edj8c3kZKODqrhHJxE2eaA5aHqit8S9SOPMWuhDc3d6fVuJRsIrncTeJW1HaX849eo3 EoITdW6/JOS4bF/Qry6ZPkodmjFP6zg2d6d0Eot5cA1kR0oWHC/KYyxZNe3Pn9 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Dec 12, 2018 at 02:48:12PM +0300, Dmitry Lazurkin wrote: > Does PostgreSQL use atomic file creation on FS? How does PostgreSQL > catch situation when system crashes between open call and write call? I > am interesting in this because I would like use PostgreSQL on network > file system. I doubt we can get more certainty than this: https://www.postgresql.org/docs/devel/creating-cluster.html#CREATING-CLUSTER-NFS Best, Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B