arcapos / luapgsql

Lua binding for PostgreSQL
108 stars 24 forks source link

Handle failures in noticeReceiver/noticeProcessor #14

Open daurnimator opened 9 years ago

daurnimator commented 9 years ago

The current noticeReceiver and noticeProcessor use lua functions that may fail and longjmp out.

One option is to lua_pcall out to a second function.

Alternatively, only use functions that can't fail.