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

[Feature] Option to set index storage parameters #666

Open
3 tasks done
kinghuang opened this issue Aug 3, 2024 · 0 comments
Open
3 tasks done

[Feature] Option to set index storage parameters #666

kinghuang opened this issue Aug 3, 2024 · 0 comments
Labels
pkg:dbt-postgres Issue affects dbt-postgres type:enhancement New feature request

Comments

@kinghuang
Copy link

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt-postgres functionality, rather than a Big Idea better suited to a discussion

Describe the feature

dbt-postgres supports specifying indexes in model configs with three components: columns, unique, and type. I would like an option to set index storage parameters. This is relevant when creating pgvector hnsw indexes, and other index types.

Describe alternatives you've considered

  • Override the postgres__get_create_index_sql macro.
  • Use a post-hook.

Who will this benefit?

For pgvector users, being able to specify m and ef_construction storage parameters on hnsw indexes is crucial for performance management. Standard indexes like b-tree, GiST, and GIN also have useful parameters.

Are you interested in contributing this feature?

Not at this time.

Anything else?

No response

@kinghuang kinghuang added type:enhancement New feature request triage:product In Product's queue labels Aug 3, 2024
@amychen1776 amychen1776 removed the triage:product In Product's queue label Aug 28, 2024
@mikealfare mikealfare added the pkg:dbt-postgres Issue affects dbt-postgres label Jan 15, 2025
@mikealfare mikealfare transferred this issue from dbt-labs/dbt-postgres Jan 24, 2025
mikealfare pushed a commit that referenced this issue Jan 29, 2025
* add tests for --empty flag

* changelog entry

* restore dev-requirements
colin-rogers-dbt pushed a commit that referenced this issue Feb 3, 2025
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:dbt-postgres Issue affects dbt-postgres type:enhancement New feature request
Projects
None yet
Development

No branches or pull requests

3 participants