Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZEku-0008Iw-Ch for pgsql-admin@arkaria.postgresql.org; Thu, 14 May 2020 14:22:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZEkt-0008Qm-9g for pgsql-admin@arkaria.postgresql.org; Thu, 14 May 2020 14:22:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZEkt-0008Qf-2H for pgsql-admin@lists.postgresql.org; Thu, 14 May 2020 14:22:35 +0000 Received: from mail-eopbgr140080.outbound.protection.outlook.com ([40.107.14.80] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZEko-0007ic-Nu for pgsql-admin@postgresql.org; Thu, 14 May 2020 14:22:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YswoSNIzyzsQ8iF7VpUXjg5jztuOPjmrO7vT13s32lOMMFpnusb2Ll3lzsYDth+eRwDZ3n207JsXIAP/D88v5uvf/zLeCwo9xb1ysYPTXBO3+G+ptnrsk2QwiepNzmbTxx7drfP1pqNfP5Pd/gBo4vW8XHieQ/rf/dL0NiKL69wHPk5QAK7qJMInEywYTE6eM54FD3RU095VEssslnmXB7UZuDXQtBCU2NDXUxMB2pfqP4V/kEnrV8us4TEePtpol6mhOYt78DpLlto60r0daC25TzZD6Ze/P1vsAcHiroP/48CzCRE3wfUBK0bGLZHQHnUTvCUyZ7OO+LNEk8Muug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rf4P04TnhPDSVcRxqaS2huvg/MbXVGfH8s+HDrR5718=; b=E5V8a0qUYFNaBPAvlUOvhBWSb8+LX91SQ+5d+ycMGD1oKqrR6h1CTO9LzQL8rpyFq3a2Z6nG4SPTkGxjXqF57jt5VG50/at8aMz/Pd7Bsd5+OId1SlNg+cbo3xg/TH8cpD6s9FKZ4LcIDMjezLZdzUZYpFyPL3sbO1etWndjoZrJIuqxUdjMn5aWK7hpb7TuvJgq8bHuHlCMyKEnFNnd2Xq4c9hnPMAWyFqlJec0WQuof3B74YDXWgfbJ/Fytg+W7uMm5XRz5jMtwYpZotlzrY/ydfLoAvXwgphDmPgrf3c9QE2TXtkbdhPAmbYmf05kE82mEcxV6e/t+ZgtPyKSyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucll.be; dmarc=pass action=none header.from=ucll.be; dkim=pass header.d=ucll.be; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucll.be; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rf4P04TnhPDSVcRxqaS2huvg/MbXVGfH8s+HDrR5718=; b=d56YKbWbu7SSjQzwREpklTwgUkT1MrHYkE5E2mfW8F71T+YWlzVFxZS0WBUTLcX9tlzgvNDxFVao1MnIZK1dgzmBKNDxlnyK49CPuCee6D4+lJJpJT5LLsSbGgNdEJp8GXa7t2DccbXkUa/8HLGNgvJn9ChPz+oAxmkax+e65Zc= Authentication-Results: crunchydata.com; dkim=none (message not signed) header.d=none;crunchydata.com; dmarc=none action=none header.from=ucll.be; Received: from AM0P195MB0324.EURP195.PROD.OUTLOOK.COM (2603:10a6:208:b3::30) by AM0P195MB0419.EURP195.PROD.OUTLOOK.COM (2603:10a6:208:b7::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.30; Thu, 14 May 2020 14:22:29 +0000 Received: from AM0P195MB0324.EURP195.PROD.OUTLOOK.COM ([fe80::54b6:3cdc:b493:6760]) by AM0P195MB0324.EURP195.PROD.OUTLOOK.COM ([fe80::54b6:3cdc:b493:6760%7]) with mapi id 15.20.3000.016; Thu, 14 May 2020 14:22:29 +0000 Message-ID: <95bb0c6c21a2a96a526a5ce01f16e62ea4f073f5.camel@ucll.be> Subject: Re: viewing connectioninfo used by subscriber on the publication server when inactive From: Wim Bertels Reply-To: wim.bertels@ucll.be To: Keith Fiske Cc: pgsql-admin Date: Thu, 14 May 2020 16:22:27 +0200 In-Reply-To: References: <25037dc66dadcdd61148f6d59208217441abfd80.camel@ucll.be> <5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be> <562890eff48a048d4b09d23f76506fceb867a31f.camel@ucll.be> Organization: UC Leuven-Limburg Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR07CA0002.eurprd07.prod.outlook.com (2603:10a6:208:ac::15) To AM0P195MB0324.EURP195.PROD.OUTLOOK.COM (2603:10a6:208:b3::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ptr-7u36h5k51lesqlynxiz.18120a2.ip6.access.telenet.be (2a02:1811:526:1700:60e:3cff:feb0:7f7b) by AM0PR07CA0002.eurprd07.prod.outlook.com (2603:10a6:208:ac::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.12 via Frontend Transport; Thu, 14 May 2020 14:22:28 +0000 X-Originating-IP: [2a02:1811:526:1700:60e:3cff:feb0:7f7b] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9e5a28c3-1a43-48bd-80d7-08d7f8123b5f X-MS-TrafficTypeDiagnostic: AM0P195MB0419: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 040359335D X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZpZMkd5niLea5lgzOqJKTMc2k07N6baOzNNfjwSH8ojxKIUYAISNltE4k25k0eicbug8IOrhGHYjV0w350JnxdCbOjb4TOle5hPiR4a/AjyfkXaVA+lWOCsWgc8IIRizJB2tbeoZjYrT1Nh0pJ/FXJDE0wVInS7XtBh+CUH+q7nraeLYbKahyMC11QZg5zBsEOEpt82pWgKYo+l3OlBecVJAnTnkk09kWwzxwG8wMQKUyXFovycmfIXxHdYpZH/kqZI4bLx0SthIEUhhCQGIjer7YBjjtWkJsiI3MukdSf776BxSbbDdmFWp+t0en5muBRLHYeeBNGUQGnyKSF73Yjsr7KWs0vUae86djaJLjW3j16Qw++P96SB3b2nt6HWM+mixiGsP9FN/pBr86alZ23FwKcltBC8k8OkZ7dhq9hMu6GMgs2rhr1jNoii8OQRo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0P195MB0324.EURP195.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(376002)(346002)(366004)(396003)(39850400004)(6506007)(52116002)(66556008)(5660300002)(66476007)(8676002)(2616005)(36756003)(66946007)(8936002)(6486002)(478600001)(2906002)(36916002)(86362001)(44832011)(4326008)(786003)(16526019)(316002)(6512007)(186003)(6916009)(3450700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 2j+D1O85DuTBe3jCTkXNnHiGB2VWbS4r4rsm8G554+5MY1V+K1pnaj/4KdIBfmON/ycuRRNBLRHvalA43QAXMvosxKVoPZxBYPMyDAWfclI9z8WrEO5m2lK72145cgFsY3EC8h8UkzRW1Ge9Zf2O7gxA99MLBDGFOr2zrMv3+GBf5BK9IF5Qd621fHim0f3Jg5G+Nlkq5GiOzAnU2rEX7W5z2OgOue/nyOoo4b3DyQ+yvAonzOPxiv/W5dBJKDbfEor454qnsGS+KTCFvRSWFwOF2sLfDcuQLEPRJUzXGPJ4HGckt2Ry4WleCC6mAAeBGpoZGdzJNJYcPOzgO8+ahiljC5npeE/QrEKLuQFAAhLaifxOgHG+ZA+6V7bchOvnMQk0thv0cGoz61KDUDdTcgjByV9f7ceyG3LDyaTCPPFpqzUCcmWV5uJ0jUFejOhvudX6ef8FxEzbIeifx1sOLugDbEBYJ2edpwK3qOxkAdMFwxIxH4m/UOqMHKqZl6K/BddYModMxgFzlzv75eHMb30hWoiv6uLvoZ0sQEP0Nlk= X-OriginatorOrg: ucll.be X-MS-Exchange-CrossTenant-Network-Message-Id: 9e5a28c3-1a43-48bd-80d7-08d7f8123b5f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2020 14:22:28.9156 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e638861b-15d9-4de6-a65d-b48789ae1f08 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TjIO7FwHB0O1pt2EZg6/4l+lrAcF5rurJAcXYP9IgSHr/k2bXWcivHqiLPY+nySsetALEbOJE0uMyLPstnIG4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P195MB0419 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Keith Fiske schreef op do 14-05-2020 om 10:08 [-0400]: > It doesn't matter how small the dataset change is. The same WAL > stream is used for both logical and physical replication so it has to > keep all WAL files until all subscribers for that publication have > confirmed they have received them. If even a single subscriber goes > offline, all WAL will be kept until that subscriber reconnects. That is interesting, i assume this the WAL for the whole cluster, as logical decoding is then used on this WAL for the logical replication, do you have an estimate of order of magnitude for the all WAL files? So far this seems ok over here (with one subscriber inactive for 2 days): # du -ch pg_logical/ pg_wal/ pg_replslot/ 912K pg_logical/snapshots 4,0K pg_logical/mappings 924K pg_logical/ 4,0K pg_wal/archive_status 81M pg_wal/ 8,0K pg_replslot/db2_sub 8,0K pg_replslot/db2_sub1 8,0K pg_replslot/db2_sub2 28K pg_replslot/ 81M totaal this after two days of replication setup. assuming that students will be offline for at most 2 or 3 days, this seems ok? -- mvg, Wim -- Tell the truth or trump--but get the trick. -- Mark Twain, "Pudd'nhead Wilson's Calendar"