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 1kMoVA-0000e5-Vh for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 28 Sep 2020 08:27:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMoHc-00047x-Sh for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 28 Sep 2020 08:13:16 +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 1kMoHc-00047q-M2 for pgsql-pkg-debian@lists.postgresql.org; Mon, 28 Sep 2020 08:13:16 +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 1kMoHa-00033a-5M for pgsql-pkg-debian@postgresql.org; Mon, 28 Sep 2020 08:13:16 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.credativ.com (Postfix) with ESMTP id 6CC5C2051F; Mon, 28 Sep 2020 08:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=credativ.de; s=email; t=1601280792; bh=B5k6gqj5zW22LI6SF/v3+xSWEm4D8mkgVq2LACcU600=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=pRpJvTkapQutnu3WK+RFDxaA1wzJ+/azIB04IGFBk7d0L23CNlH9il1vdkki81yPj wOrLtigpEgO48PeeTOvQl3nGlNYclqUk3lA1pTypW/x2BLNYkBYlNw9Q3D/mvvbA0x V26N3En4I0LcI/9vuvqQKMoQpMdpB04HBf9w+aVc2FF6d+R0ARmE09WF+mFyXJ07Z/ 3182E3PXVVW2wyo1NfArV8ofVhGY+VHv3VaRnm8KoTujGtbxpqSQofcfd1pzp9V8jo Uxq72hecWU+A6nhrAZUv1GBcE94Q7De6/khFt+ITT1jZPCbE6VZC5/rCjGjrfP26Ez pQsSaYbZQiLUQ== 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 QlwJytU7PZHk; Mon, 28 Sep 2020 08:13:06 +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 2F7E820172; Mon, 28 Sep 2020 08:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=credativ.de; s=email; t=1601280786; bh=B5k6gqj5zW22LI6SF/v3+xSWEm4D8mkgVq2LACcU600=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=IZzRhOdqEMLGvqEDGRYuzuBm8NikJ6UKY1X3wUUGnkXbpQQPNV4hA6zZV6LdaRVfg /0hl5wmaIQJb181BxiSMU7Z74Zivzp1If4YOisyFqDIgymXbt4cHZ1BcmUT4uR3fL8 0p1IAaud3EoCP9pVxvTSkolmn3JCvojwKZvno+J9Pb5p49agubhdnAa8JMDlX0XVgd bIt7JGIkA7z5oqWdZyfUuHQ49AiDc4y0G8hmWZfTloZMfrbW0sBzJitm5t51Z/XAWR 2M6ArKd1ilaUeDCH2MwjzsO8Z+cGTsx9j26Qiy2c463o4WyajfAAfdtLbFSEHuS2YU oeAlx6UJzxxPQ== Message-ID: <291cd7fcf2d62bea0c4c0301065533431a2bf670.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: Mon, 28 Sep 2020 10:13:43 +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 Samstag, den 26.09.2020, 04:16 -0300 schrieb William Ivanski: > Thanks for your quick response and for testing without the patch. > > I tested with upstream pglogical, and it works, I'll explain. > > For pglogical to start Postgres on port 5433 on the subscriber, I need > to set "port = 5433" in the file I specified in "--postgresql-conf", > then it works as I need. pglogical_create_subscriber will copy this > file to the path specified in "-D" (PGDATA), and this file will be > used when pglogical_create_subscriber starts Postgres itself during > the procedure. As in Debian/Ubuntu we generally don't keep > postgresql.conf and pg_hba.conf files under PGDATA, after > pglogical_create_subscriber finishes (I recommend using "-s" or " > --stop" so pglogical_create_subscriber stops Postgres at the end of > the procedure), it is safe to delete those files from PGDATA. > > In your case, it seems you are expecting the subscriber to start on > port 65432, as that's what you specified in "--subscriber-dsn". So you > need to set "port = 65432" in the file that you specified in " > --postgresql-conf". Well, my case is "trying to get the TAP tests running even if another Postgres is listening on port 5432". Indeed you're right that one can use --postgresql-conf (Petr Jelinek also suggested that in the upstream bug I filed[1]), but the TAP tests reuse the same postgresql.conf for both publisher and subscriber, so that would need more changes anyway. Or maybe something more has changed and it's possible to run the pglogical TAP tests these days without a problem if there is another PostgreSQL listening on 5432 already, I'll need to investigate that when I get the time, but that is somewhat low priority. I've uploaded a new pglogical package now which backs out the problematic patch and sets PGPORT in the TAP tests environment before running pglogical_create_subscriber, that seems to work just as well (or at least just as badly as before). Cheers, Michael [1] https://github.com/2ndQuadrant/pglogical/issues/282 -- 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