Re: Patch (2): Implement failover on libpq connect level.
Thom Brown <thom@linux.com>
From: Thom Brown <thom@linux.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2015-10-22T13:33:11Z
Lists: pgsql-hackers
On 21 October 2015 at 10:07, Victor Wagner <vitus@wagner.pp.ru> wrote: > On 2015.10.14 at 13:41:51 +0300, Victor Wagner wrote: > >> >> Attached patch which implements client library failover and >> loadbalancing as was described in the proposal >> <20150818041850.GA5092@wagner.pp.ru>. >> > > I'm sending imporoved verison of patch. As Olexander Shulgin noted, > previous version of patch lacks support for service files. > > Now support for service files is implemented and multiple host > statements in the service file are allowed. This is causing breakage: $ pg_basebackup -v -x -D standby1 -h localhost -p 5532 -U rep_user row number 0 is out of range 0..-1 Segmentation fault The log contains this: 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: received replication command: SELECT pg_is_in_recovery() 2015-10-22 13:51:41.380 BST - rep_user - [unknown]ERROR: syntax error 2015-10-22 13:51:41.380 BST - rep_user - [unknown]LOG: could not receive data from client: Connection reset by peer 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: unexpected EOF on client connection 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: shmem_exit(0): 1 before_shmem_exit callbacks to make 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: shmem_exit(0): 7 on_shmem_exit callbacks to make 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: proc_exit(0): 3 callbacks to make 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: exit(0) 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: shmem_exit(-1): 0 before_shmem_exit callbacks to make 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: shmem_exit(-1): 0 on_shmem_exit callbacks to make 2015-10-22 13:51:41.380 BST - rep_user - [unknown]DEBUG: proc_exit(-1): 0 callbacks to make 2015-10-22 13:51:41.380 BST - - DEBUG: reaping dead processes 2015-10-22 13:51:41.380 BST - - DEBUG: server process (PID 24303) exited with exit code 0 -- Thom
Commits
-
libpq: Add target_session_attrs parameter.
- 721f7bd3cbcc 10.0 landed
-
Remove superuser checks in pgstattuple
- fd321a1dfd64 10.0 cited
-
Fix unwanted flushing of libpq's input buffer when socket EOF is seen.
- c405918858c0 9.6.0 cited