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 1kn4KE-0002Fl-Ri for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Dec 2020 18:36:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kn4Ji-0000Qv-BM for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Dec 2020 18:35:58 +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 <9erthalion6@gmail.com>) id 1kn4Ji-0000Qo-2B for pgsql-hackers@lists.postgresql.org; Wed, 09 Dec 2020 18:35:58 +0000 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <9erthalion6@gmail.com>) id 1kn4Jd-0004XP-CD for pgsql-hackers@postgresql.org; Wed, 09 Dec 2020 18:35:56 +0000 Received: by mail-ej1-x641.google.com with SMTP id lt17so3605393ejb.3 for ; Wed, 09 Dec 2020 10:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=V48MVOkyapFD3pwbHsbc9LB2x5SgDo0dLEfmZ09TOCM=; b=Fdhm2Sx+stpxhqAK+Qji3kIw2DDeT4XBtNgs0b0zszdla4EW63TkW9P4swovpVgLvV zmJgFtZBSIfLAeU+h190hXywag2Qmikuf5FHjoKR+kr8EqTMVYgvwNQ/wAyeXOE3bova 5kYtgdMlXISeCNTcuN8ipmGe1xAhPD2S7wR+zG1jN74sFnebczQxycdYyHnne6HRbUXq gyb0/S8ZMy6dS8rdZLYXCjhoezy1Gk8oMwX5vtKdqamuf++vIPk8C4gKmvqm1JYcPdTn EOSIaTW2uBHluBIog6w/haTa0wrg2DVVbJPTZy4IQ8fdQYG/5au8by8KLuxjx47IML+f w3oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=V48MVOkyapFD3pwbHsbc9LB2x5SgDo0dLEfmZ09TOCM=; b=EFUON9arJgKKXl7yZ/g2ZtDen4snTIc+7ZNFPpxqYWPHv5xuG+U1I1pTmGSOctX8SX uTcyFcf+at0OnpF+F2O6It1ru+Cp5iOreZemRIv4pF2dZs65ESbgAc9eStgZ6u9NQO86 RmUYSGG05V5INEja3/uIJj8s8BrSiHGiBw76YjzJzbuWSntvDRUB6JeAYxMBHsj11zBu yx0kKpg2ZsG0jUAaf+fOqjIZJDZ4DiyLDFdu6Q+NbeywRD8NnW9mcPqkEqAVrQgl1lok fQFsUr3SaTIm7+m++M+WiL9m3Kp9tIGForFlLlGUQlwEPXjz5ZysFsxIgBImOmEvXH82 /AJw== X-Gm-Message-State: AOAM531UF2wtzqc+6MiJqdDu7jssf4Szz1T/QnBT6d/J9OTQ6uNWmpzf HVH2JrbJ+YShETmgrq8yywk= X-Google-Smtp-Source: ABdhPJybiYmgkdclB2ThK2ikSnFgBvU/eigkAMH2AKroZOxIDkst599txoXJTw5wK31N2ycKzEbHvw== X-Received: by 2002:a17:907:9d0:: with SMTP id bx16mr3387673ejc.426.1607538950554; Wed, 09 Dec 2020 10:35:50 -0800 (PST) Received: from localhost (dslb-094-222-016-204.094.222.pools.vodafone-ip.de. [94.222.16.204]) by smtp.gmail.com with ESMTPSA id dx7sm2196934ejb.120.2020.12.09.10.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 10:35:49 -0800 (PST) Date: Wed, 9 Dec 2020 19:37:04 +0100 From: Dmitry Dolgov <9erthalion6@gmail.com> To: Tom Lane Cc: Andres Freund , Pavel Stehule , Alexander Korotkov , Justin Pryzby , David Steele , Nikita Glukhov , Alvaro Herrera , David Fetter , Thomas Munro , Oleksandr Shulgin , Robert Haas , Michael Paquier , Oleg Bartunov , Peter Eisentraut , PostgreSQL Hackers Subject: Re: [HACKERS] [PATCH] Generic type subscripting Message-ID: <20201209183704.x5ue5rctdwmhmlmy@localhost> References: <2155075.1607096548@sss.pgh.pa.us> <2171753.1607106321@sss.pgh.pa.us> <3143742.1607368115@sss.pgh.pa.us> <20201207212142.wz5tnbk2jsaqzogb@alap3.anarazel.de> <3253106.1607443505@sss.pgh.pa.us> <20201209013003.hj4ealuvwmzvczs2@alap3.anarazel.de> <3459640.1607477907@sss.pgh.pa.us> <3544235.1607482944@sss.pgh.pa.us> <3635350.1607536188@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3635350.1607536188@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Wed, Dec 09, 2020 at 12:49:48PM -0500, Tom Lane wrote: > > I've pushed the core patch now. Thanks a lot! > The jsonb parts now have to be > rebased onto this design, which I'm assuming Dmitry will tackle Yes, I'm already on it, just couldn't keep up with the changes in this thread. > BTW, while reviewing the thread to write the commit message, > I was reminded of my concerns around the "is it a container" > business. As things stand, if type A has a typelem link to > type B, then the system supposes that A contains B physically; > this has implications for what's allowed in DDL, for example > (cf find_composite_type_dependencies() and other places). > We now have a feature whereby subscripting can yield a type > that is not contained in the source type in that sense. > I'd be happier if the "container" terminology were reserved for > that sort of physical containment, which means that I think a lot > of the commentary around SubscriptingRef is misleading. But I do > not have a better word to suggest offhand. Thoughts? I have only 'a composite'/'a compound' alternative in mind, but it's probably the same confusing as a container.