Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs

Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs by Annabella Proctor
Nearby Libraries

Only you can see this

Save Note
Last edited by Annabella Proctor
August 9, 2026 | History

Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs

Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs presents Gray’s compiler-hidden PostgreSQL continuation architecture for direct-style server programs.

This volume describes how Gray preserves direct source-order database calls while moving connection establishment, query dispatch, output flushing, input consumption, result draining, cancellation, and connection retirement onto readiness-driven runtime state machines. The architecture is designed to avoid assigning an ordinary worker to every blocked database handler while preserving cancellation, typed errors, source order, and operational cleanup.

The work responds to a retained one-hour baseline that delivered 3,999.85 requests per second at 4,000 requested but accumulated 802.82 ms corrected p99 latency. The replacement continuation path placed the useful corrected-latency knee between 12,000 and 16,000 requested requests per second. A separate Static qualification with PostgreSQL 16, a 64-connection pool, four wrk2 threads, and 256 persistent HTTP connections delivered 7,961.48 requests per second at 8,000 requested, with 1.43 ms corrected p50, 4.60 ms p99, and 8.74 ms p99.9.

During load, the runtime exposed as many as 164 simultaneously suspended handlers while using zero general task workers; after completion, active task, worker, and continuation counts returned to zero. Semantic gates covered overlapping queries, typed errors after resumption, HTTP/2 multiplexing, cancellation and connection replacement, 404/500 behavior, and Adaptive deployment replacement.

This book is intended for systems programmers, compiler/runtime engineers, backend infrastructure teams, database engineers, and readers interested in direct-style server programming, nonblocking PostgreSQL execution, readiness reactors, and reproducible systems qualification.

Publish Date
Publisher
Grayworth, Inc.

Book Details


Edition Notes

Copyright Date
2026

Edition Identifiers

Open Library
OL62419950M
ISBN 13
9798191410890

Work Identifiers

Work ID
OL45872449W
LibraryThing
37002746

Links outside Open Library

Community Reviews (0)

No community reviews have been submitted for this work.

Lists

Download catalog record: RDF / JSON / OPDS |

Wikipedia citation

Copy and paste this code into your Wikipedia page.

{{cite book|author=Annabella Proctor |date=2026 |title=Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs |publisher=Grayworth, Inc. |isbn=979-8--19141089-0 |ol=62419950M}}