Closed daurnimator closed 7 years ago
This won't work easily, since a wrapper function gets installed that calls a Lua function. I wonder if it's worth the effort to make it 100% compatible to libpq here. To you use this feature?
I was thinking you'd just return the previous value of (e.g.) __pgsqlNoticeReceiver
As luapgsql 'owns' the PGConn
object; you probably can assume that the notice receiver will always be yours...
I think this can well be dealt with in Lua itself.
http://www.postgresql.org/docs/current/static/libpq-notice-processing.html