PostgreSQL module for NGINX
10 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。
postgres_connect_timeout
`postgres_connect_timeout` 指令设置在与 PostgreSQL 数据库建立连接时,超时前的最长等待时间。
httpserverlocation
postgres_escape
NGINX 中的 `postgres_escape` 指令用于控制与 PostgreSQL 交互时查询字符串的转义行为。
httpserverlocation
postgres_keepalive
`postgres_keepalive` 指令在 NGINX 中配置 PostgreSQL 连接的 keepalive 设置。
upstream
postgres_output
`postgres_output` 指令指定从 PostgreSQL 查询返回的数据的输出格式。
httpserverlocation
postgres_pass
`postgres_pass` 指令用于在 NGINX 的 PostgreSQL 模块中设置用于处理数据库连接的上游服务器名称。
locationif in location
postgres_query
`postgres_query` 指令定义了要针对 PostgreSQL 数据库执行的 SQL 查询,可能根据指定的 HTTP 方法有条件地执行。
httpserverlocation
postgres_result_timeout
`postgres_result_timeout` 指令定义在 PostgreSQL 查询超时前等待结果的最长时间。
httpserverlocation
postgres_rewrite
`postgres_rewrite` 指令根据 PostgreSQL 查询的结果更改响应状态码。
httpserverlocation
postgres_server
'postgres_server' 指令定义了 NGINX 用于连接的 PostgreSQL 数据库服务器的详细信息。
upstream
postgres_set
指令 `postgres_set` 允许您在 NGINX 配置中设置 PostgreSQL 变量。
httpserverlocation