Skip to content

fix postgresql string property index #195

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions ml_metadata/util/metadata_source_query_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5554,6 +5554,9 @@ R"pb(
)pb",
R"pb(
# secondary indices in the current schema.
secondary_indices {
query: " CREATE EXTENSION IF NOT EXISTS pg_trgm; "
}
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS idx_artifact_uri ON Artifact (uri); "
" CREATE INDEX IF NOT EXISTS "
Expand Down Expand Up @@ -5610,7 +5613,7 @@ R"pb(
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS "
" idx_artifact_property_string "
" ON ArtifactProperty (name, is_custom_property, string_value); "
" ON ArtifactProperty USING gist (name gist_trgm_ops, string_value gist_trgm_ops); "
}
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS "
Expand All @@ -5625,7 +5628,7 @@ R"pb(
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS "
" idx_execution_property_string "
" ON ExecutionProperty (name, is_custom_property, string_value); "
" ON ExecutionProperty USING gist (name gist_trgm_ops, string_value gist_trgm_ops); "
}
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS "
Expand All @@ -5640,7 +5643,7 @@ R"pb(
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS "
" idx_context_property_string "
" ON ContextProperty (name, is_custom_property, string_value); "
" ON ContextProperty USING gist (name gist_trgm_ops, string_value gist_trgm_ops); "
}
secondary_indices {
query: " CREATE INDEX IF NOT EXISTS idx_type_external_id "
Expand Down