Simplified version of read_binary_file (src/backend/utils/adt/genfile.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Simplified version of read_binary_file (src/backend/utils/adt/genfile.c)
Date: 2020-09-11 14:50:37
Message-ID: CAEudQAoW1MLb7eNrm0FXjDu=T40sv1Wxm7jrqkUWGAscHObidg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

read_binary_file seems a bit complicated when we want to read the rest of
the file (-1 for bytes_to_read).
This version, it seems, has no opposite effects, someone can confirm?

regards,
Ranier Vilela

Attachment Content-Type Size
v1-0001-simplified_read_binary_file.patch application/octet-stream 3.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-09-11 14:52:23 Re: Logical Replication - detail message with names of missing columns
Previous Message Alvaro Herrera 2020-09-11 14:35:46 Re: Logical Replication - detail message with names of missing columns