data type - Mailing list pgsql-general

From Nick Raj
Subject data type
Date
Msg-id AANLkTi=vLTPREUQ5ZqZkMEBSjuGLp7P12NL4ZA=hK+KT@mail.gmail.com
Whole thread Raw
Responses Re: data type  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-general
Hi,
I am writing some function in postgres pl/sql.

My function is of type St_ABC((select obj_geom from XYZ),(select boundary_geom from boundary))
I have table XYZ with 20,000 tuples and in boundary, i have only one geometry.

In postgres, ST_intersects(obj_geom, boundary_geom) checks each obj_geom with boundary_geom and returns true/false. It returns true/false 20,000 times
I want to write function that return only one true/false according to my calculation.

So, create or replace function ST_ABC(?????, geometry) returns boolean

Which type of data type will be used in above function (in place of ?????) that can collect more than one row(20,000) ?

Thanks
Raj

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: ERROR: invalid byte sequence for encoding "UTF8": 0xc35c
Next
From: Rob Sargent
Date:
Subject: close connection more expensive that open connection?