Re: Some read stream improvements
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-04-07T01:33:18Z
Lists: pgsql-hackers
On Mon, Apr 7, 2025 at 1:29 PM Andres Freund <andres@anarazel.de> wrote: > On 2025-04-03 14:43:40 +1300, Thomas Munro wrote: > > On Thu, Apr 3, 2025 at 11:17 AM Andres Freund <andres@anarazel.de> wrote: > > > I don't actually see any reason for buffer_limit to be a 16bit quantity? It's > > > just to clamp things down, right? > > > > Ugh. It might be worth just flipping this whole thing over to ints, > > let me look into that... > > If you don't mind I'll push the obvious minimal fix soon - it's a confusing > crash when one encounters this issue... Please go ahead, sorry I got distracted trying to fix something else...
Commits
-
read_stream: Fix overflow hazard with large shared buffers
- 8ce79483dc47 18.0 landed
-
Support buffer forwarding in StartReadBuffers().
- ce1a75c4fead 18.0 landed
-
Support buffer forwarding in read_stream.c.
- ed0b87caaca1 18.0 landed
-
Simplify distance heuristics in read_stream.c.
- 799959dc7cf0 18.0 landed
-
Improve read_stream.c advice for dense streams.
- 7ea8cd15661e 18.0 landed
-
Respect changing pin limits in read_stream.c.
- 92fc6856cb4c 18.0 landed
-
Improve buffer manager API for backend pin limits.
- 01261fb07888 18.0 landed
-
Remove arbitrary cap on read_stream.c buffer queue.
- 55918f798bc2 18.0 landed