Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hClRt-0008Bv-Kb for pgsql-general@arkaria.postgresql.org; Sat, 06 Apr 2019 13:33:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hClRs-0002xP-FM for pgsql-general@arkaria.postgresql.org; Sat, 06 Apr 2019 13:33:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hClRr-0002qR-Sl for pgsql-general@lists.postgresql.org; Sat, 06 Apr 2019 13:33:32 +0000 Received: from smtp33.i.mail.ru ([94.100.177.93]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hClRn-0001WC-Sa for pgsql-general@postgresql.org; Sat, 06 Apr 2019 13:33:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=AwmOGORhUu7t58AYBYV9JKm5kdhn4Mn/f4pgrRLOEDM=; b=JB8FcNl62W7sVxW3Q1K9cxWXpx+0Ah8ix+CG83XMHDERHhaI/vvpLCuKiTmGZNKWPYofFpfqdlkZ7U6KO8UV2aDYNF3VJ7pokFIgTE7XO7jUbY3fnCmyteWYqM7bSm+DnB+ONKUWKBe/naXpDtvFEJakma4O2b59x6LVRhlgebY=; Received: by smtp33.i.mail.ru with esmtpa (envelope-from ) id 1hClRj-0002rf-Jt for pgsql-general@postgresql.org; Sat, 06 Apr 2019 16:33:23 +0300 To: pgsql-general General From: rihad Subject: SIGTERM/SIGINT master/slave behavior Message-ID: Date: Sat, 6 Apr 2019 17:33:21 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp33.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 0014004E1F3277295A78504BD2AC29418FE6238DCB65762E042CB9293FF13A0AED5599FB9478CE775889576B3FEC05FE X-7FA49CB5: 0D63561A33F958A5ECBB5C38F89D6D4B74C3F7E43F2AF18E6FF991E886F66D538941B15DA834481FA18204E546F3947C21E93C0F2A571C7BF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF80095D1E57F4578A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249FFFF559FE2CE5EE43AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE70AFDC14B994C9AC3CD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE711EC32212284BDCFAACE37854024E55075ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: B19AB4DAF1EA2FB5A87648C1FF84048455071C31E88B4F7B46B7564AC14F7029FB69FB06705AFC99ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi. When master server receives smart shutdown request (TERM) does it exit after making sure it sends all received writes to the slave server(s), or it exits leaving the slave in an inconsistent state? What about during fast shutdown (SIGINT)? I know that it asks current requests to terminate immediately in that case, but what about the replication connection? Is it safe to send SIGINT when intending to do a manual failover? https://www.postgresql.org/docs/10/server-shutdown.html Thanks.