wildcard support for pgsql, with the exception of the "count" operator.  that will be tough.