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 1hni3e-0002nq-GL for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 11:25:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hni3d-0003Z9-5W for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 11:25:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hni3c-0003Z2-PZ for pgsql-hackers@lists.postgresql.org; Wed, 17 Jul 2019 11:25:12 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hni3X-0000DX-QN for pgsql-hackers@postgresql.org; Wed, 17 Jul 2019 11:25:12 +0000 Received: by mail-pl1-x644.google.com with SMTP id c14so11790716plo.0 for ; Wed, 17 Jul 2019 04:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=lUb1CksXqfmkFnzv+rMuPtFuXbKLt8fGUgpzLzKNxf0=; b=lOxVwsT0bbDAv8AJlM0KJnF5oFagQ6k727218xHKKwibmn8auhN0tCMdjYN0YTAPVK rxoET44xzKyOzMCWfpqjfnbzDeBtpLEh90BF730n63Fp+zPzX4pyAnW7180Av7zveq9g P89xyhDHPQy5N81Vj6/6epSW5dJGAcOilJ4L82goTc4Cmm3JplhSpLEw4OiHsdne1bwh mKSsQBXUfTVGu4OeaVVAHw69NH0gocUkbkNBdFdcm+9V02lMz14/RYs2dQkpZmuCd19U iSOhS3S7Z+hueoWhTXKcRTKb45vg0hRLXy9mS4IaEsxZLXuhBj7C0800wWWl4+oxq6Np 31rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=lUb1CksXqfmkFnzv+rMuPtFuXbKLt8fGUgpzLzKNxf0=; b=VjzVtJp81RDtHPV9s4T1FYYUrbMYWqRTFCbZEV6B/NyDVOZPj6o33UbPLss1CCbLR4 ZeF4tkw/5+3MhhlsvReN8NpjLIw+WGix3/6ulalKhO2OQc64YG6b0V+AV6z5gXiFOTer wA/Rk+rblOTh9pVoH7RtU6KkCk/V2a58U+L4MYhNWfvXsOLXS5KU2akxDWo7MGc1eBdK IlCOxtZg4z9Qb1SslzgskzVa14Fkm36SuhRSAOa8Xy6PJZegh2of1ShAX+zlr6GIUv6A ibzTiyfjzmTplYr6luWhfhJCTLglrMbkZcmQWlqB5MloDzcdBPlh3uqP/9sQ06w3LmXX CRbg== X-Gm-Message-State: APjAAAUk8D7l5idi/s8mKw+M3AMmH9Ktwwa8um+BUy0sscPYbFCr5a95 8YnBFUT2GvWs7mr0jOMQ2SwIDi218D/Ys6Hh1qrRbEEYxt+XuE2tX4DqpYurjalqzyUugKquPcu bpWV2qfEHCCOVEkUuPWNTAjKPLt2OiJYQFUMAr7Dujj2GwzeW+sIeeUwgvYmpo3LIwyj/VlWTKQ dyUveLqNABjA== X-Google-Smtp-Source: APXvYqxzfZdls4UzQcAwtNz/BXXNGFG+wjdknkqkCE0UN1G3P5W/Y9j6h+nlKbGA/gNepFsbOHqc4w== X-Received: by 2002:a17:902:106:: with SMTP id 6mr43370063plb.64.1563362704096; Wed, 17 Jul 2019 04:25:04 -0700 (PDT) Received: from localhost.localdomain ([114.143.109.178]) by smtp.gmail.com with ESMTPSA id 2sm42827622pgm.39.2019.07.17.04.25.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 04:25:03 -0700 (PDT) Subject: Re: Minimal logical decoding on standbys To: Andres Freund Cc: Amit Khandekar , Robert Haas , Petr Jelinek , Craig Ringer , Petr Jelinek , pgsql-hackers References: <20190619190138.rufzsld5xgcgshmh@alap3.anarazel.de> <20190710031424.dfhzlqj2tpvznibe@alap3.anarazel.de> <5a80cbcb-185c-fb81-02f2-7f26a8ea8efc@enterprisedb.com> <20190716172644.nbvjhqoxgpryzlv7@alap3.anarazel.de> From: tushar Message-ID: Date: Wed, 17 Jul 2019 16:54:55 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190716172644.nbvjhqoxgpryzlv7@alap3.anarazel.de> Content-Type: multipart/alternative; boundary="------------E04DF6FA01BD6814D8BF51EF" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------E04DF6FA01BD6814D8BF51EF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 07/16/2019 10:56 PM, Andres Freund wrote: > Even after calling pg_logical_slot_get_changes() multiple times? What > does > SELECT * FROM pg_replication_slots; before and after multiple calls return? > > Does manually forcing a checkpoint with CHECKPOINT; first on the primary > and then the standby "fix" the issue? > Yes,eventually it gets clean up -after firing multiple times get_changes function or checkpoint or even both. This same behavior we are able to see  on MASTER  -with or without patch. but is this an old (existing) issue ? >> b)pg_wal files are not recycling  and every time it is creating new files >> after firing get_changes function > I'm not sure what you mean by this. Are you saying that > pg_logical_slot_get_changes() causes WAL to be written? No, when i said - created new WAL files , i meant -after each pg_bench run NOT after executing  get_changes. -- regards,tushar EnterpriseDB https://www.enterprisedb.com/ The Enterprise PostgreSQL Company --------------E04DF6FA01BD6814D8BF51EF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 07/16/2019 10:56 PM, Andres Freund wrote:
Even after calling pg_logical_slot_get_changes() multiple times? What
does
SELECT * FROM pg_replication_slots; before and after multiple calls return?

Does manually forcing a checkpoint with CHECKPOINT; first on the primary
and then the standby "fix" the issue?

Yes,eventually it gets clean up -after firing multiple times get_changes function or checkpoint or even both.
This same behavior we are able to see  on MASTER  -with or without patch.

but is this an old (existing) issue ?

      
b)pg_wal files are not recycling  and every time it is creating new files
after firing get_changes function
I'm not sure what you mean by this. Are you saying that
pg_logical_slot_get_changes() causes WAL to be written?

No, when i said - created new WAL files , i meant -after each pg_bench run NOT after executing  get_changes.

-- 
regards,tushar
EnterpriseDB  https://www.enterprisedb.com/
The Enterprise PostgreSQL Company
--------------E04DF6FA01BD6814D8BF51EF--