Skip to Content
PostgreSQL 10 Administration Cookbook - Fourth Edition
book

PostgreSQL 10 Administration Cookbook - Fourth Edition

by Simon Riggs, Gianni Ciolli
May 2018
Intermediate to advanced content levelIntermediate to advanced
576 pages
30h 25m
English
Packt Publishing
Content preview from PostgreSQL 10 Administration Cookbook - Fourth Edition

How to do it…

Carry out the following steps to configure PgBouncer:

  1. Create a pgbouncer.ini file, as follows:
; ; pgbouncer configuration example ; [databases] postgres = port=5432 dbname=postgres [pgbouncer] listen_addr = 127.0.0.1 listen_port = 6432 admin_users = postgres ;stats_users = monitoring userid auth_type = any ; put these files somewhere sensible: auth_file = users.txt logfile = pgbouncer.log pidfile = pgbouncer.pid server_reset_query = DISCARD ALL; ; default values pool_mode = session default_pool_size = 20 log_pooler_errors = 0
  1. Create a users.txt file. This must contain the minimum users mentioned in admin_users and stats_users. Its format is very simple: a collection of lines with a username and a password. Consider the following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PostgreSQL 13 Cookbook

PostgreSQL 13 Cookbook

Vallarapu Naga Avinash Kumar
PostgreSQL 9 Administration Cookbook - Second Edition

PostgreSQL 9 Administration Cookbook - Second Edition

Simon Riggs, GIANNI CIOLLI, Hannu Krosing, Gabriele Bartolini

Publisher Resources

ISBN: 9781788474924Supplemental Content