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.96) (envelope-from ) id 1wzyqI-004NVS-2A for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 15:50:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wzyqH-008MEj-0G for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 15:50:09 +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.96) (envelope-from ) id 1wzyqG-008MEa-0B for pgsql-hackers@lists.postgresql.org; Fri, 28 Aug 2026 15:50:08 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wzyqE-00000002roG-17cR for pgsql-hackers@postgresql.org; Fri, 28 Aug 2026 15:50:07 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 238A5140012F for ; Fri, 28 Aug 2026 11:50:04 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Fri, 28 Aug 2026 11:50:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1787932204; x=1788018604; bh=iS EI7Nq3Q+al9+x7dHznMND6wCvN234OjS/xVaqKSdE=; b=MfQ1qkAOpp0ewNBxTN kba1iuWUiT8luESrXWej6JObMt+dbrilhW496ieM9lJMbUcB790MJ3MD3wHmTM4e Gp2cJYsuHJY5GfC9nJBiSfQru78hRfxsOvcUDKMONvkgzF7xZBtpOJh7/BPRSxZ4 9pi+zVI/+9lywaWri3zgpe025+z9pFJ04B5QFulMMADKuv/xdlOOsBZnalJz5bvo 33UIYXCOAhwgTEqiizgbS1VOicC6TCJebg55SeILOj/VjL4hV/tvnKgCFElmFcnZ UKhqUFbz9klmEbZq2k/NglBD8ksUcN/jbAXgaVGdoQmfKiirYB8u2HNB3af5KdnK KvqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1787932204; x=1788018604; bh=iSEI7Nq3Q+al9+x7dHznMND6wCvN234OjS/ xVaqKSdE=; b=M8y3JxnF0KowNacfCpslloqZbM+TKNk0/UuBDhw8/u88KbLc5Dj CRxa95kWGzxqoV2lq2O3LQBD0Y5UBsz+/TliCPn0epLkQcgbUdb4EcbHDmQLr93/ MXyCH+RU8A44aZ24T6jJK9HhwmCNLuYA+M4Q4eH71XZLCVGGeA55Wc+e00LxfW33 ikD5GSXD/QrV5xHD9JL55aL2b0XSxRuycek3OX7wMK9j+Jp3TH62gW/OxvtE2v/9 vk1MgBMvcTHAQilvnFQzIEjxy7uNVaD/GWP3UDguP5k1A3/NWWzJxl2VnjW4SNCK Sh8wUiKpeUPJTS04yoJ32997KzLZWBUYa2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE3k+eBw1JduXcunP5hntyvDQwIARKWAC3blzhQTj23bGq+sgPcAJ63MSBch+ZcJJ WUR3rYO4wWGA7TsAr2rkaNSzRF8BwzE6t4DFyyApJt0E3LTRLM5yqlS4A2DFN8Y30N0glS 5uq+Lfor0LXvZhO1D/+aP4PMfUW8gsBR5OfFvPrRuIkFLxWDdYDaOJoy8iCqijzrE2JxKN XO8Z782Io/4WG5jceX8CX7nHkyB9TSH2yXMHCjZpJupUlfzMp2xsj316lAQ5tUASIGcqg0 QFm4bRR1vn6SiyivW0BzlqohyLI3finweAxjT+N8rHaAjOZUYdYzv9nEzr8AWWIvFWV8r3 zxgLJ8DGciIRT5jARWoy9TKe24r9iQayYQnAVTNzIX8SC0yWbEF7wn1raWPbtatU5d6s9D XqojshYqJMkeO79IDOBkObRPw4mssfrnlvXHUPHKyXkIO3vKk8v+sfMYrxA8jWz1ZxAjkQ yDRIzkEVN4g4BBEN0EfpjGhIaAWrBbwA/tIsCFZUa2uU//7h4TJGNGscTYxCnpajfl1sZe s8ZHbLeRnJ1YENMC+79c3D3FPEIXOG6LjLcp/myKnFsvCnzOg/3TcqZPhtUQKN4npjybYo FVlMOHoBZyLyo+jPzLWnAzBMF96jHyRI2Tcn0VCOSVO6TAYgUeqwU6IbKv1A X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 28 Aug 2026 11:50:03 -0400 (EDT) Message-ID: <3a890e4f-98ac-48a0-bc83-e465616ba1cb@eisentraut.org> Date: Fri, 28 Aug 2026 17:50:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Peter Eisentraut Subject: CONNECTION keyword use in CREATE FOREIGN DATA WRAPPER To: pgsql-hackers Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk A new feature in PG19 is that you can equip a foreign data wrapper with a connection function that can be used by subscriptions, instead of those subscriptions defining a connection string. The syntax is CREATE FOREIGN DATA WRAPPER ... CONNECTION function_name I find that this is confusing compared to the existing CREATE SUBSCRIPTION ... CONNECTION 'connection-string' These two are closely related, per this feature, so the use of the same keyword for two quite different things seems unfortunate. I suggest that CREATE FOREIGN DATA WRAPPER should use a different keyword. Option 1 would be something like CONNECTOR, which would match well with the existing HANDLER and VALIDATOR. Option 2 might be something like CONNECTION FUNCTION, which avoids a new keyword, and matches a bit with CONNECTION LIMIT. Thoughts?