Repository navigation
fix: support fulltext scans over publications - #26702
Merged
mergify[bot] merged 11 commits intoAug 4, 2026
Merged
mergify[bot] merged 11 commits into
mergify[bot] merged 11 commits into
Conversation
…ublication-fulltext
Contributor
Merge Queue Status
This pull request spent 1 hour 7 minutes 11 seconds in the queue, including 37 minutes 57 seconds running CI. Required conditions to merge
|
1 task done
1 task done
2 of 7 tasks
2 of 7 tasks
2 of 7 tasks
3 of 7 tasks
This branch was previously deployed
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.
What type of PR is this?
Which issue(s) this PR fixes:
issue #20210
What this PR does / why we need it:
Publication FULLTEXT rewrites currently serialize the published source table and its hidden index table as SQL strings, then execute that SQL with the subscriber account. Ordinary subscription scans retain publisher identity in
ObjectRef.PubInfo, but the FULLTEXTFUNCTION_SCANloses it.This change:
ObjectRef;fulltext_index_scancalls on their existing identity and prevents SQL string arguments from selecting an account;This supersedes/integrates the intent of #21836. It does not modify or take over that third-party Draft PR.
Evidence
6091b418fd529badca4e1855843bd38804de396f: ordinary subscriber scan passed, but authorized subscriberMATCH ... AGAINSTfailed withUnknown database publisher_db.f74b13cad1b817ad410b71f7504954727c3fc73a: the same production query passed. Live coverage also verified table/database publications, different aliases, quoted identifiers, two subscribers, insert/update/delete visibility, unpublished-table and catalog denial, prepared revoke/drop failure, and reauthorization recovery.go test -p=1 ./pkg/sql/plango test -p=1 ./pkg/sql/compilego test -p=1 ./pkg/sql/colexec/table_functiongo test -p=1 ./pkg/vectorindex/sqlexecgo list,go build, andgo vetfor the four affected packagesmake buildgit diff --checkSecurity boundary
Only planner-resolved
ObjectRef.PubInfocan enable the publisher override. Runtime rejects partial or conflicting trusted references. The subscriber still cannot read unpublished publisher tables, hidden index tables, or publisher catalog rows.QA
QA required: yes.
The checked-in BVT and protobuf round-trip tests are complete, but multi-CN placement, concurrent subscribers, index-update visibility, and revoke/drop must still be run in the distributed QA environment. Keep issue #20210 open through
phase/testinguntil QA PASS.