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 1mXpuu-0004Sk-MQ for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Oct 2021 19:15:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXput-0006jq-Jp for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Oct 2021 19:15:55 +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 1mXput-0006ji-C5 for pgsql-hackers@lists.postgresql.org; Tue, 05 Oct 2021 19:15:55 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXpuo-0005ac-QW for pgsql-hackers@postgresql.org; Tue, 05 Oct 2021 19:15:54 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id B5B87581066; Tue, 5 Oct 2021 15:15:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 05 Oct 2021 15:15:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=7Ax9I/1HXC7i+eWP8q1KIsOq6jeWCdfmy44obIKQ2q8=; b=Q+LHoVih i6cg8BZR2RTneCk5tdY3zADkB4+SydAmgAEUUJweLIpOur8uK8Fw090spCFxht3M PSuozY9U3ESPJe20cNKKy7GZ7WWhK9ANcYwNf0vZ6WqsMg48qdFVeEM6+iJ7j3is vWT6GzfZxPpsRrOYAstwNZdqXqXwrxl76NQrABDWND5ru9fGi7cNRSmfygS55iSe 7AVLGZIta0TQcvceFBg+1m+ncRVGRwQ5huHj5Y7Id2MJQ4zptfm8ZronALlTFq22 SfNRwPxpqcBoav92TOdsbQT264Lst6cIUrJtsXctRRycvprmgs3gvQ2iFOKURNyO nYAwxabz4Q7vHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudelgedgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeev jedufeeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Oct 2021 15:15:46 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 42F862A0780; Tue, 5 Oct 2021 16:15:43 -0300 (-03) Date: Tue, 5 Oct 2021 16:15:43 -0300 From: Alvaro Herrera To: Stefan Keller Cc: Mark Rofail , Daniel Gustafsson , vignesh C , Alexander Korotkov , Andreas Karlsson , David Steele , Erik Rijkers , =?utf-8?B?SGFucy1Kw7xyZ2VuIFNjaMO2bmln?= , Joel Jacobson , Justin Pryzby , Michael Paquier , Robert Haas , Stephen Frost , Tom Lane , Zhihong Yu , pgsql-hackers Subject: Re: [HACKERS] GSoC 2017: Foreign Key Arrays Message-ID: <202110051915.agicatxbn36k@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Stefan, On 2021-Oct-03, Stefan Keller wrote: > Just for my understanding - and perhaps as input for the documentation of this: > Are Foreign Key Arrays a means to implement "Generic Foreign Keys" as > in Oracle [1] and Django [2], and of "Polymorphic Associations" as > they call this in Ruby on Rails? No -- at least as far as I was able to understand the pages you linked to. It's intended for array elements of one column to reference values in a scalar column. These are always specific columns, not "generic" or "polymorphic" (which I understand to mean one of several possible columns). Thanks, -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/