-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgrepl: allow logging in with replication
parameter
#105400
Conversation
a9a2928
to
c6728de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! just a small comment
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @otan)
pkg/sql/pgwire/pre_serve_options.go
line 97 at r1 (raw file):
case "replication": // See session variable comment for the reason behind the remapping.
nit: could you change to "behind the error remapping" -- took me a while to understand this comment.
pkg/sql/pgrepl/pgrepl_test.go
line 35 at r1 (raw file):
func TestMain(m *testing.M) { securityassets.SetLoader(securitytest.EmbeddedAssets) serverutils.InitTestServerFactory(server.TestServerFactory)
nit: add the leaktest auto generate thingo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rafiss)
pkg/sql/pgwire/pre_serve_options.go
line 97 at r1 (raw file):
Previously, rafiss (Rafi Shamim) wrote…
nit: could you change to "behind the error remapping" -- took me a while to understand this comment.
i've replaced it with an actual comment.
Previously, otan (Oliver Tan) wrote…
sorry, i mean a full comment* |
d5edb4e
to
f1c861b
Compare
bors r=rafiss |
Build failed: |
This commit adds the `replication=database` connection parameter, which enables certain replication commands to be run. See: https://www.postgresql.org/docs/current/protocol-replication.html We do this by making it a session variable instead of a parameter on the connection like PG does. This adds a hidden `replication` connection parameter to accomplish this. Release note: None
f1c861b
to
569669c
Compare
bors r=rafiss |
Build succeeded: |
This commit adds the
replication=database
connection parameter, which enables certain replication commands to be run.See: https://www.postgresql.org/docs/current/protocol-replication.html
We do this by making it a session variable instead of a parameter on the connection like PG does. This adds a hidden
replication
connection parameter to accomplish this.Informs: #105130
Release note: None