Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdkTL-00010p-Lt for pgsql-sql@arkaria.postgresql.org; Sun, 20 Sep 2015 19:40:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZdkTJ-0005ao-Fs for pgsql-sql@arkaria.postgresql.org; Sun, 20 Sep 2015 19:40:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZdkTG-0005ZI-KQ for pgsql-sql@postgresql.org; Sun, 20 Sep 2015 19:40:22 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZdkT9-00059r-Pr for pgsql-sql@postgresql.org; Sun, 20 Sep 2015 19:40:21 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 3815715F33CB for ; Sun, 20 Sep 2015 12:34:53 -0700 (PDT) Date: Sun, 20 Sep 2015 12:40:12 -0700 (MST) From: dave To: pgsql-sql@postgresql.org Message-ID: <1442778012511-5866585.post@n5.nabble.com> In-Reply-To: References: <1442747556700-5866560.post@n5.nabble.com> <55FEBBE0.8090902@gmail.com> <1442764637710-5866579.post@n5.nabble.com> Subject: Re: Recursive merging of overlapping arrays in a column MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hey David, funnny that you give me that advice because that's exactly where I came from. I tried analyzing a adjacence table with several disjunct graphs without real success, so I tried concatenating the values in the Table to arrays by grouping the ids and then aggregating the overlaping arrays to finally get the whole set of points for each graph as an array. I have never worked with graph functions before, so I might be missing some elegant solution here. My feeling was simply, that it would be easier to merge the arrays like I did in my current approach. Regards Dave -- View this message in context: http://postgresql.nabble.com/Recursive-merging-of-overlapping-arrays-in-a-column-tp5866560p5866585.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql