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 1lQpVB-0003vM-Fx for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Mar 2021 10:52:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lQpVA-0005C5-C6 for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Mar 2021 10:52:08 +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 1lQpVA-0005Bx-2N for pgsql-hackers@lists.postgresql.org; Mon, 29 Mar 2021 10:52:08 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lQpV7-0001Zk-5O for pgsql-hackers@postgresql.org; Mon, 29 Mar 2021 10:52:07 +0000 Received: by mail-wr1-x42a.google.com with SMTP id z2so12364653wrl.5 for ; Mon, 29 Mar 2021 03:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2hbjXv3fE+Tnxaalf47moZ3PlrNzMcJk5+XOTjcIAro=; b=jdx9jnJ3qFvzPBR8u4blX9ElnM+UtnR7JGIIZJZT9QKmZ65i8jfqWqe7PHtk+aok/a e2YeCxRp82Fsz0b2hMgEm/2umn8VCpgZOaJU2xHFP5S42MIaZ5NtwgybOu5QRrlyAlcj ETDMj6rCt4PXcMentvWJIXTAxwalp5GQdN9FaSB6pc0BovjeZLPq9UJVb1+ecDhucXri pScoL+hexSDA9NOqn388lVtxe6jS8xUQxcabZaaA9ONQaXMFaPyCyXFl1/vB3wMe/n99 FTgoSlX+wDFJKsl9Vfg/ojhewj93LNngBxDKM6IoZ+nvNJrmbbOhjfAb+cnnc25nDX6v 2LnA== 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=2hbjXv3fE+Tnxaalf47moZ3PlrNzMcJk5+XOTjcIAro=; b=ky3lS9R+3E+TlzQXzDiWWh8oXZPgs95NcrRI5K9udwHsKcsrHc9D95C1nnmN1M19lI 4J9Y7GqME87P0mOxIIYrGGIXZzBwzIw7Ng9/QLGNcbd6KQemZIW3YXaD1EPqg/hCr6C/ eZtIOq1eywxck6WKhPwaUr1p0MLdDJRMpzgqLobywsZh9vB2Fc7+KjanRJVB8Iht1DM+ 33CgP4dN64bzBpkESiVQHCEg8ht4fVa5EUOy/pPY0MK1yfcg0aDKyAmXMRDgDT/VjUZO /Kv0+ZbVLN9KG0UB2f9/vgaVkYHiMOvs7Rb2WC9l5O61RHwvu2VNU+THCxabAGSb4T18 mhZQ== X-Gm-Message-State: AOAM533/YhJUXgGYKhuZ0X+Neo2rvG5Clk4B84i1M+js5LLbTig3w454 xgolLm0GPluoKK35XIUDOk+fp09mic2XZRs1UDLgtU6Euy9SqhHIjJx57lUN7UWW52F9HVyEKgk CAyei304D6WpDBEQnpwcH1jNE/UUjrM0yuiY5lHobxsiGqkNdB/yQqsVftzMshCgC+Lc4hmUqRB WeBff4sMxwg4uhyvxyquo3t8Kv/MV7yfKEwag7 X-Google-Smtp-Source: ABdhPJzDw93HLQSV0bXSAFX0WTdJWypdaMSfsRinsjQoqTd2XLp+1cfaxcby+iOlZZrucFjJzfAe+g== X-Received: by 2002:a5d:6587:: with SMTP id q7mr27487328wru.282.1617015123599; Mon, 29 Mar 2021 03:52:03 -0700 (PDT) Received: from [10.80.18.124] (pool1-225.cgn.as8758.net. [212.25.6.225]) by smtp.gmail.com with ESMTPSA id e8sm24129962wme.14.2021.03.29.03.52.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Mar 2021 03:52:03 -0700 (PDT) Subject: Re: [PATCH] Provide more information to filter_prepare To: vignesh C Cc: Amit Kapila , "pgsql-hackers@postgresql.org" , Ajin Cherian References: <6f322b21-cbb8-5f9a-b2aa-30323a6ab604@enterprisedb.com> <722e7841-f4fa-dddd-4466-990fcada5d78@enterprisedb.com> <590e0d87-8a7d-9310-ff6d-b484f15522d0@enterprisedb.com> <86f51dc5-a667-c22d-4644-f5fa7ce97f98@enterprisedb.com> <93326387-bc98-a9e3-f684-a02fef142da7@enterprisedb.com> From: Markus Wanner Message-ID: Date: Mon, 29 Mar 2021 12:52:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 29.03.21 12:18, vignesh C wrote: > But in prepare_filter_cb callback, by stating "other systems ..." it is > not very clear who will change theĀ GID. Are we referring to > publisher/subscriber decoding? Thanks for your feedback. This is not about GIDs at all, but just about identifying a transaction. I'm out of ideas on how else to phrase that. Any suggestion? Maybe we should not try to give examples and reference other systems, but just leave it at: The ctx parameter has the same contents as for the other callbacks. The parameters xid and gid provide two different ways to identify the transaction. The later COMMIT PREPARED or ROLLBACK PREPARED carries both identifiers, providing an output plugin the choice of what to use. That is sufficient an explanation in my opinion. What do you think? Regards Markus