> Looks reasonable, although since the error is potentially user-facing
> I think we should put a bit more effort into the error message
> (use ereport and make it mention the index name, at least --- is there
> any other useful information we could give?)
Only sizes as it's done in BTree, I suppose.
> Will you apply this, or do you want me to?
I'm not able to provide a good error message in good English :(
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/