Andreas Pflug <Andreas(dot)Pflug(at)web(dot)de> writes:
> PostgreSQL 7.3.2
> CREATE DOMAIN testdom AS int4;
> CREATE TABLE testtab(testcol testdom);
> INSERT INTO testtab VALUES (1);
> INSERT INTO testtab VALUES (2);
> VACUUM ANALYZE testtab;
> SELECT * FROM testtab WHERE testcol > 1;
I've applied a patch to fix this.
regards, tom lane