brianc/node-postgres

Using native bindings causes difference in notification object

makkeu opened this issue · 1 comments

When listening notifications, result message is different depending on what binding is used. With native bindings, message doesn't have name, length, or processId properties. Tested with version 4.5.1 and 5.0.0. pg-native version 1.10.0.

client.on('notification', function(msg) {
  // with js bindings msg contains name, length, processId, channel, payload
  // with native bindings msg only contains channel and payload
})

that's a known issue, at least the main part - parameter payload is there ;)