AWS Postgres 设置 pg_trgm.word_similarity_threshold

Pol*_*ffe 6 postgresql amazon-web-services amazon-rds terraform pg-trgm

我正在尝试在 RDS postgres (13) 实例上设置pg_trgm.word_similarity_threshold GUC 参数。

我尝试使用部署后 SQL 脚本设置它:

SET pg_trgm.word_similarity_threshold = 0.5;
SELECT pg_reload_conf();
Run Code Online (Sandbox Code Playgroud)

但这会导致错误:Npgsql.PostgresException (0x80004005): 42501: permission denied for function pg_reload_conf

我还尝试通过 terraform 将其传递到参数列表中来设置它:

SET pg_trgm.word_similarity_threshold = 0.5;
SELECT pg_reload_conf();
Run Code Online (Sandbox Code Playgroud)

这会导致错误:Error modifying DB Parameter Group: InvalidParameterValue: Could not find parameter with name: pg_trgm.word_similarity_threshold

尽管 pg_trgm 是受支持的扩展,但该参数在 postgres 参数组中似乎不可用。有什么方法可以在我的 AWS Postgres RDS 中设置此参数吗?


tad*_*jsv 0

这似乎是不可能的。两年前就曾承诺要实施,但目前还没有采取任何行动。

查看官方答案:https://repost.aws/questions/QUhf2ksaV2SA-MWaw04M4U_Q/changing-pg-trgm-similarity-threshold-in-rds