This indicates an attack attempt against a buffer-overflow vulnerability in the PostgreSQL database server.
The vulnerability is caused by an error when the vulnerable software handles a specially crafted SQL substring function with malicious input. It allows a remote attacker to cause a denial of service (daemon crash).
PostgreSQL PostgreSQL 8.0.23
Denial of service
Apply the patch supplied by the vendor: