Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btH9C-00027d-0g for pgsql-general@arkaria.postgresql.org; Sun, 09 Oct 2016 16:40:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btH9B-0001pL-IM for pgsql-general@arkaria.postgresql.org; Sun, 09 Oct 2016 16:40:21 +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 1btH9A-0001oN-3K for pgsql-general@postgresql.org; Sun, 09 Oct 2016 16:40: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 1btH93-0001rQ-7v for pgsql-general@postgresql.org; Sun, 09 Oct 2016 16:40: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 u99Ge9Sf004303; Sun, 9 Oct 2016 12:40:10 -0400 From: Tom Lane To: Adrian Klaver cc: Seb , pgsql-general@postgresql.org Subject: Re: custom average window function failure In-reply-to: <1156e81d-0903-f453-6751-347d5105d4ca@aklaver.com> References: <87int2qkat.fsf@gmail.com> <19183.1476027964@sss.pgh.pa.us> <1156e81d-0903-f453-6751-347d5105d4ca@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Sun, 09 Oct 2016 09:23:28 -0700" Date: Sun, 09 Oct 2016 12:40:09 -0400 Message-ID: <4302.1476031209@sss.pgh.pa.us> X-Pg-Spam-Score: -4.6 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Adrian Klaver writes: > On 10/09/2016 08:46 AM, Tom Lane wrote: >> Clearly a bug --- the wrong type OIDs are being passed down to >> array_append. It should be told that it's getting called as > For my edification, why does this work?: On closer inspection, the error is only in the aggregate-used-as-window-function case, not plain aggregation. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general