> Asserts on data-consistency checks aren't really a good idea.>> (IOW this is "can't happen" only as long as your database isn't> corrupt...)>
Then why not change this to an "ereport(PANIC ...)"?