Changing pg_trgm.similarity_threshold in RDS

1

Hello, I would like to reduce the threshold from 0.3 to 0.1. The parameter pg_trgm.similarity_threshold doesn't exist in any parameter group and due to superuser issues I can't alter the database and change this parameter permanently. I can see that the pg_trgm extension is installed but the parameter is missing.

已提問 2 年前檢視次數 1249 次
1 個回答
1

Hello AWS Customer,

As you know, the parameters for the 'pgtrgm' extension are non-standard i.e. they are not part of a standard postgresq.conf file. In RDS, we provide parameter group to enable PostgreSQL parameters, however, at present, 'pg_trgm' extension GUC parameters (given below), are not part of default parameter group of RDS PostgreSQL instance: pg_trgm.similarity_threshold, pg_trgm.word_similarity_threshold, pg_trgm.strict_word_similarity_threshold

So, you will not be able to change the values of these parameters at global level for the RDS instance.

But workaround here would be to set this parameter value at the database session level using the below set command:

"set pg_trgm.similarity_threshold=0.1;
"

However, the changed parameter value is valid only for the session executing the query. When a new session connects to the DB, the "pg_trgm.similarity_threshold" parameter value is set to "0.3" by default.

The internal team is already working towards incorporating this feature in RDS PostgreSQL but I don't have any ETA on its availability. Please follow the AWS blog for new feature announcements

Hope the information helps.

AWS
Kunal_M
已回答 2 年前
  • Any progress on this feature? It's been a while.

  • Any update?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南