Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> Ok, maybe another workaround might be adding a checking for cmax in
> the subselect:
> SELECT INTO myid i FROM t1 WHERE i = (SELECT i FROM t1 WHERE i = 1);
> to make sure that cmax > 0?
Huh? How would that help?
regards, tom lane