On 14.01.23 07:01, Amit Kapila wrote:
On Thu, Jan 12, 2023 at 2:44 PM Peter Eisentraut
wrote:
On 10.01.23 07:20, Amit Kapila wrote:
Yeah, we can do that but not sure if it is worth doing any of those
because there are already other places that don't use the exact
context.
Ok, updated patche
On Thu, Jan 12, 2023 at 2:44 PM Peter Eisentraut
wrote:
>
> On 10.01.23 07:20, Amit Kapila wrote:
> > Yeah, we can do that but not sure if it is worth doing any of those
> > because there are already other places that don't use the exact
> > context.
>
> Ok, updated patches attached.
>
Both the p
%zu of %zu bytes",
+ path, nread, len)));
+ }
BufFileClose(fd);
}
base-commit: c8ad4d8166aabd6ed5124e7e432166637d0fe646
--
2.39.0
From 03d64c2e7a4d8f869fadff52d184f8d1373a98e2 Mon Sep 17 00:00:00 2001
From: Peter
On Fri, Jan 6, 2023 at 6:18 PM Peter Eisentraut
wrote:
>
> On 02.01.23 13:13, Amit Kapila wrote:
> > On Wed, Dec 28, 2022 at 4:17 PM Peter Eisentraut
> > wrote:
> >>
> >> Most callers of BufFileRead() want to check whether they read the full
> >> specified length. Checking this at every call sit
g("could not read from streaming
transaction's subxact file \"%s\": read only %zu of %zu bytes",
+ path, nread, len)));
+ }
BufFileClose(fd);
}
base-commit: 72aea955d49712a17c08748aa9abcbcf98c32fc5
--
2.39.0
From 34f1df
On Wed, 28 Dec 2022 at 16:17, Peter Eisentraut
wrote:
>
> Most callers of BufFileRead() want to check whether they read the full
> specified length. Checking this at every call site is very tedious.
> This patch provides additional variants BufFileReadExact() and
> BufFileReadMaybeEOF() that incl
On Wed, Dec 28, 2022 at 4:17 PM Peter Eisentraut
wrote:
>
> Most callers of BufFileRead() want to check whether they read the full
> specified length. Checking this at every call site is very tedious.
> This patch provides additional variants BufFileReadExact() and
> BufFileReadMaybeEOF() that in
Date: Wed, 28 Dec 2022 11:46:14 +0100
Subject: [PATCH] Add BufFileRead variants with short read and EOF detection
Most callers of BufFileRead() want to check whether they read the full
specified length. Checking this at every call site is very tedious.
This patch provides additional variants