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 1lMpPh-0001NN-H9 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 09:57:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMpPf-0007io-64 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 09:57:55 +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 1lMpPe-0007ig-VR for pgsql-hackers@lists.postgresql.org; Thu, 18 Mar 2021 09:57:54 +0000 Received: from forward102j.mail.yandex.net ([5.45.198.243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMpPa-0006Bs-4L for pgsql-hackers@postgresql.org; Thu, 18 Mar 2021 09:57:54 +0000 Received: from sas1-7f48512e8f51.qloud-c.yandex.net (sas1-7f48512e8f51.qloud-c.yandex.net [IPv6:2a02:6b8:c14:578b:0:640:7f48:512e]) by forward102j.mail.yandex.net (Yandex) with ESMTP id CD6A1F22141 for ; Thu, 18 Mar 2021 12:57:46 +0300 (MSK) Received: from mail.yandex.ru (mail.yandex.ru [188.242.230.8]) by sas1-7f48512e8f51.qloud-c.yandex.net (mxback/Yandex) with HTTP id ivYFxR0kVqM1-vkkatZSE; Thu, 18 Mar 2021 12:57:46 +0300 Authentication-Results: sas1-7f48512e8f51.qloud-c.yandex.net; dkim=pass Received: by sas2-2fa759678732.qloud-c.yandex.net with HTTP; Thu, 18 Mar 2021 12:57:46 +0300 From: Sergei Kornilov To: PostgreSQL mailing lists Subject: hint Consider using pg_file_read() MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 18 Mar 2021 12:57:46 +0300 Message-Id: <373021616060475@mail.yandex.ru> Content-Transfer-Encoding: 7bit Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello In src/backend/utils/adt/genfile.c in pg_read_file we have errhint > errhint("Consider using %s, which is part of core, instead.", > "pg_file_read()") Shouldn't pg_read_file() be written here? regards, Sergei