Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvlHd-0007IT-21 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2015 12:10:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZvlHb-0003QI-HX for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2015 12:10:47 +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) (envelope-from ) id 1ZvlGF-0001YL-U4 for pgsql-hackers@postgresql.org; Mon, 09 Nov 2015 12:09:24 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZvlGB-0001VI-RN for pgsql-hackers@postgresql.org; Mon, 09 Nov 2015 12:09:22 +0000 Received: from dinodell.localnet (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 7E8F721C42CA for ; Mon, 9 Nov 2015 15:09:18 +0300 (MSK) From: YUriy Zhuravlev To: pgsql-hackers@postgresql.org Subject: Re: Some questions about the array. Date: Mon, 09 Nov 2015 15:07:46 +0300 Message-ID: <3236232.FSDW0sV0Jy@dinodell> Organization: postgrespro User-Agent: KMail/4.14.10 (Linux/4.2.2-gentoo; KDE/4.14.13; x86_64; ; ) In-Reply-To: References: <2987745.PueTkqGxbO@dinodell> <2140159.HH0D5mDkSl@dinodell> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Pg-Spam-Score: -2.2 (--) 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 On Monday 09 November 2015 12:48:54 you wrote: > I am sorry - it is looking pretty obscure. Really need this feature? IMHO yes. Now for write: array[~2:~-2] you need like: array[array_lower(array, 1)+3: array_upper(array, 1)-2] Worse when long names. Besides the extra functions calls. Thanks. -- YUriy Zhuravlev Postgres Professional: http://www.postgrespro.com The Russian Postgres Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers