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 1kLlul-0002z0-E0 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 25 Sep 2020 11:29:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kLlui-0001jL-M6 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 25 Sep 2020 11:29:20 +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 1kLlui-0001jE-FH for pgsql-pkg-debian@lists.postgresql.org; Fri, 25 Sep 2020 11:29:20 +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 1kLlub-0007Ex-H4 for pgsql-pkg-debian@postgresql.org; Fri, 25 Sep 2020 11:29:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.credativ.com (Postfix) with ESMTP id 590822015B; Fri, 25 Sep 2020 11:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=credativ.de; s=email; t=1601033351; bh=/Hrk0Yw7YF81DZ89Bw2N8MMl+IxmKQ7Zv7xsbN2PWwo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Hvqmy3MtH1+3SDxHouG1qZUiglp9JkKV+AnDHIoPesUWBTX/GSw4I2YjkeoTQsRQo DM94GMBqqmYdXQfKBsikhOXBCZH175I+KP/89PyKgX5qqf2bdyePepv0csIZjNSK+Z yuP+ixcYVuuEt2U1/02tFazaU1Cw1ibQt2jH9jedoX6SJe96DW4N7aTX/SrmtUrSWH QPjSFSzWh/mSJamk7UE0Ai74fy51HR4w4LQxPxxNz+HE+aPBMgLMdS2TaBYQ4rLKDc kdgGXi7YMRL+g3Uc9xE6sISIglVMKu6IhL2fwMnhFRp1Ke2z0hKk6SSzw8jBTupQkn fTSXz8eFX5tIw== 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 tx8fK1wp-H86; Fri, 25 Sep 2020 11:29:05 +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 D74FB20133; Fri, 25 Sep 2020 11:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=credativ.de; s=email; t=1601033345; bh=/Hrk0Yw7YF81DZ89Bw2N8MMl+IxmKQ7Zv7xsbN2PWwo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ET6DMI2GPcZ8qccpj9Dqs+vDAWfCMAFlwM6fMRdlHuQMit748NgEaDzzyG9I4jbsx si57SVZ5j+aC3tcJsoxJu+5ECCs8ac+qHM/TNWd+vC5pmt+L4MLgGJxEP1dzNKui++ 4/oWqCbeT/tBBNe+j9j0f1sYXjfrxUkc1w/bhrM1iHs8bRijUAs1k4LpMeQiV9bOXY zRJ+U0ar8IUK6KMS5e4DcAKg9vZoZcBeHLrvoXrdAScHNoOHrb3DyFu7jLdsT725sv 65z5W9DWQUFM52zfBkLdgNfDeQmgzexWW5J1SiTORq/Te9vsua+Nnht3j/Ut8nivDT Drrd1RqWJHvJw== Message-ID: 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 13:29:08 +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, Am Freitag, den 25.09.2020, 01:18 -0300 schrieb William Ivanski: > 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.h > > postgres@subserver ~ $ /usr/lib/postgresql/9.4/bin/pglogical_create_subscriber \ > > -D /var/lib/postgresql/9.4/main/ -n subserver \ > > --subscriber-dsn='host=127.0.0.1 port=5433 dbname=mydb user=pglogical' \ > > --provider-dsn='host=192.168.0.100 port=5432 dbname=mydb user=pglogical' \ > > --hba-conf=/etc/postgresql/9.4/main/pg_hba.conf \ > > --postgresql-conf=/etc/postgresql/9.4/main/postgresql.conf \ > > --drop-slot-if-exists -s -v > pglogical_create_subscriber: starting ... > Getting information for database mydb ... > Creating replication slot in database mydb ... > Creating restore point "pglogical_create_subscriber_59e1d7bc" on remote node ... > Bringing subscriber node to the restore point ... > Waiting for PostgreSQL to accept connections .... > Waiting for PostgreSQL to become primary...Waiting for PostgreSQL to accept connections ... > > Removing old pglogical configuration ... > Waiting for PostgreSQL to shutdown ... > Initializing pglogical on the subscriber node: > Waiting for PostgreSQL to accept connections ................[never ends] > > 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. If I take out that patch, pglogical_create_subscriber seems to start postgres on the default port (5432), without looking at subscriber-dsn, so I'm unsure it would work for your 5433 port. Did you test it with upstream pglogical and/or how is this supposed to work? I get a process with "/usr/lib/postgresql/12/bin/pglogical_create_subscriber -D /tmp/regresscheck.R5THTZ/tmp_check/tmp_backupdir --subscriber- name=test_subscriber --subscriber- dsn=host=/tmp/regresscheck.R5THTZ/tmp_check/tmp_socketdir user=super port=65432 dbname=postgres --provider- dsn=host=/tmp/regresscheck.R5THTZ/tmp_check/tmp_socketdir user=super port=65431 dbname=postgres --drop-slot-if-exists -v --hba-conf=regress- pg_hba.conf --postgresql- conf=/tmp/regresscheck.R5THTZ/tmp_check/tmp_datadir/postgresql.conf" but in /tmp/regresscheck.R5THTZ/tmp_check/tmp_socketdir the sockets are: .s.PGSQL.5432 .s.PGSQL.5432.lock .s.PGSQL.65431 .s.PGSQL.65431.lock and the t/010_pglogical_create_subscriber.pl TAP test hangs. 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