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 1m1KhX-0002fK-IA for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 03:27:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1KhW-00057I-Ex for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 03:27:46 +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 1m1KhW-00056b-4x for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 03:27:46 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m1KhP-00018X-Tz for pgsql-hackers@postgresql.org; Thu, 08 Jul 2021 03:27:45 +0000 Received: by mail-qv1-xf29.google.com with SMTP id x6so2169779qvx.4 for ; Wed, 07 Jul 2021 20:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JR715lEepKHqFxLodYPvBjvxCEYZt7Zlyt95GUqS1fI=; b=fsafwSMx1cWSFuTMoV/TCdNkK4rOglAAjBQONrqga5V2SFmUDuFS4hiMzxpf//PNjH gLylMtqyVi+dLdGHVXEDnjo1wWVl1+34IgwzbFZEiTam2fm2ZFjTUpOhPYl1QOM//j8B qfwlPIJAPh7pvBDMyb7rJycxeAweVV4ZLxknzAuhDJo9T+RGJ2olmDr5zO2xJ0vXd8v4 GgGaufW9Tetxq06wjXbnW0HnvcnwAQvatcaNV9IWvBGIUaGJbUhNt5j4kJmSqyGgNGfc U+QH5+3TPX0wQuwsGs8T+jP2XC1A4DQcT4djqzbt1MViyX+BAoeOBZJLjXGaXE8dclfg gGqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JR715lEepKHqFxLodYPvBjvxCEYZt7Zlyt95GUqS1fI=; b=KoQiJvb9PJK7QXmwQG+e47LJrTpPDqr3IMkXUXwzloL2hBoIgsE8UnBhVDZmXU3t2V muyilE2TzVKnN9+rFBqdwzNRZJHQH52DVvC0Q5Vyv/hfnFhJwOBdYpXKHPvjRDzUs7ju aHjeooE5kyW22TkJKv1b8uqcWE5HbNcixaseTQkcMXUS3P3gyb7hH4XrL2qiJHEHd0zi KH6NOqGS6RMgvRTHGRwEgA5I3D/bJJU89oQD1RXglOA9WKbJk0I7lUPkb0VEjg+jy4Se KPbajvbanreyKIXSB8rXf/YdohaSlMaXruxRyZYWlxYOWE9PMujRaQ3kYsRCI6nCe8wo NHPg== X-Gm-Message-State: AOAM530JPV/GaOU34kdgoQT7bRkYDYksIBJ8mCMu21QGFiO9A+Bj/Rv3 NNHiHQzgYvljGKfMUN6mCQB6xAnxyhFOwIqqhuE= X-Google-Smtp-Source: ABdhPJwQhI2Q0E/p+UTX9Ynx68uCdwlyuAVHWSi3dnmoDNfm+yiqYOdHVfJDgHKcd7TE3cviqDZUs2i4/yT6TyDhoxM= X-Received: by 2002:a05:6214:1a0a:: with SMTP id fh10mr27041719qvb.59.1625714858882; Wed, 07 Jul 2021 20:27:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Thu, 8 Jul 2021 13:27:27 +1000 Message-ID: Subject: Re: Column Filtering in Logical Replication To: Rahila Syed Cc: PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I was wondering if/when a subset of cols is specified then does that mean it will be possible for the table to be replicated to a *smaller* table at the subscriber side? e.g Can a table with 7 cols replicated to a table with 2 cols? table tab1(a,b,c,d,e,f,g) --> CREATE PUBLICATION pub1 FOR TABLE tab1(a,b) --> table tab1(a,b) ~~ I thought maybe that should be possible, but the expected behaviour for that scenario was not very clear to me from the thread/patch comments. And the new TAP test uses the tab1 table created exactly the same for pub/sub, so I couldn't tell from the test code either. ------ Kind Regards, Peter Smith. Fujitsu Australia