Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btFas-0006vp-NR for pgsql-general@arkaria.postgresql.org; Sun, 09 Oct 2016 15:00:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btFar-0004Fs-MT for pgsql-general@arkaria.postgresql.org; Sun, 09 Oct 2016 15:00:49 +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_2) (envelope-from ) id 1btFYZ-0001X5-6H for pgsql-general@postgresql.org; Sun, 09 Oct 2016 14:58:27 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1btFYW-0001Sh-4a for pgsql-general@postgresql.org; Sun, 09 Oct 2016 14:58:26 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1btFYF-00080M-Bg for pgsql-general@postgresql.org; Sun, 09 Oct 2016 16:58:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Sebastian P. Luque Subject: Re: custom average window function failure Date: Sun, 09 Oct 2016 10:01:04 -0500 Organization: Church of Emacs Lines: 24 Message-ID: <87pon9va6n.fsf@otaria.sebmel.org> References: <87int2qkat.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:fJGY3WTNJ6xa2KmQSRLKNOWJmPw= X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) X-Pg-Spam-Score: -0.2 (/) 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 Sun, 9 Oct 2016 06:44:10 -0700, Adrian Klaver wrote: [...] > Not sure. When I tried using the above(on 9.5) it failed during the > CREATE OR REPLACE FUNCTION public.angle_vectors_avg stage with: > ERROR: type "vector" does not exist > So where is that coming from in your setup? Aw nuts, I forgot to include that type definition. Here it is: CREATE TYPE public.vector AS (angle double precision, magnitude double precision); COMMENT ON TYPE public.vector IS 'This type holds the basic descriptors of a vector; namely, angle and magnitude.'; -- Seb -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general