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 1jZD3P-0004yl-3d for pgsql-admin@arkaria.postgresql.org; Thu, 14 May 2020 12:33:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZD3N-0000ts-Pb for pgsql-admin@arkaria.postgresql.org; Thu, 14 May 2020 12:33:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZD3N-0000te-0d for pgsql-admin@lists.postgresql.org; Thu, 14 May 2020 12:33:33 +0000 Received: from mail-eopbgr30062.outbound.protection.outlook.com ([40.107.3.62] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZD3J-00087l-HJ for pgsql-admin@postgresql.org; Thu, 14 May 2020 12:33:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X3urP6fqeWuXu9/9vShCOs/VlM5zL/TWbiBKF3wJJVU9IAZn/mIkI36UflW4bf8p9FojFhxEU8TuJLpXfJ8i+s9yLK4MMB9PFPAR7CV6E7kwc2yPYy69ZPrEVCnYMIdETSRvp4YNgVqpni+cy6rzLjSqxT7QwGI5xmhOjUvKS5iQV5Mwt+y7hXxeKux283m4PQoICg0M38JNTZn/qIhWRSqdtj/jZSYnvbeSV49afzPS+6P33RcUWYWNF6g8wtXveKGRDXMmnIJ8NGXxYiO2Mabl6SobdwCHSMdWMSZ7GjGKVj1c2e0WgO7MaIida+xZnTYezG24hnsJak2kR8zbpg== 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=2BnE4Iha13pUev4up7OeM4bxqWVla11HuRGvhUAFacA=; b=ZkjC9IAbX+KI7itz666rouv+Mz6bHuVtvSGHhxXnynHxoyCQo4YLe268aWfZHHsRPMWYXA5GGzHXE0BCaXaADV2lmnLSRXWOh9gl/HlGy0GrezptIMjItiEv1WBH/okNADSaVQZkTNI6gPiU+nmsX90g6y1BvU45bm0VfcpCd5ObgFFYyyU6ov8sq2E79thH9GBoE1vtbZqse+kJBsoIOUJ94eWDSbwhckg+3tAsoXQK2zDQZxIwkkh27IXuZUsTsGYY+6IYd0N83LMowYIs7F4AL8yDjpC3MDYSF2+Gm7fjAYma+XlLoWmXrEYMdXRjs8GiPfRcyEbKml1D/vmbfQ== 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=2BnE4Iha13pUev4up7OeM4bxqWVla11HuRGvhUAFacA=; b=D5IxeJHCxn3JzA8OnAHV7FwLrR2aNsIcJ70Cb5UYUpN4cj06PGIOIVzSrD+mBwb4YIrIBPDkUu6mI4HYEGuhuVZLl1SgRavI4E8OV3j4DHrsnF78U7s3YlhipqHtCKICgVSmuM80dA97OfzQ2EIoQnhcxA9DRYXDKYYK9Bk2Jjw= 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 AM0P195MB0497.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:168::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24; Thu, 14 May 2020 12:33:25 +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 12:33:25 +0000 Message-ID: <5f77a6c973aaf8f9086cf42933f476e5bd9a948d.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 14:33:24 +0200 In-Reply-To: References: <25037dc66dadcdd61148f6d59208217441abfd80.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: AM0PR01CA0106.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::47) 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 AM0PR01CA0106.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24 via Frontend Transport; Thu, 14 May 2020 12:33:25 +0000 X-Originating-IP: [2a02:1811:526:1700:60e:3cff:feb0:7f7b] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9eee3a89-904f-46ce-722e-08d7f802ff5f X-MS-TrafficTypeDiagnostic: AM0P195MB0497: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 040359335D X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HCbOX/4wkqGRSMJGPOEkTzpFscju1/CSlr4S6zT5WTIpEaIxfiw3oI9A9T+U6TClTd+B80hG7z1TX/dUcf5MchM1YQ0Eaxeaf9V0PlTInI0c/KO+br9ITloYWIQjJcrVqw7ptLDFyiuGw82itoOLja8EfE6Wtdn0qpa7LDHVk+KL+JdBmaZGGzIjSu+sLgeScoDtIiMHxOKP3juFo1MMGSwCJ0xmqFBrGzId22HSY+6SH54F8QpMY3iUFZ4eVbZRZBtZOzKl8b+ap5QFm/aFE/NH8gN7n9FfoRGq1XhaKZPpF+WKQ/uGRAn/R9YYC9jzeZ/fzZc3GUrmIbd36k3iij96NUCvAKN804HSJeE+y4jA4Hm0ZvE1xMiuvGFU5uf7utzRSWiyS+va+Rbew56F4yRBynDZKgABGCRhrJ3G/Ib26YOp9nwlBK2UAmeQ+U5e 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)(396003)(39850400004)(376002)(346002)(366004)(136003)(6506007)(66946007)(36916002)(52116002)(86362001)(44832011)(5660300002)(8936002)(16526019)(186003)(6486002)(2906002)(66556008)(478600001)(66476007)(316002)(4326008)(6916009)(3450700001)(8676002)(36756003)(2616005)(786003)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 4pLdKyxIyfncKLGWp72jtfz8HgBXVOGf3Hc6q0XiSO5m4GxWvu5/7sYVS7iZPwH+qy7nGE/sbDTTnpijftit8HyTySvV+jtUA2y4hbgiGbP/psFyFEJcyMd/jkyGx/H33ROpYoCEsFZpML9gvggVRF5GRsS8z1xjtyXHTyjrjW/klzcX42QS5TfNuK2OreAE8B5gmaugq7LKc0Ue5GKYlMV0GglG4HJ9Uj+1Han3TyVqDoIl4M+8cwj2PtdDwV+dJjUq/SXlBj8+iH/r1flYz39ABHAm2KFT3gCsxn6ib1LdCQgHXB1jbjXEM5kx3KNIISNn3rL7PkrnK8jAjLqTTjdptyshyse3kjDX6qTG67NSkHx88BlAPrpWnGH3PWZ4FlkQrsYSsnsZlKKBNdbsQ45PJOCYQKMIZBhnkxIaUykfa3G+OvZIQ6rqBKeqeD0rsouysJZGsuISfSO7PhCeXJhXKEbrUZym8KhQewl+hpMzcHvmioPpnY7fRQdbzEiLVtWYyiZcHaNLymxhW6i0QELTmfzOHypu3Dp1kZSKByc= X-OriginatorOrg: ucll.be X-MS-Exchange-CrossTenant-Network-Message-Id: 9eee3a89-904f-46ce-722e-08d7f802ff5f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2020 12:33:25.6701 (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: M3n6oKoHoDd7SXKFdUrRjsIFnSgNaPHeRCfz1qQD/nmKl6kUmtxBlAuOj3v7aNccSMbPHVMakpOSlfsSTe/FNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P195MB0497 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > > > The replication slot connection could use any role that has been > configured to allow replication. So there is no way to know which > role is actually using a slot without it actually being connected. > You can look and see which roles have replication privileges by > checking the output of \du in psql, but there is nothing tying any > roles to any specific slots. i assume that a replication slot can only be used by 1 subscriber, and subscribers can migrate; just to be clear the conneinfo is only kept on the subscriber and used on the publisher, but not stored on the publisher (unless active) so if a replication slot is inactive, you can't contact for example the user that (implicitely) created the replication slot, to see if it is still needed for example. background: i'm trying out an atypical? setup with many students subscribing to a single publication server, thus with subscribers that are not always online. As the number of slots might quickly grow:) > -- mvg, Wim Bertels -- Swerve me? The path to my fixed purpose is laid with iron rails, whereon my soul is grooved to run. Over unsounded gorges, through the rifled hearts of mountains, under torrents' beds, unerringly I rush! -- Captain Ahab, "Moby Dick"