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 1m5TQB-0004K8-KK for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jul 2021 13:34:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5TQA-0007Vb-K5 for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jul 2021 13:34:58 +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 1m5TQA-0007VS-CV for pgsql-hackers@lists.postgresql.org; Mon, 19 Jul 2021 13:34:58 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m5TQ7-00024C-EC for pgsql-hackers@lists.postgresql.org; Mon, 19 Jul 2021 13:34:57 +0000 Received: by mail-ed1-x535.google.com with SMTP id l26so23951540eda.10 for ; Mon, 19 Jul 2021 06:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0KgHyIZn/KBlB7xnPM9CZ6Ao85HO1X6F1PESiICIkSk=; b=iuuciRwf0HP4QzFbpcUALneWS7bs9FZKnFbLEN3hn+hc/Jh0vWsJvT2WV1R31nN3Rk 7u5iKFk3yXorMbLN3GKrPW5c0w536aK9w3oS1xlIg0qxipBw1zbKbDRXkioleuLt373J NulocPwAfTB/Qby/JT2wk+z/gwqviJnenn3Dx7levFdJOSNYWqkdKHZ+qrFMVL4Njonv Pq18wfiEArxsFYCUfFJTao1gHWfqfzct9qUxIufKr+/sJqEaM+u9J4UIjVsq4Umm2OJL 9qctmTa/fq+AfZ3KsfCskF392umPXbd6trGa5xn0dTWMV9WTOj3o9L+B4j+wFmpf/iDW 8Flg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0KgHyIZn/KBlB7xnPM9CZ6Ao85HO1X6F1PESiICIkSk=; b=NBasoP72un2ucChF3ACzdE1KPHbbQ/jJFDT1RF1PmLkc6+YuCRQHDfouGe7bkIXqZq UCP2Bt0TQ8DfQl6i7N4K6mucwPq9Ld5qvXKGZX0s6yhklNg8Zc8DfN6yS8K7c06Rw8BX 8J4kBF8uayS8+oWmkFZx8H+qghhDB6g0oDP3vOmY6Bj3cH0Aa27qg0QXsUvtMXwimRT2 8zwXHUCJbEAJgqmEIYGpg8xAsU5Fa9TiEVrcKWG4evI0KiunUdR6DYFXJrX84cBHC162 gse9buUra+giSCkxxgs4NYaCjI3l3+mN7UyvPZpuD42l2jZ2++eKJgl7XH+SXRn8jKUv CaOA== X-Gm-Message-State: AOAM532Dl8dYh7Ir6GLdxEhiWZuGu6NKP5Qxa845UwcFtG0MQVzsjZY9 nzXNOEnGfl4i4SKxhHDEreN1ToVGfJMG4eKU7CW8EK0r5VaCQol88oH35B8zz52iUiTP+ZJJAkK sFPnvBOLvVbLkMJTlXt+H5k69+TAUdM/tVAhTKLbkWFI4pIpZVkdQz31GPC11+yNKCH4kps8qGh IPAtIJAOEUZQ/sL1IT92jZWIpbuacW1NnnfvuXTsZ0ed1MebtEO95P9XWksNJa566VSFRWuTEYE i6YCA05uKM9FG1Rgz6Q40iZrI4Fg8R8lCJuk2ygEfZcDyevlhXOkw== X-Google-Smtp-Source: ABdhPJzDLqQcjELmVBj5+VGBDB42YG9hg78Ojw7z7qfSHEfrXs+Qp/7F3XK+y19CBEQlgKqaadDKRA== X-Received: by 2002:a05:6402:152:: with SMTP id s18mr34262586edu.221.1626701693132; Mon, 19 Jul 2021 06:34:53 -0700 (PDT) Received: from [10.137.0.19] (ip-86-49-254-183.net.upcbroadband.cz. [86.49.254.183]) by smtp.gmail.com with ESMTPSA id q26sm1705350ejs.115.2021.07.19.06.34.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 06:34:52 -0700 (PDT) Subject: Re: row filtering for logical replication To: Amit Kapila Cc: Euler Taveira , Alvaro Herrera , Peter Smith , Rahila Syed , Peter Eisentraut , =?UTF-8?B?w5ZuZGVyIEthbGFjxLE=?= , japin , Michael Paquier , David Steele , Craig Ringer , Tomas Vondra , Amit Langote , PostgreSQL Hackers References: <202107132106.wvjgvjgcyezo@alvherre.pgsql> <48e13621-10f7-49ef-bcbe-ed530195efd2@www.fastmail.com> From: Tomas Vondra Message-ID: Date: Mon, 19 Jul 2021 15:34:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/19/21 1:30 PM, Amit Kapila wrote: > On Wed, Jul 14, 2021 at 8:03 PM Tomas Vondra > wrote: >> >> On 7/14/21 2:50 PM, Amit Kapila wrote: >>> On Wed, Jul 14, 2021 at 3:58 PM Tomas Vondra >>> >>> I think apart from the above, it might be good if we can find what >>> some other databases does in this regard? >>> >> >> Yeah, that might tell us what the users would like to do with it. I did >> some quick search, but haven't found much :-( The one thing I found is >> that Debezium [1] allows accessing both the "old" and "new" rows through >> value.before and value.after, and use both for filtering. >> > > Okay, but does it apply a filter to both rows for an Update event? > >> >> [1] >> https://wanna-joke.com/wp-content/uploads/2015/01/german-translation-comics-science.jpg >> > > This link doesn't provide Debezium information, seems like a typo. > Uh, yeah - I copied a different link. I meant to send this one: https://debezium.io/documentation/reference/configuration/filtering.html regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company