Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fc6UY-0008L8-CZ for pgsql-committers@arkaria.postgresql.org; Sun, 08 Jul 2018 10:00:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fc6UW-0003u1-0S for pgsql-committers@arkaria.postgresql.org; Sun, 08 Jul 2018 10:00:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fc6UV-0003tj-JM for pgsql-committers@lists.postgresql.org; Sun, 08 Jul 2018 10:00:27 +0000 Received: from mahout.postgresql.org ([2001:4800:1501:1::227]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fc6US-0003qy-Oi for pgsql-committers@lists.postgresql.org; Sun, 08 Jul 2018 10:00:26 +0000 Received: from gemulon.postgresql.org ([2001:4800:1501:1::198]) by mahout.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fc6US-0002ES-4O for pgsql-committers@lists.postgresql.org; Sun, 08 Jul 2018 10:00:24 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.89) (envelope-from ) id 1fc6UR-0002RF-GF for pgsql-committers@lists.postgresql.org; Sun, 08 Jul 2018 10:00:23 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@lists.postgresql.org From: Michael Paquier Subject: pgsql: Use access() to check file existence in GetNewRelFileNode() Message-Id: Date: Sun, 08 Jul 2018 10:00:23 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk VXNlIGFjY2VzcygpIHRvIGNoZWNrIGZpbGUgZXhpc3RlbmNlIGluIEdldE5ld1JlbEZpbGVOb2Rl KCkKClByZXZpb3VzIGNvZGUgdXNlZCBCYXNpY09wZW5GaWxlKCkgYW5kIGNsb3NlKCkganVzdCB0 byBjaGVjayBmb3IgYSBmaWxlCmNvbGxpc2lvbiwgd2hpbGUgdGhlcmUgaXMgbm8gbmVlZCB0byBo b2xkIG9wZW4gYSBmaWxlIGRlc2NyaXB0b3IgYnV0CnRoYXQncyBhbiBvdmVya2lsbCBoZXJlLgoK QXV0aG9yOiBQYXVsIEd1bwpSZXZpZXdlZC1ieTogUGV0ZXIgRWlzZW50cmF1dCwgTWljaGFlbCBQ YXF1aWVyCkRpc2N1c3Npb246IGh0dHBzOi8vcG9zdGdyLmVzL20vQ0FCUXJpemNVdGlIYXF1eEs9 ZDRldEJYOEdGOWtiWkI1ME50MWdPOV9hTi1lOVNwdHlRQG1haWwuZ21haWwuY29tCgpCcmFuY2gK LS0tLS0tCm1hc3RlcgoKRGV0YWlscwotLS0tLS0tCmh0dHBzOi8vZ2l0LnBvc3RncmVzcWwub3Jn L3BnL2NvbW1pdGRpZmYvNjc3ZGE4YzE1ZDE5YzExNDY1ZDc4ZjE4YmZkNWNlYjVkNmZjM2FmMQoK TW9kaWZpZWQgRmlsZXMKLS0tLS0tLS0tLS0tLS0Kc3JjL2JhY2tlbmQvY2F0YWxvZy9jYXRhbG9n LmMgfCAxNSArKysrLS0tLS0tLS0tLS0KMSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0aW9ucygrKSwg MTEgZGVsZXRpb25zKC0pCgo=