<vshahov@alliedtesting.com> writes:
> I have the problem:
> the code sending empty binary array works on 8.3 and 8.4
> but stopped working on postgres 9.0 beta2/3/4, it fails with '22003','integer out of range error'.
I think you are right --- this rejects dim[i] == 0, but it should not.
regards, tom lane