nikolay(dot)nikitin(at)infowatch(dot)com writes:
> I execute select with "in" condition on the empty table.
> This select works with wrong plan.
> I think the wrong plan is chosen becose the postgres optimizer incorrectly
> calculates row count in the right plan.
I've pushed a patch that should improve matters for such cases.
Thanks for the report!
regards, tom lane