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 1qgCIe-00Ek26-I2 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2023 22:56:04 +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 1qgCId-00CRO5-Bz for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2023 22:56:03 +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 1qgCIc-00CRNe-Tl for pgsql-hackers@lists.postgresql.org; Tue, 12 Sep 2023 22:56:02 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qgCIU-004EFw-Or for pgsql-hackers@postgresql.org; Tue, 12 Sep 2023 22:56:01 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-68fac16ee5fso2902981b3a.1 for ; Tue, 12 Sep 2023 15:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1694559353; x=1695164153; 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=i31bX+LGLp53D9aRq4TFNxW5CyAZwQEHTcbCKQnYI6U=; b=R2xYLJ8su506T9Ity0kPLCBDPCSMAJQo7asie+BKGZlx9lxtj7i5QbIW24Wl9t7I9/ cUnDYNFX8y09+6BeBBfY34erOuLXt8iJ0NokbZ99c4yUi65OIgcvRpYleCp8wg006sv2 9P9gMWUUS0vFAfODaKvNfcuW8wfPWFQINPpfOM/q4y9u8tJs+Orl+tamhHqiQovzQ5c7 ly7aOEZ1USzqPh4sewruHx3WAW30dJKgF/R6xqRjcZnLU84QvHI8AGwE0l/BrDKlsHcN Y/RfZEmBq7WcQh2xCL5Y7hI7o/7vqd1mA6jgT5RT6EDfWf7HbYrOPxmDCuCf+7E714uy k5Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694559353; x=1695164153; 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=i31bX+LGLp53D9aRq4TFNxW5CyAZwQEHTcbCKQnYI6U=; b=OvtcVQFfG1zEPqPbKdBzxPSNcEfynfwcxweG+Y4H43g3kNSLagm024wtpmR3HFFk8O EqCeyKyoMpjJ7ly4avxgiUkvz5CaMo7A2oDb0sk0WnAVYR3DOtmq9nJUpSDgIZLflam9 u2rqq0hIh9PHi6Djyyh4hTTv1yX1UZ1TftMBpZkc5ZwlhDg2X/SoFIL0P0/M6fjHqZXa aWFL16I6OXgd1punWSuwcvZEwBi0s+7imnLLHhNkhLzQSAeNm1tHX/yoggDc7hilGoQZ 4i3Y3dCMq6iKgMnHQ9hk/M7Q6Pww4I5Dx+l08DD6cKTEOQQVXHxx+2Wff5kBgRTdiuCb oYDw== X-Gm-Message-State: AOJu0YyLZsQLKD4MmMKK1R2foQ/8ifv21/HG1RE7nEhHzC5Liv3OXta/ nXrPsSS6YeFF0Fh/ez2Xo0kqhiPwlhaafjq9MwU= X-Google-Smtp-Source: AGHT+IFKNnXC4MMz07T8TOplEiSjVFUfj/Kvb0Z2q5yf35veb3YkcyHa7hdJFLsGieIbcrUybOrRWg== X-Received: by 2002:a05:6a20:5610:b0:14d:5796:bccd with SMTP id ir16-20020a056a20561000b0014d5796bccdmr722700pzc.24.1694559353551; Tue, 12 Sep 2023 15:55:53 -0700 (PDT) Received: from [172.18.5.16] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id 19-20020a17090a001300b0026f90d7947csm127463pja.34.2023.09.12.15.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 15:55:53 -0700 (PDT) Message-ID: <61186acf6c85de175e97aa0e91b5db1f34cd3465.camel@j-davis.com> Subject: Re: [17] CREATE SUBSCRIPTION ... SERVER From: Jeff Davis To: Ashutosh Bapat Cc: Joe Conway , pgsql-hackers@postgresql.org Date: Tue, 12 Sep 2023 15:55:52 -0700 In-Reply-To: <05ae37abb207cd6bf6b126780024692d91402b0b.camel@j-davis.com> References: <149ff9264db27cdf724b65709fbbaee4bf316835.camel@j-davis.com> <830a2bc6cbbb2e6e01c6c0d9f31f320822e10603.camel@j-davis.com> <433d0845248e86c0317d9d396926182cfe157340.camel@j-davis.com> <05ae37abb207cd6bf6b126780024692d91402b0b.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 Tue, 2023-09-05 at 12:08 -0700, Jeff Davis wrote: > OK, so we could have a built-in FDW called pg_connection that would > do > the right kinds of validation; and then also allow other FDWs but the > subscription would have to do its own validation. While working on this, I found a minor bug and there's another discussion happening here: https://www.postgresql.org/message-id/e5892973ae2a80a1a3e0266806640dae3c428= 100.camel%40j-davis.com It looks like that's going in the direction of checking for the presence of a password in the connection string at connection time. Ashutosh, that's compatible with your suggestion that CREATE SUBSCRIPTION ... SERVER works for any FDW that supplies the right information, because we need to validate it at connection time anyway. I'll wait to see how that discussion gets resolved, and then I'll post the next version. Regards, Jeff Davis