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 1j5Yf5-0005nO-IG for pgsql-general@arkaria.postgresql.org; Sat, 22 Feb 2020 17:33:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j5Yf4-0003lx-6P for pgsql-general@arkaria.postgresql.org; Sat, 22 Feb 2020 17:33:54 +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 1j5Yf3-0003lq-Ow for pgsql-general@lists.postgresql.org; Sat, 22 Feb 2020 17:33:53 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j5Yf0-0004zs-0F for pgsql-general@postgresql.org; Sat, 22 Feb 2020 17:33:52 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2ADB9212BF; Sat, 22 Feb 2020 12:33:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 22 Feb 2020 12:33:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=A /nKrh3H46Ax4leHfp0R3xB5N1yskXcAviFH+YKLPhk=; b=RrFDldmuXFcJr0Xwa SHlHb6wyvrQ4ZpDVBT+sHW66LgRkEQY5sZG09lRdrVyeXWWUHvF716HKSPxAs20Q KfmPnWIVQORc22mRR3icSYSco817gx+WhmnAueMIdNy5z7oLSv/QfQAf+5APZ9F5 sKiZUSyHYPlfidWTjmIfPc40CwAD8ipC05Q/eGTkV39i+vTIuz/FRh0DHUeZUoCu Jm6/N854+nzqs2lVc/sLy3yo6SipboUIWF73G7/vza3B8eJMJOqlvqn0xMzyL/U5 BrpFHvK9t74c3CEjXVKER504B1PhQzhkjfKRN6ETiZxnWjl1dW5pvw6OqzYWOWMq 4/BzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=A/nKrh3H46Ax4leHfp0R3xB5N1yskXcAviFH+YKLP hk=; b=Z01cHLeROY5pkpzLTeGa6Ksr70KiCvPwXvoJmUKL+4xCzM4fOShw2W8x0 AFEaiBROrjKipU9oQxhEPjx7mnUeD9Ulxx3tmJHe3INo1v9cWTzTryYA7pJ4Os9s 1jwEYEfoNWTcRih0JzSl0OMCRd7+GxCcvSkH0wrVvfB1gZh1PdoyDFO2so4Ntezf 5WmY52ayjXQyiGAlEANrMFBIGrvcjGNPXqwKSpo4K81d8tTuyjKyYso18R8SvhJz BVV5hxuMme9YIU6d5kyY6aYHdffZDQLO5gMzADWgRWqXLOgOgkHBVusehmg2I1w4 bm2QOcOJw4d+Mc5gIioeB5DL+3c6w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrkeeigddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklh grvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 745453060BE4; Sat, 22 Feb 2020 12:33:38 -0500 (EST) Subject: Re: Replication: slave server has 3x size of production server? To: Edson Richter , pgsql-general References: From: Adrian Klaver Message-ID: <98f036e0-9bf2-8798-8742-9dba0601fb9a@aklaver.com> Date: Sat, 22 Feb 2020 09:33:37 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/22/20 9:25 AM, Edson Richter wrote: > Hi! > > I've a database cluster created at 9.6.10 linux x64 server rhel. I made > progressive upgrades, first upgrading slave and then upgrading master. > Actually both are running 9.6.17. > Current production server has 196Gb in size. > Nevertheless, the replicated (slave) server has 598 Gb in size. > Replication server has 3x size of production server, is that normal? How are you measuring the sizes? Where is the space being taken up on disk? > > Shall I drop the slave server and re-create it? How to avoid this > situation in future? > > Thanks, > > Edson > > -- Adrian Klaver adrian.klaver@aklaver.com