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 1jfnTe-0004dk-FA for pgsql-general@arkaria.postgresql.org; Mon, 01 Jun 2020 16:39:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jfnTc-0006oY-9f for pgsql-general@arkaria.postgresql.org; Mon, 01 Jun 2020 16:39:52 +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 1jfnTb-0006oR-UR for pgsql-general@lists.postgresql.org; Mon, 01 Jun 2020 16:39:52 +0000 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jfnTV-0007u1-00 for pgsql-general@lists.postgresql.org; Mon, 01 Jun 2020 16:39:51 +0000 Received: by mail-pj1-x1041.google.com with SMTP id h95so64600pje.4 for ; Mon, 01 Jun 2020 09:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=IASBwFEzYh86E2c+izaQytpWmNAntHHRgZIntJ3JQdE=; b=HBKjSoB9T7vWbxLf9usYRCIRdV/Zjw+L4Yqkov/Qp8Z5yXiUBaDhxkoxGUPZYxRYbY FlM8H3yeTxw8vRQsHcrkss5HB5/+t37AStuLN+hsqDThtAgM0Th8P8PgFmKm8im+w5Kg t0GxYzcxwTADHQPRQDcHd/nRfHI3ABOUhcJgVKrwYXjFpcTfs1lYx6Yxye/D1mYnBW0y JKFe1S96rBR2KdbGVlYaaESSy8hdYIuWje9r8f58bsQfghVVGaLiJ3N9S0wDWUKvSLip /c0wVK9TjZP8wH/xtda0Hd7218NrrIBp5EzVHFFSaGRG2xsFxeWETqYBATRhpwo9i5P7 JBig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=IASBwFEzYh86E2c+izaQytpWmNAntHHRgZIntJ3JQdE=; b=PttxWmgMpQsSDmuwyut8JcULd/g49+ZbXFdUx+1G17/6kCwja09OYEIqvAt8w43m5c rIXFhwGnyaPZPyGUEbguNpfjA3c9+o8OQL2JkGWr0lVi+b7jJ2pdH3cVwUV6IT9K0IHO KfvygfK+gt0gIA5R9SH5heLjExzJ+31LUggVCaGaXqEK7gxqKL/9NHZhFbjsvqx950g/ xpSZYKWun5DWmaMKLphltoR8dq8EI16DG70t7uKJwODKIc4jntJa7A8hiG6Y5pHWgbo2 /YJOIdMW+MC8xMYTT+TbjWv2bJ/KYdR2zIBs2BqzUEysEIyacSfWcPJ51HQvVZ128sZb 7imw== X-Gm-Message-State: AOAM533oYauayMJzmB7QDE492creSB/oD3hhTxZHAp+AcSy5pWPx1Ws2 bKvJ7q9sCECXrdd4evKPHoimx6h14r4= X-Google-Smtp-Source: ABdhPJyvyUyO//g+uILBVQ/RGkmrQe8eIyBRbmRmOiBNLVjQ0oyH2iHtw9Bkwtos4EDyjvEJAAh5VQ== X-Received: by 2002:a17:90a:7b8b:: with SMTP id z11mr285053pjc.234.1591029582317; Mon, 01 Jun 2020 09:39:42 -0700 (PDT) Received: from [192.168.1.7] (157-131-203-236.fiber.dynamic.sonic.net. [157.131.203.236]) by smtp.gmail.com with ESMTPSA id p30sm16775pgn.58.2020.06.01.09.39.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2020 09:39:41 -0700 (PDT) From: Igor Polishchuk Content-Type: multipart/alternative; boundary="Apple-Mail=_A7449C82-7F05-4C93-A6BA-5186312538E7" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Pglogical 2.3.0 in AWS RDS 12.2 Message-Id: Date: Mon, 1 Jun 2020 09:39:40 -0700 To: pgsql-general@lists.postgresql.org X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_A7449C82-7F05-4C93-A6BA-5186312538E7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello everybody,=20 Has anybody succeeded with using pglogical in AWS Postgresql 12.2?=20 They have pglogical v2.3.0, and it has this issue = https://github.com/2ndQuadrant/pglogical/issues/240 = , which was fixed = in the 2.3.1.=20 However, one cannot upgrade pglogical to 2.3.1 in RDS. Just curious if = somebody found a work around. Otherwise, it seems unusable with RDS = v12.2 right now.=20 The specific issue is: The replication just does not start after creating a subscription. If I = try synchronize, I see: select pglogical.alter_subscription_synchronize('subscription1'); ERROR: could not get table list: ERROR: syntax error at or near "." LINE 1: ...i.att_list, i.has_row_filter, i.nspname as i.nsptarget=E2=80=A6= In the db log: 2020-06-01 05:05:59 = UTC;user=3Dreplication;db=3Ddemandbase_production;app=3Dsubscription1_sync= ;client=3D3.217.57.139(10005);[52691-3] ERROR: syntax error at or near = "." at character 89 2020-06-01 05:05:59 = UTC;user=3Dreplication;db=3Ddemandbase_production;app=3Dsubscription1_sync= ;client=3D3.217.57.139(10005);[52691-4] STATEMENT: SELECT i.relid, = i.nspname, i.relname, i.att_list, i.has_row_filter, i.nspname as = i.nsptarget, i.relname as i.reltarget FROM (SELECT DISTINCT relid FROM = pglogical.tables WHERE set_name =3D = ANY(ARRAY['default','default_insert_only','ddl_sql'])) t, LATERAL = pglogical.show_repset_table_info(t.relid, = ARRAY['default','default_insert_only','ddl_sql']) i In GIT: user@MacBook-Pro pglogical (HEAD detached at REL2_3_1) $ git checkout = REL2_3_0 Previous HEAD position was 19d6f4f Merge branch 'pglogical2-fix-revert' = into REL2_x_STABLE HEAD is now at 4d53ca4 pglogical_create_subscriber: Fix for PostgreSQL = 12 user@MacBook-Pro pglogical (HEAD detached at REL2_3_0) $ grep -R = "i.nspname as i.nsptarge" * pglogical_rpc.c: " i.has_row_filter, i.nspname as i.nsptarget, = i.relname as i.reltarget" ipolishchuk@MacBook-Pro pglogical (HEAD detached at REL2_3_0) $ Source Postgresql 9.6 pglogical 2.3.1 or 2.3.2 Target AWS RDS Postgresql 12.2 pglogical 2.3.0 Thank you Igor Polishchuk= --Apple-Mail=_A7449C82-7F05-4C93-A6BA-5186312538E7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Hello everybody, 
Has anybody succeeded with using = pglogical in AWS Postgresql 12.2? 
They have = pglogical v2.3.0, and it has this issue https://github.com/2ndQuadrant/pglogical/issues/240, = which was fixed in the 2.3.1. 
However, one = cannot upgrade pglogical to 2.3.1 in RDS. Just curious if somebody found = a work around. Otherwise, it seems unusable with RDS v12.2 right = now. 
The specific issue is:

