Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)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