-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add new extensions/plugins #294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @TakoB222!
Hi, @TakoB222, can you resync with main? There are some changes there that should fix the check libraries failure. |
Yes, sure |
src/charm.py
Outdated
if extension == "uuid_ossp": | ||
extension = '"uuid-ossp"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to add an override mapping so in the future we can add other exceptions there.
config.yaml
Outdated
plugin_uuid_ossp_enable: | ||
default: false | ||
type: boolean | ||
description: Enable uuid_ossp extension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Enable uuid_ossp extension | |
description: Enable uuid-ossp extension |
@@ -24,6 +24,35 @@ | |||
PG_TRGM_EXTENSION_STATEMENT = "SELECT word_similarity('word', 'two words');" | |||
PLPYTHON3U_EXTENSION_STATEMENT = 'CREATE FUNCTION plpython_test() RETURNS varchar[] AS $$ return "hello" $$ LANGUAGE plpython3u;' | |||
UNACCENT_EXTENSION_STATEMENT = "SELECT ts_lexize('unaccent','Hôtel');" | |||
BLOOM_EXTENSION_STATEMENT = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few nitpicks. Best to do them after #281 is merged, since it touches on the same code. |
Okay, thanks for checking, i'll do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for the great contribution here!
Please address Dragomir comments!
Hi, @TakoB222, please sync main once more. This should sidestep the persistent failures for backup tests on CI. |
done |
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Issue
The list of supported plugins was too short: https://charmhub.io/postgresql-k8s/docs/r-supported-plugins-extensions
Solution
Add new extensions/plugins:
bloom
btree_gin
btree_gist
cube
dict_int
dict_xsyn
earthdistance
fuzzystrmatch
intarray
isn
lo
ltree
old_snapshot
pg_freespacemap
pgrowlocks
pgstattuple
pg_visibility
seg
tablefunc
tcn
tsm_system_rows
tsm_system_time
uuid-ossp