The replication just = does not start after creating a subscription. If I try synchronize, I = see:

select = pglogical.alter_subscription_synchronize('subscription1');
ERROR: could not get table list: ERROR: syntax error at or = near "."
LINE 1: ...i.att_list, i.has_row_filter, = i.nspname as i.nsptarget=E2=80=A6

In the db log:
2020-06-01 05:05:59 = UTC;user=3Dreplication;db=3Ddemandbase_production;app=3Dsubscription1_sync= ;client=3D3.217.57.139(10005);[52691-3] ERROR: syntax error at or near = "." at character 89
2020-06-01 05:05:59 = UTC;user=3Dreplication;db=3Ddemandbase_production;app=3Dsubscription1_sync= ;client=3D3.217.57.139(10005);[52691-4] STATEMENT: SELECT i.relid, = i.nspname, i.relname, i.att_list, i.has_row_filter, i.nspname as = i.nsptarget, i.relname as i.reltarget FROM (SELECT DISTINCT relid FROM = pglogical.tables WHERE set_name =3D = ANY(ARRAY['default','default_insert_only','ddl_sql'])) t, LATERAL = pglogical.show_repset_table_info(t.relid, = ARRAY['default','default_insert_only','ddl_sql']) i

In = GIT:
user@MacBook-Pro pglogical (HEAD detached at = REL2_3_1) $ git checkout REL2_3_0
Previous HEAD position = was 19d6f4f Merge branch 'pglogical2-fix-revert' into REL2_x_STABLE
HEAD is now at 4d53ca4 pglogical_create_subscriber: Fix for = PostgreSQL 12

user@MacBook-Pro pglogical (HEAD detached at REL2_3_0) $ grep = -R "i.nspname as i.nsptarge" *
pglogical_rpc.c: = " i.has_row_filter, i.nspname as = i.nsptarget, i.relname as i.reltarget"
ipolishchuk@MacBook-Pro pglogical (HEAD detached at REL2_3_0) = $


Source = Postgresql 9.6 pglogical 2.3.1 or 2.3.2

Target AWS = RDS Postgresql 12.2 pglogical 2.3.0

Thank you
Igor = Polishchuk
= --Apple-Mail=_A7449C82-7F05-4C93-A6BA-5186312538E7--