"Rajan Bhide" <rbhide(at)nulinkinc(dot)com> writes:
> Postgres Version : 7.2.4
> PQsendQuery() -- query is too long. Maximum length is 16382.
That error message has not existed in libpq since sometime before 7.0.
Better take another look at the age of your client-side code.
regards, tom lane