Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJiEX-0008MZ-LD for pgsql-admin@arkaria.postgresql.org; Mon, 05 Nov 2018 17:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJiEU-0000kg-S8 for pgsql-admin@arkaria.postgresql.org; Mon, 05 Nov 2018 17:00:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJiEU-0000kZ-Jy for pgsql-admin@lists.postgresql.org; Mon, 05 Nov 2018 17:00:10 +0000 Received: from mtaout004-public.msg.strl.va.charter.net ([68.114.190.29]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJiEN-0004GQ-PY for pgsql-admin@postgresql.org; Mon, 05 Nov 2018 17:00:10 +0000 Received: from impout004 ([68.114.189.19]) by mtaout004.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20181105170000.XNYO3685.mtaout004.msg.strl.va.charter.net@impout004>; Mon, 5 Nov 2018 11:00:00 -0600 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout004 with charter.net id wH001y00B3EE3TL01H00ml; Mon, 05 Nov 2018 11:00:00 -0600 X-Authority-Analysis: v=2.2 cv=dc7w5Tfe c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=IkcTkHD0fZMA:10 a=JHtHm7312UAA:10 a=pGLkceISAAAA:8 a=DWBy3KPGeANM5zQh9aIA:9 a=QEXdDO2ut3YA:10 Received: from [10.25.227.242] (144.121.139.193.lightower.net [144.121.139.193]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id 5dcb1a66 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 5 Nov 2018 12:00:00 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: From: Rui DeSousa In-Reply-To: Date: Mon, 5 Nov 2018 11:59:58 -0500 Cc: Shreeyansh Dba , pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: <654000BF-8F3C-4CB2-AB9D-93E9E3C85B23@crazybean.net> To: Pierre Ochsenbein X-Mailer: Apple Mail (2.3445.100.39) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 5, 2018, at 11:25 AM, Pierre Ochsenbein = wrote: >=20 > but on your stdby you have configure a script to become the primary = automatically? Yes, as soon at the CARP address (i.e. the VIP) is migrated to the = standby the database is promoted automatically. All the existing TCP = connections are reset/dropped and the clients reconnect to the new = server within seconds.=20 You have to researched the best solution for your given OS platform. = There are solutions that are platform agnostic too. I don=E2=80=99t = have a canned one to recommend though.