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

Reduce queries to detect select privileges for PostgreSQL relations #57389

Merged
merged 3 commits into from
May 10, 2024

Conversation

strk
Copy link
Contributor

@strk strk commented May 9, 2024

Use a single query rather than 3 to determine recovery status, select privilege and update/insert/delete privileges.

Also drops the need to evaluate view definitions to determine selectability.
User in chat reported 20 seconds of time for such evaluation.

Use a single query rather than 3 to determine recovery status,
select privilege and update/insert/delete privileges.

Also drops the need to evaluate view definitions to determine
selectability.
Copy link

github-actions bot commented May 9, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 949ce73)

@github-actions github-actions bot added this to the 3.38.0 milestone May 9, 2024
@jef-n jef-n enabled auto-merge (rebase) May 9, 2024 21:34
@jef-n jef-n disabled auto-merge May 9, 2024 21:34
@jef-n jef-n enabled auto-merge (squash) May 10, 2024 02:53
@jef-n jef-n merged commit 99179d1 into qgis:master May 10, 2024
30 checks passed
@strk strk deleted the reduce-pgsql-relation-privilege-query branch May 10, 2024 07:23
@jargenio
Copy link

Now creation/clone of a prostgres layer based on a large view takes 0.10 seconds rather than 20 seconds (it was depending on the size of the view). Also projects are loading faster.

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

Successfully merging this pull request may close these issues.

None yet

3 participants