Volkan YAZICI wrote:
PQmakeEmptyPGresult() will return NULL if malloc() fails for required
PGresult struct.

Good catch. However, there's not much point having PQmakeEmptyPGresult() return NULL on OOM if the various call sites of the function within libpq don't check the return value and handle OOM themselves.

Some checking reveals that there are a few other bits of code in libpq that don't handle malloc() failures correctly. I'll take a look at fixing this today or tomorrow.


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
     joining column's datatypes do not match

Reply via email to