-
Notifications
You must be signed in to change notification settings - Fork 599
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
Tracking: Introduce Sqlancer #3364
Comments
+1 for running daily job against batch query. For streaming query, does it support materialized view? |
Yes(at least in code), https://github.com/sqlancer/sqlancer/blob/master/src/sqlancer/postgres/gen/PostgresViewGenerator.java When I use 8 threads for testing PG with Sqlancer, the throughput is around 6000 queries per second. Suspect that if we wait for the mv's |
cc @sumittal |
Let me know if you have any questions or need input from my side about integrating SQLancer! |
You may adjust checkpoint interval to a relatively small value (or just using the mock frontend / compute node as we've done in most unit tests). This might lead to better throughput.
Absolutely, we're even not done with parallel ddl! #2692 #3084 |
Few more system tables needed:
Updated the description. |
Thanks for the info! We can also hard-code these PG system tables just enough to support SQLancer. |
I think none of these three system tables is essential for testing. As an alternative, you could also consider adding a flag to the SQLancer Postgres implementation that specifies whether these system tables are supported (see https://github.com/sqlancer/sqlancer/blob/master/src/sqlancer/postgres/PostgresOptions.java). |
Have continued work on this, you may follow the progress here:
Plan:
Many thanks to @mrigger for providing his thoughts and suggestions on these. |
https://github.com/sqlancer/sqlancer has already supported Postgres.
We can run the test against batch queries first.
Running it for each PR seems unnecessary, maybe set it up as a daily job? Probably also allow people to manually trigger it.
Running it for stream queries? Require some extra effort by extending the existing Postgres module of
Sqlancer
.Prerequisite:
extra_float_digits
#3406 (Haven't fully support, but enough to run Sqlancer)pg_opclass
#3431pg_collation
pg_operator
pg_am
ENCODING, TEMPLATE
parameters.References:
See: https://github.com/sqlancer/sqlancer/blob/78506a83a4b77d2c9536980a4d3b4d47eb7e9317/src/sqlancer/postgres/PostgresGlobalState.java#L44-L94
The text was updated successfully, but these errors were encountered: