-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
SET results_buffer_size doesn't work as a session variable #124360
Comments
A customer indicated this would be good to have in a backport to 23.2.7 since they are testing read committed and this helps minimize transaction retry errors. |
The setting should be configured in one of two ways:
Changing the buffer size in a running session is not supported, and would be a somewhat high effort to implement, since it requires changing the size of the buffer while it's being used in different goroutines. cockroach/pkg/sql/pgwire/conn.go Lines 1259 to 1263 in bf28084
|
Related issue: #124049 |
Thanks! Someday we may wanna do it if restarting the session becomes unacceptable. But for now we should probably remove it from this doc page, I'll make a separate issue for that: |
Specifying
|
Ah I think there's a bit of a rough edge. It doesn't work in the
Let me try to get the bug with |
Thanks. Some (maybe all?) JDBC libraries don't seem to honor |
124437: pgwire: support results_buffer_size in connection string options r=fqazi a=rafiss informs #124360 Release note (bug fix): The results_buffer_size session variable previously could not be configured by using the "options" query parameter in the connection string; it could only be configured as a top-level query parameter. Now, it can be configured in either part of the connection string. (This variable still cannot be changed with the SET command after the session begins.) Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
SET results_buffer_size='2MiB'; doesn't seem to work. We likely didn't implement it based on this TODO:
cockroach/pkg/sql/vars.go
Line 1177 in 8fb653b
Jira issue: CRDB-38849
The text was updated successfully, but these errors were encountered: