Re: hint Consider using pg_file_read()

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Sergei Kornilov <sk(at)zsrv(dot)org>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: hint Consider using pg_file_read()
Date: 2021-03-18 10:21:45
Message-ID: CABUevEz0i0c31evcT1hDZdzQzUOY5bCw5b1D+dAoHOu4f2ELbw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 18, 2021 at 10:58 AM Sergei Kornilov <sk(at)zsrv(dot)org> wrote:
>
> 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?

Yup, it certainly looks that way. There's a really funky combination
of names between SQL and backend there that I guess threw the original
author off.

Will fix.

--
Magnus Hagander
Me: https://www.hagander.net/
Work: https://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2021-03-18 10:31:55 Re: New IndexAM API controlling index vacuum strategies
Previous Message Thomas Munro 2021-03-18 10:19:13 Re: fdatasync performance problem with large number of DB files