-
Notifications
You must be signed in to change notification settings - Fork 547
feat: Add Indexes to remove need for full index scan on deletion #18741
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
Conversation
Do we want to add one? We could add an additional field here https://github.com/cloudquery/plugin-sdk/blob/a0c96a69b4a87e8d5c018876130d92f9111c4040/schema/column.go#L45 |
|
We could add it, but it wouldn't be simple because we have to retain the order of columns in the index. Maybe we can wait and see if another plugin needs this functionality and add it to the SDK in that case? |
OK, then I would put this behind a spec option, not enabled by default. |
🤖 I have created a release *beep* *boop* --- ## [8.4.0](plugins-destination-postgresql-v8.3.1...plugins-destination-postgresql-v8.4.0) (2024-08-06) ### Features * Add Indexes to remove need for full index scan on deletion ([#18741](#18741)) ([cacad92](cacad92)) * Convert PostgreSQL connection string to secret ([#18859](#18859)) ([9a86eb2](9a86eb2)) ### Bug Fixes * **deps:** Update dependency @cloudquery/cloud-ui to v0.1.12 ([#18836](#18836)) ([b24afab](b24afab)) * **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.10 ([#18850](#18850)) ([ec926b5](ec926b5)) * **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.11 ([#18860](#18860)) ([f7287b9](f7287b9)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.41 ([#18824](#18824)) ([d0d10ac](d0d10ac)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.42 ([#18834](#18834)) ([827d13b](827d13b)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.44 ([#18838](#18838)) ([745aeca](745aeca)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.45 ([#18841](#18841)) ([4476f38](4476f38)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.46 ([#18844](#18844)) ([60f5924](60f5924)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.47 ([#18849](#18849)) ([029638e](029638e)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.50 ([#18861](#18861)) ([79b4291](79b4291)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.52 ([#18862](#18862)) ([c275aed](c275aed)) * **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.53 ([#18863](#18863)) ([c64d143](c64d143)) * **deps:** Update material-ui monorepo ([#18803](#18803)) ([c62a0e1](c62a0e1)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](#18810)) ([42cc5de](42cc5de)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](#18830)) ([605c202](605c202)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](#18839)) ([6b57bca](6b57bca)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](#18852)) ([4320340](4320340)) * PostgreSQL improvements ([#18843](#18843)) ([99b428b](99b428b)) * PostgreSQL logo and helper texts ([#18848](#18848)) ([8b7f173](8b7f173)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
We can't add this as part of the table definition because we don't have a field that can contain data about arbitrary indexes, so we just always ensure the index is present.
I am not opposed to putting this behind a flag if we decide that it should not be rolled out to everyone