Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com> writes:
>> I tried your code in Postgres 8.2:
> 8.2 ?, Seems you have tested it in very Old version.
Indeed. The example works OK for me too, in 8.2.23 which is the last of
that release branch.
regards, tom lane