Search Postgresql Archives

Re: custom average window function failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 9 Oct 2016 06:44:10 -0700,
Adrian Klaver <adrian.klaver@xxxxxxxxxxx> 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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux