postgresql - 如何在 Play Framework 中设置 Postgres 参数
问题描述
我正在尝试temp_file_limit
通过 Play Framework(2.7 版)配置向我的 Postgres DB 添加参数。我尝试application.conf
如下添加参数,但这并不限制 Postgres DB 处理的临时文件大小。
db.postgresql.temp_file_limit = 10KB
- 不工作
temp_file_limit = 10KB
- 不工作
db.default.temp_file_limit = 10KB
- 不工作
我当前的 Postgres 设置application.conf
如下(工作正常)。
db.postgresql.driver = org.postgresql.Driver
db.postgresql.url = "jdbc:postgresql://localhost:5432/postgres"
db.postgresql.username = postgres
db.postgresql.password = XXXXXXXXXXX
下面是 Postgres 的上述参数和其他类似参数的描述。 https://postgresqlco.nf/doc/en/param/temp_file_limit/
我知道我们可以通过SET xxx
查询设置这些参数,但如果可能的话,我想将其设置为配置application.conf
。
有谁知道如何在Play Framework中配置temp_file_limit
Postgres 参数?application.conf
解决方案
推荐阅读
- spring-boot - 在 Spring Boot 应用程序中添加 spring-boot-starter-data-redis 后启动 Tomcat 上下文时出错
- python - 日志记录 - 将级别从 INFO 更改为 DEBUG 会禁用所有日志记录消息
- python - 有选择地将数据从一个 Firestore 集合复制到另一个
- android - 特定片段内的 SearchView 实现
- excel - 使用 VBA 和 IE 从 Internet HTML 页面解析数据
- c++ - 在程序和基于文本的游戏和 C++ 中重新启动程序
- neo4j - Neo4j - 如何根据属性删除重复关系
- html - 如何在页眉和页脚中间放置内容?
- wildcard - Snakemae 中的 glob_wildcards 列表联合
- javascript - Datepicker 在创建时不起作用,它动态使用 javascript