mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 23:04:27 +08:00
FEATURE: allow users to specify if prepared statements are allowed
(they need to be disabled for pgpool based setups)
This commit is contained in:
parent
fe31d45131
commit
fff55e0ee3
|
@ -26,6 +26,8 @@ class GlobalSetting
|
||||||
hash["host_names"] = [ hostname ]
|
hash["host_names"] = [ hostname ]
|
||||||
hash["database"] = db_name
|
hash["database"] = db_name
|
||||||
|
|
||||||
|
hash["prepared_statements"] = !!self.db_prepared_statements
|
||||||
|
|
||||||
{"production" => hash}
|
{"production" => hash}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,10 @@ db_username = discourse
|
||||||
# password used to access the db
|
# password used to access the db
|
||||||
db_password =
|
db_password =
|
||||||
|
|
||||||
|
# allow usage of prepared statements, must be disabled for
|
||||||
|
# pgpool transaction pooling
|
||||||
|
db_prepared_statements = true
|
||||||
|
|
||||||
# hostname running the forum
|
# hostname running the forum
|
||||||
hostname = "www.example.com"
|
hostname = "www.example.com"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user