Repository navigation
perf(postgres): stable browse pages, batched catalog reads, streamed reads and direct TLS - #4328
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
synchronize_seqscans, so unsorted browse pages no longer skip rows on large tables. The setting is guarded bypg_backend_pid() = PQbackendPID, so a pooler's server session is left alone. PGlite, KingbaseES, Redshift and CockroachDB never send it, and-c synchronize_seqscans=...in Connection Options wins.statement_timeoutand the scan setting in one Query.applyQueryTimeoutskips the value the connect already applied, once.fetchColumnsandfetchAllColumnssend their 5 reads in one Query. Inside a user's block a savepoint holds the batch and is rolled back after it; an aborted block keeps each read on its own.build-libpq.shandbuild-freetds.shcompile with-O2. Flags only, the libraries are not rebuilt here.String.sslnegotiation=direct. A refusal before sign-in retries the standard negotiation under the samesslmode, and that endpoint is not tried directly again.check-column-type-corpus.shlists the products the PostgreSQL harness now needs.Measurements
PostgreSQL 17.11,
shared_buffers128 MB, 200 ms RTT through a delay proxy where a time is given.fetchColumnssslmode=requireTest plan
LibPQCatalogBatchTests,LibPQSingleRowReadTests,LibPQDirectTLSTests, plus cases inLibPQConnectionStringTests,LibPQCellDecodingTestsandLibPQByteaDecoderTests.PostgreSQLConnectRoundTripTests.probesShareOneQuery, since the connect's Query now opens with the schema read instead of the search path pin.PostgreSQLDriverTests: 917 passed.AllPluginsbuilds.check-column-type-corpus.sh postgresqlagainst 17.11: 469 checks hold.fetchColumnsandfetchAllColumnsoutput is identical before and after on a table with enum, array, collated and generated columns.verify.sh ioswas inconclusive, this Mac has no iOS runtime. CI coversPostgreSQLCatalogExport.swifton iOS.Needs the maintainer
apple/Libs/checksums.sha256. The-O2flags take effect only then.