Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btPWT-0005Yj-1a for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2016 01:36:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btPWR-0000kN-Db for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2016 01:36:55 +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 1btPU7-0006MX-5E for pgsql-general@postgresql.org; Mon, 10 Oct 2016 01:34:31 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1btPU3-0002gC-Sj for pgsql-general@postgresql.org; Mon, 10 Oct 2016 01:34:29 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id F1182203AF; Sun, 9 Oct 2016 21:34:25 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Sun, 09 Oct 2016 21:34:25 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=cV/KkRr3l2hSg27W3LIvyIya3tc=; b=D+hXeC RNYPnYyCWTU32Fo8dgf2QKlg/JYMx38fFM0UyOKrW4v/xwyNu42oK2vnNqBr3TIE DlOk+3d6l6TLRXddBb9Bt6CPTakNK7Nb1npEaz3RqXgePz2htoQko4Rwc20w2j4V E72D41SddIYuS+oY0PFKbZiSC4Jv/YjDOyy38= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=cV/KkRr3l2hSg27 W3LIvyIya3tc=; b=KNxY7nOkptBJhjLl/QRqWHSLPBS06Mm5NN3TQA8IXTkJthi WBw3But2AFIQGLNv2I1kOHl19lDt/a/ttajx0w7c52DhnpmIJ8+MDmnu9xgs/YG/ tzx73siB8HQaZosKtPDna+ZiXzJTFeTNgQW2NfGUwCVCsXc+zJbbvFR5mzRQ= X-Sasl-enc: gZ1NwXxqaaHCJKenkQUEggdAkmIvZhXy2uIGoTxjMvdn 1476063265 Received: from [192.168.1.2] (174-21-85-118.tukw.qwest.net [174.21.85.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 62B40F29CC; Sun, 9 Oct 2016 21:34:25 -0400 (EDT) Subject: Re: custom average window function failure To: Tom Lane References: <87int2qkat.fsf@gmail.com> <19183.1476027964@sss.pgh.pa.us> <1156e81d-0903-f453-6751-347d5105d4ca@aklaver.com> <4302.1476031209@sss.pgh.pa.us> Cc: Seb , pgsql-general@postgresql.org From: Adrian Klaver Message-ID: Date: Sun, 9 Oct 2016 18:34:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <4302.1476031209@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 On 10/09/2016 09:40 AM, Tom Lane wrote: > 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. Got it, thanks. > > regards, tom lane > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general