X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CEF78D1B4ED for ; Mon, 6 Oct 2003 02:56:19 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 63654-01 for ; Sun, 5 Oct 2003 23:55:34 -0300 (ADT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id 73CB2D1B50D for ; Sun, 5 Oct 2003 23:55:29 -0300 (ADT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.1.5) with ESMTP-TLS id 410635; Sun, 05 Oct 2003 19:54:51 -0700 Message-ID: <3F80D8B1.7070407@joeconway.com> Date: Sun, 05 Oct 2003 19:51:29 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erwin Brandstetter Cc: pgsql-admin@postgresql.org Subject: Re: Return last value in of array (PostgreSQL 7.2.1) References: <200309231746.13757.scrawford@pinpointresearch.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/57 X-Sequence-Number: 10618 Erwin Brandstetter wrote: > Still the solution looks ugly and will perform likewise. PostgreSQL > urgently needs improvment on array handling. Hopefully new versions take > care of that (haven't tested 7.3+). 7.4 array functionality is significantly improved. Still room for more improvements, but well worth a look if you need to make use of arrays. See the following (not sure these urls will survive wrapping): http://developer.postgresql.org/docs/postgres/sql-expressions.html#SQL-SYNTAX-ARRAY-CONSTRUCTORS http://developer.postgresql.org/docs/postgres/arrays.html http://developer.postgresql.org/docs/postgres/functions-array.html http://developer.postgresql.org/docs/postgres/functions-comparisons.html HTH, Joe