As an alternative, you could use PL/pgSQL to create a custom function, and then pass one (or more) arguments to the query's "WHERE" clause dynamically. At the application level, this would allow users for example to <select> from a form, where the select <options> are populated using the results of a SELECT DISTINCT query.
-- View this message in context: http://postgis.17.n6.nabble.com/Very-large-WHERE-clause-tp4952906p4959028.html Sent from the PostGIS - User mailing list archive at Nabble.com. _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users