Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtiRq-000354-V3 for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Sep 2017 22:53:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtiRp-0001uy-Qk for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Sep 2017 22:53:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtiQG-0007ci-Qo for pgsql-hackers@postgresql.org; Sun, 17 Sep 2017 22:52:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtiQ8-0000dk-PC for pgsql-hackers@postgresql.org; Sun, 17 Sep 2017 22:52:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8HMq5Or013831; Sun, 17 Sep 2017 18:52:05 -0400 From: Tom Lane To: Arthur Zakirov cc: Dmitry Dolgov <9erthalion6@gmail.com>, David Steele , Peter Eisentraut , PostgreSQL-development Subject: Re: [PATCH] Generic type subscripting In-reply-to: <20170917213427.GA4430@arthur.localdomain> References: <20170909213349.GA17898@arthur.localdomain> <4675.1505164755@sss.pgh.pa.us> <5907.1505166328@sss.pgh.pa.us> <20170916220454.GA15505@arthur.localdomain> <20170917213427.GA4430@arthur.localdomain> Comments: In-reply-to Arthur Zakirov message dated "Mon, 18 Sep 2017 00:34:29 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13829.1505688725.1@sss.pgh.pa.us> Date: Sun, 17 Sep 2017 18:52:05 -0400 Message-ID: <13830.1505688725@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Arthur Zakirov writes: > CREATE SUBSCRIPTING FOR type_name > INITFUNC = subscripting_init_func > FETCHFUNC = subscripting_fetch_func > ASSIGNFUNC = subscripting_assign_func > DROP SUBSCRIPTING FOR type_name Reasonable, but let's make the syntax more like other similar utility commands such as CREATE AGGREGATE --- basically just adding some parens, IIRC. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers