Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRzaP-00Af23-2d for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 19:03:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rRzaO-006SHM-2i for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 19:03:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRzaN-006SHE-MB for pgsql-hackers@lists.postgresql.org; Mon, 22 Jan 2024 19:03:55 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rRzaK-002q01-VM for pgsql-hackers@postgresql.org; Mon, 22 Jan 2024 19:03:54 +0000 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2902b0e9524so1637037a91.1 for ; Mon, 22 Jan 2024 11:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1705950232; x=1706555032; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=MTOl+c2ChXui1WTvC33gOqyjAcW4TfulIA+3eftRYwA=; b=BX3eR9PmZH+76zdStz2tdZOADnLIaDx61ObmuSYXk+38tr+9kCbr+bf0/kQcck5MQq 0oFIsd7nyntr/ovCRWWb1scLSPZH111qOZo1bkK/fy5adzA2MXuwt5z4mWZSvkqTpdFr ePVgaOMVj2fznQolVMF4W6isp+gGzWezs8OKmUQtpkyHwPVhhUGHiSerPM3mtPo7QgmV ioSat3PMTA9/hj+0BMW8j1hoKoyOd3a6+jbONM93lgcqDGvOf975F6JwkTnZAReP8B8j ZUcjDcdii9ihozd04M2W7npANputFeMqqSa7kvTxkeFtjdxFZZB9a4Q+RowISYWzX/we uTXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705950232; x=1706555032; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MTOl+c2ChXui1WTvC33gOqyjAcW4TfulIA+3eftRYwA=; b=sH8QKD9yshFSG11S6y8VgTPfnG4D/lereGI3CJW34BF+CaFzzphgpC5gF2y3jGAQnv IyoWAW5VkxHwVeUc1LgEV7MItguQy5IHKF8g+v4391Bu6IOrFb/qny/Ri/HtfgAPSewz k6mu4swyshQIG1cbUIusOznNnnv21bsUCBQrtFIt8fXrG0vG0NfK4R1TAE3isk7UdwQN shoOcGBfbKpyTdDvHfOakZkkgz5NXTObzBE5zKmWmp7iB+pMUjdsJlyJoQJSJS4dEyN4 VRQRWhkdJt0d/I+KLzqBm5F0+3QhB0M0NB5AROXqxd2ahkXZ8QRz2RydqOYKyvUgRPU4 BiOg== X-Gm-Message-State: AOJu0YzfU/SvEHw/9aH5HLdeiTNRZW4mL/PqcKX4LTobMeCZu3oeVqi/ 6enDGLVqIvpt9On97WxdVTeE644bozMnEOVkNrpaXWsXk7fBH6lf1E5ywKF+Cw== X-Google-Smtp-Source: AGHT+IF0FQ56GyVqXquUseyK4I4GJlPxWTx28E2rmGevbr8zGFToxCjUnJnA0la4bPB2EiVVnhyB+Q== X-Received: by 2002:a17:90a:a58c:b0:290:4acd:2745 with SMTP id b12-20020a17090aa58c00b002904acd2745mr1632501pjq.33.1705950231904; Mon, 22 Jan 2024 11:03:51 -0800 (PST) Received: from [172.18.10.37] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id u7-20020a17090ac88700b0028b89520c7asm9946484pjt.9.2024.01.22.11.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:03:51 -0800 (PST) Message-ID: <0910b47040406c1d24ec0150dafb5bae6b910ed7.camel@j-davis.com> Subject: Re: [17] CREATE SUBSCRIPTION ... SERVER From: Jeff Davis To: Ashutosh Bapat Cc: Bharath Rupireddy , Joe Conway , pgsql-hackers@postgresql.org Date: Mon, 22 Jan 2024 11:03:50 -0800 In-Reply-To: References: <149ff9264db27cdf724b65709fbbaee4bf316835.camel@j-davis.com> <830a2bc6cbbb2e6e01c6c0d9f31f320822e10603.camel@j-davis.com> <433d0845248e86c0317d9d396926182cfe157340.camel@j-davis.com> <05ae37abb207cd6bf6b126780024692d91402b0b.camel@j-davis.com> <93392ffa941ab0d436e19e0ab5d04d0e42c02d3f.camel@j-davis.com> <26be917cb07b6aa3ef5dd15f6b59d1b375ece6e8.camel@j-davis.com> <55201bd916e748acfc754c8f95880dae8e4e5ed0.camel@j-davis.com> <2a89b14a2b1622bffb8b137ca1f9ab7866f2d2b9.camel@j-davis.com> <61831790a0a937038f78ce09f8dd4cef7de7456a.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2024-01-22 at 18:41 +0530, Ashutosh Bapat wrote: > 0002 adds a prefix "regress_" to almost every object that is created > in foreign_data.sql. psql \dew outputs the owner, which in the case of a built-in FDW is the bootstrap superuser, which is not a stable name. I used the prefix to exclude the built-in FDW -- if you have a better suggestion, please let me know. (Though reading below, we might not even want a built-in FDW.) > Dummy FDW makes me nervous. The way it's written, it may grow into a > full-fledged postgres_fdw and in the process might acquire the same > concerns that postgres_fdw has today. But I will study the patches > and > discussion around it more carefully. I introduced that based on this comment[1]. I also thought it fit with your previous suggestion to make it work with postgres_fdw, but I suppose it's not required. We could just not offer the built-in FDW, and expect users to either use postgres_fdw or create their own dummy FDW. > I enhanced the postgres_fdw TAP test to use foreign table. Please see > the attached patch. It works as expected. Of course a follow-on work > will require linking the local table and its replica on the publisher > table so that push down will work on replicated tables. But the > concept at least works with your changes. Thanks for that. Thank you, I'll include it in the next patch set. > I am not sure we need a full-fledged TAP test for testing > subscription. I wouldn't object to it, but TAP tests are heavy. It > should be possible to write the same test as a SQL test by creating > two databases and switching between them. Do you think it's worth > trying that way? I'm not entirely sure what you mean here, but I am open to test simplifications if you see an opportunity. Regards, Jeff Davis >=20 [1]=20 https://www.postgresql.org/message-id/172273.1693403385%40sss.pgh.pa.us