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 1kLkEE-000768-EM for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 25 Sep 2020 09:41:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kLkED-00030e-5Q for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 25 Sep 2020 09:41:21 +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 1kLkEC-00030X-VG for pgsql-pkg-debian@lists.postgresql.org; Fri, 25 Sep 2020 09:41:21 +0000 Received: from mail.credativ.com ([93.94.130.90]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLkEB-0006N8-5p for pgsql-pkg-debian@postgresql.org; Fri, 25 Sep 2020 09:41:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.credativ.com (Postfix) with ESMTP id 2780E20152; Fri, 25 Sep 2020 09:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=credativ.de; s=email; t=1601026878; bh=k1r6OoI6F/kAIVY4KUUL7F+heqG1d8arIKm1jaPCYTI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=k6KBG0lRSr0ZygLyDeFKADz54fPrecMZXvQw/8mWpwefrT/1Mg9gWrVMG70p7l1v0 iFXg4MUzM+Nt+AL9kKeyjPHV5be61UyLYF0BWAf2Wfy91xphxuVJQOkcYK+WexP1lc 3awJGvmqIYYxtKsZjCPXVKWY+1Onzw3x4iIMvfkqdXZxXmkJ9pgU9psM3VWlNC7EvO ERxvbkKwF2/VeEzB29YMpgRB5nyHXQow//utcxwx28pnyc5Z4E5qAy0WXv4QG1sZqF lVC6lcQLI6p8avqMPbG3OzXQqJVoCy1dzWv4yn45TGT/fQ+tbdHEwKFg29wCFB2iOj qrPSwS6p08tZg== Received: from mail.credativ.com ([127.0.0.1]) by localhost (mail.credativ.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kRmKQfyhYgWJ; Fri, 25 Sep 2020 09:41:12 +0000 (UTC) Received: from kohn (unknown [IPv6:2003:5b:203b:200::10:33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mba) by mail.credativ.com (Postfix) with ESMTPSA id D84B120133; Fri, 25 Sep 2020 09:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=credativ.de; s=email; t=1601026872; bh=k1r6OoI6F/kAIVY4KUUL7F+heqG1d8arIKm1jaPCYTI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=r7NixYd33s2dW3ddjTXrX92AKoPpFattT10XlIO/TMA4BpDTft5gbyWt/tTWPU6CX 3CnKQ72l6kKAEUOrZB5Po8WxKcDpkQjVLImJzljZLJ+WRh3I5RbGukCcYIo/2Q1Fg+ m16sbChUDFUpHdDiJoNqV5lIo5p+v3TlemDgHMsV72gmQjtXKfi4AE7OqHP/HLXFHu /OPEqW5HuyOZHQwYM5fouRQc5VhpHDrW9xan6DMdVLo06d8PbFfCLW1Ta8FbaH5z8x De6yPQZp5Nn7nkNz1IR/uhY71yfmsi6ssm0AlHP74UJvyQDjQNw2PfOLILLHZpzo9N QEk6s3sUoGoZA== Message-ID: <852075437da46121ef5c3293356fd05bec600160.camel@credativ.de> Subject: Re: Fixed port 65432 in pglogical_create_subscriber From: Michael Banck To: William Ivanski Cc: pgsql-pkg-debian@postgresql.org Date: Fri, 25 Sep 2020 11:41:13 +0200 In-Reply-To: References: Organization: credativ GmbH Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi William, Am Freitag, den 25.09.2020, 01:18 -0300 schrieb William Ivanski: > I've been trying to convert a PostgreSQL 9.4 physical standby into a > logical subscriber using pglogical_create_subscriber. It can't > initialize pglogical on the subscriber server because it can't connect > to the local PostgreSQL database after a restart, so it hangs. > > As you can see below (sensitive information redacted), I have > configured to start local PostgreSQL database on port 5433. File > /etc/postgresql/9.4/main/postgresql.conf confirms port is set to 5433. [...] > pglogical_create_subscriber started the local PostgreSQL instance on > port 65432, but it's expecting to connect to port 5433, so it will > never be able to connect. > > I checked pglogical source code on [1] and I was not able to find any > explanation for this fixed port 65432. Then I found the pglogical > source code is being patched to start Postgres with a fixed port 65432 > here [2]. That patch has been around a long time, I think we had to introduce it in order to get the testsuite running; maybe it was just a shortcut. I agree that it's breaking the user experience though. I can see whether the testsuite got fixed/changed upstream in the meantime and we can drop the patch now. Michael -- Michael Banck Projektleiter / Senior Berater Tel.: +49 2166 9901-171 Fax: +49 2166 9901-100 Email: michael.banck@credativ.de credativ GmbH, HRB Mönchengladbach 12080 USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer Unser Umgang mit personenbezogenen Daten unterliegt folgenden Bestimmungen: https://www.credativ.de/datenschutz