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 1pIsau-0005rk-5D for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jan 2023 14:42:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIsas-00029i-W9 for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jan 2023 14:42:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIsas-00029V-Lt for pgsql-bugs@lists.postgresql.org; Fri, 20 Jan 2023 14:42:14 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIsaq-0002lj-Vy for pgsql-bugs@lists.postgresql.org; Fri, 20 Jan 2023 14:42:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sTtDvedaIvw/u5TIkG2SoYaxTtwhgNUAWlnipOa/MUc=; b=YrmAVHgXvqkKrMtoATJM7tenxA UlSgEq23TwBEeIt/0myDEFIiQfw/879Sqpc+9x9JOIP3+COvWqTpMvTS2EC7ixdntK4lhkcskc391 6MDzMfz39pHk0n28KD6MGGNRPHwinUTZzFWfwoHkBKRlzwlhZkoW5tNJyqwiQ3xriIks=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1pIsao-0081n2-Om; Fri, 20 Jan 2023 15:42:10 +0100 Date: Fri, 20 Jan 2023 15:42:10 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Liang Shen Cc: pgsql-bugs@lists.postgresql.org Subject: Re: ST_Union(rast, uniontype) treat bands with different classes as the same as first band Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jan 20, 2023 at 01:56:51PM +0000, Liang Shen wrote: > Related to https://trac.osgeo.org/postgis/ticket/2200 support multiple > bands issue > > If the $RASTER has bands like ARRAY['8BUI', '16BUI'], the result of > ``` > ST_Union( > $RASTER, > ARRAY[ > ROW(1, 'SUM'), > ROW(2, 'MAX') > ]::unionarg[] > ) > ``` > will be like ARRAY['8BUI', ' 8BUI']. > > ST_Union always uses the first band class to process the 2nd band and > ignore the original class. You might want to report this bug to postgis devs, as it's clearly not postgresql bug. Their page (https://postgis.net/support/) lists https://trac.osgeo.org/postgis as their bug tracker. depesz