2021-11-29 11:03:23 +00:00
|
|
|
pid_file "/tmp/odyssey.pid"
|
|
|
|
daemonize yes
|
|
|
|
|
|
|
|
unix_socket_dir "/tmp"
|
|
|
|
unix_socket_mode "0644"
|
|
|
|
|
|
|
|
log_format "%p %t %l [%i %s] (%c) %m\n"
|
|
|
|
|
|
|
|
log_to_stdout no
|
|
|
|
|
|
|
|
log_syslog no
|
|
|
|
log_syslog_ident "odyssey"
|
|
|
|
log_syslog_facility "daemon"
|
|
|
|
|
|
|
|
log_debug yes
|
|
|
|
log_config yes
|
|
|
|
log_session yes
|
|
|
|
log_query yes
|
|
|
|
log_stats yes
|
|
|
|
stats_interval 60
|
|
|
|
log_stats_prom yes
|
|
|
|
|
|
|
|
workers "auto"
|
|
|
|
resolvers 1
|
|
|
|
|
|
|
|
readahead 8192
|
|
|
|
|
|
|
|
cache_coroutine 0
|
|
|
|
|
2021-12-05 20:50:59 +00:00
|
|
|
coroutine_stack_size 32
|
2021-11-29 11:03:23 +00:00
|
|
|
|
|
|
|
nodelay yes
|
|
|
|
|
|
|
|
keepalive 15
|
|
|
|
keepalive_keep_interval 75
|
|
|
|
keepalive_probes 9
|
|
|
|
|
|
|
|
keepalive_usr_timeout 0
|
|
|
|
|
|
|
|
|
|
|
|
listen {
|
|
|
|
host "*"
|
|
|
|
port 6432
|
|
|
|
backlog 128
|
|
|
|
compression yes
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
storage "postgres_server" {
|
|
|
|
type "remote"
|
|
|
|
host "localhost"
|
|
|
|
port 5432
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
database default {
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
pool "session"
|
|
|
|
pool_size 0
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 1201
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
2021-12-05 20:50:59 +00:00
|
|
|
# seconds
|
2021-11-29 11:03:23 +00:00
|
|
|
pool_client_idle_timeout 20
|
2021-12-05 20:50:59 +00:00
|
|
|
# seconds
|
|
|
|
pool_idle_in_transaction_timeout 20
|
2021-11-29 11:03:23 +00:00
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
server_lifetime 1901
|
|
|
|
log_debug no
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
2021-12-05 20:50:59 +00:00
|
|
|
client_max 107
|
2021-11-29 11:03:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
database "postgres" {
|
2021-12-05 20:50:59 +00:00
|
|
|
user "reshke" {
|
|
|
|
authentication "none"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
|
|
|
|
pool "session"
|
|
|
|
|
|
|
|
log_debug yes
|
|
|
|
pool_discard yes
|
|
|
|
# pool_routing "internal"
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
2021-12-04 21:15:11 +00:00
|
|
|
user "user_aq" {
|
2021-12-05 20:50:59 +00:00
|
|
|
authentication "clear_text"
|
2021-12-04 21:15:11 +00:00
|
|
|
# password "passwd"
|
|
|
|
auth_query "SELECT usename, passwd FROM pg_shadow WHERE usename=$1"
|
|
|
|
auth_query_user "reshke"
|
|
|
|
auth_query_db "postgres"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
# storage_password "1"
|
|
|
|
pool "session"
|
|
|
|
pool_size 1
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
2021-11-29 11:03:23 +00:00
|
|
|
user "user1" {
|
|
|
|
authentication "clear_text"
|
|
|
|
password "passwd"
|
|
|
|
storage "postgres_server"
|
|
|
|
# storage_password "1"
|
|
|
|
pool "session"
|
|
|
|
pool_size 1
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
user "user2" {
|
|
|
|
authentication "clear_text"
|
|
|
|
password "passwd2"
|
|
|
|
storage "postgres_server"
|
|
|
|
storage_password "1"
|
|
|
|
pool "session"
|
|
|
|
pool_size 1
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
reserve_session_server_connection no
|
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
|
|
|
|
user "userstmt" {
|
|
|
|
authentication "none"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
storage_password "1"
|
|
|
|
pool "statement"
|
|
|
|
pool_size 1
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
reserve_session_server_connection no
|
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
|
|
|
storage "postgres_server"
|
|
|
|
pool "session"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
storage "local" {
|
|
|
|
type "local"
|
|
|
|
}
|
|
|
|
|
|
|
|
database "console" {
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
|
|
|
pool "session"
|
|
|
|
storage "local"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
locks_dir "/tmp/odyssey"
|
|
|
|
|
|
|
|
graceful_die_on_errors yes
|
|
|
|
enable_online_restart no
|
|
|
|
bindwith_reuseport yes
|