Skip to content
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

sql: support synchronous_commit and enable_seqscan as dummy no-op #52168

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Jul 30, 2020

These vars are set by osm2pgsql and ogr2ogr respectively. These
default to the ON state, the OFF state affects performance but not
correctness.

Touches #51818.

Release note (sql change): Support the setting and getting of the
synchronous_commit and enable_seqscan variables, which do not affect
any performance characteristics. These are no-ops enabled to allow
certain tools to work.

@otan otan requested review from rytaft and a team July 30, 2020 22:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 8 of 8 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @otan)


pkg/sql/unsupported_vars.go, line 96 at r1 (raw file):

	"enable_mergejoin",
	"enable_nestloop",
	//"enable_seqscan",

[nit] add a space after //


pkg/sql/logictest/testdata/logic_test/set, line 360 at r1 (raw file):


query T noticetrace
SET synchronous_commit = off; SET enable_seqscan = false

what about also adding a test for enabling these (setting to true)? Would be good to add a test to SHOW the current value as well.

Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @otan)


pkg/sql/logictest/testdata/logic_test/set, line 380 at r2 (raw file):


query T noticetrace
SET synchronous_commit = off; SET enable_seqscan = true

[nit] maybe you meant synchronous_commit = on?

Copy link
Contributor Author

@otan otan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @rytaft)


pkg/sql/logictest/testdata/logic_test/set, line 360 at r1 (raw file):

Previously, rytaft (Rebecca Taft) wrote…

what about also adding a test for enabling these (setting to true)? Would be good to add a test to SHOW the current value as well.

caught a few things, oops. thanks for the suggestion


pkg/sql/logictest/testdata/logic_test/set, line 380 at r2 (raw file):

Previously, rytaft (Rebecca Taft) wrote…

[nit] maybe you meant synchronous_commit = on?

ye!

Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r3.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

These vars are set by `osm2pgsql` and `ogr2ogr` respectively. These
default to the ON state, the OFF state affects performance but not
correctness.

Release note (sql change): Support the setting and getting of the
`synchronous_commit` and `enable_seqscan` variables, which do not affect
any performance characteristics. These are no-ops enabled to allow
certain tools to work.
@otan
Copy link
Contributor Author

otan commented Aug 3, 2020

tftr!

bors r=rytaft

@craig
Copy link
Contributor

craig bot commented Aug 3, 2020

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants