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 1gmD6v-0004rr-3t for pgsql-general@arkaria.postgresql.org; Wed, 23 Jan 2019 07:38:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmD6t-0007gw-Pk for pgsql-general@arkaria.postgresql.org; Wed, 23 Jan 2019 07:38:07 +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 1gmD6t-0007go-EO for pgsql-general@lists.postgresql.org; Wed, 23 Jan 2019 07:38:07 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmD6l-0005xS-Be for pgsql-general@lists.postgresql.org; Wed, 23 Jan 2019 07:38:06 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id x0N7bp0A023952 for ; Wed, 23 Jan 2019 09:37:56 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x0N7boli081064 for ; Wed, 23 Jan 2019 09:37:50 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: PostgreSQL logical replication depends on WAL segments? To: pgsql-general@lists.postgresql.org References: <507c69ad-e87b-2180-c2ec-08e1aee20352@aklaver.com> <20190122185244.7eakjblhzgvpcuyh@alap3.anarazel.de> <323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.com> <8281458c-af43-424e-1b3d-d017aeadcfd4@matrix.gatewaynet.com> From: Achilleas Mantzios Message-ID: <933d9b89-ce67-6982-3c03-240a27e5d35d@matrix.gatewaynet.com> Date: Wed, 23 Jan 2019 09:37:50 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E08F051918E591572DEF353C" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-35.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_IT_PARTNERS,DYN_HAM_NAUTICAL,DYN_SPAM_SUBJ,HTML_MESSAGE autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------E08F051918E591572DEF353C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 23/1/19 5:26 π.μ., Jeremy Finzel wrote: > On Tue, Jan 22, 2019 at 8:19 PM Achilleas Mantzios > wrote: > > > On 22/1/19 10:18 μ.μ., Jeremy Finzel wrote: >> On Tue, Jan 22, 2019 at 2:16 PM Jeremy Finzel > wrote: >> >> any one of those WAL files will not be archived and recycled as long as it no longer needed by a replication slot >> >> >> :(.  s/no longer/still.  I meant to say any one of those WAL files will not be archived and recycled as long as it still needed by a replication slot. > > > A WAL segment will be archived as soon as it is completed. |https://www.postgresql.org/docs/11/continuous-archiving.html| > > > Yep, you’re right. Let me try this again. It will be archived, but the segment won’t be reused or removed as long as the slot needs it. Is that an accurate statement? That's better :) Also it depends on the previous checkpoint. > > Thanks, > Jeremy > > || > > || > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------E08F051918E591572DEF353C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 23/1/19 5:26 π.μ., Jeremy Finzel wrote:
On Tue, Jan 22, 2019 at 8:19 PM Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:


On 22/1/19 10:18 μ.μ., Jeremy Finzel wrote:
On Tue, Jan 22, 2019 at 2:16 PM Jeremy Finzel <finzelj@gmail.com> wrote:

any one of those WAL files will not be archived and recycled as long as it no longer needed by a replication slot


:(.  s/no longer/still.  I meant to say any one of those WAL files will not be archived and recycled as long as it still needed by a replication slot.


A WAL segment will be archived as soon as it is completed. https://www.postgresql.org/docs/11/continuous-archiving.html


Yep, you’re right. Let me try this again. It will be archived, but the segment won’t be reused or removed as long as the slot needs it. Is that an accurate statement?
That's better :) Also it depends on the previous checkpoint.


Thanks,
Jeremy 



-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------E08F051918E591572DEF353C--