File tree 2 files changed +48
-0
lines changed
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,39 @@ Current options:
256
256
` pg_bigint_hash ` : PARTITION BY HASH (Postgres hashing function)
257
257
` sha1 ` : A hashing function based on SHA1
258
258
259
+ ### auth_query
260
+ ```
261
+ path: pools.<pool_name>.auth_query
262
+ default: <UNSET>
263
+ example: "SELECT $1"
264
+ ```
265
+
266
+ Query to be sent to servers to obtain the hash used for md5 authentication. The connection will be
267
+ established using the database configured in the pool. This parameter is inherited by every pool
268
+ and can be redefined in pool configuration.
269
+
270
+ ### auth_query_user
271
+ ```
272
+ path: pools.<pool_name>.auth_query_user
273
+ default: <UNSET>
274
+ example: "sharding_user"
275
+ ```
276
+
277
+ User to be used for connecting to servers to obtain the hash used for md5 authentication by sending the query
278
+ specified in ` auth_query_user ` . The connection will be established using the database configured in the pool.
279
+ This parameter is inherited by every pool and can be redefined in pool configuration.
280
+
281
+ ### auth_query_password
282
+ ```
283
+ path: pools.<pool_name>.auth_query_password
284
+ default: <UNSET>
285
+ example: "sharding_user"
286
+ ```
287
+
288
+ Password to be used for connecting to servers to obtain the hash used for md5 authentication by sending the query
289
+ specified in ` auth_query_user ` . The connection will be established using the database configured in the pool.
290
+ This parameter is inherited by every pool and can be redefined in pool configuration.
291
+
259
292
### automatic_sharding_key
260
293
```
261
294
path: pools.<pool_name>.automatic_sharding_key
Original file line number Diff line number Diff line change @@ -113,6 +113,21 @@ primary_reads_enabled = true
113
113
# `sha1`: A hashing function based on SHA1
114
114
sharding_function = " pg_bigint_hash"
115
115
116
+ # Query to be sent to servers to obtain the hash used for md5 authentication. The connection will be
117
+ # established using the database configured in the pool. This parameter is inherited by every pool
118
+ # and can be redefined in pool configuration.
119
+ # auth_query = "SELECT $1"
120
+
121
+ # User to be used for connecting to servers to obtain the hash used for md5 authentication by sending the query
122
+ # specified in `auth_query_user`. The connection will be established using the database configured in the pool.
123
+ # This parameter is inherited by every pool and can be redefined in pool configuration.
124
+ # auth_query_user = "sharding_user"
125
+
126
+ # Password to be used for connecting to servers to obtain the hash used for md5 authentication by sending the query
127
+ # specified in `auth_query_user`. The connection will be established using the database configured in the pool.
128
+ # This parameter is inherited by every pool and can be redefined in pool configuration.
129
+ # auth_query_password = "sharding_user"
130
+
116
131
# Automatically parse this from queries and route queries to the right shard!
117
132
# automatic_sharding_key = "data.id"
118
133
You can’t perform that action at this time.
0 commit comments