Not receive notification issued by postgresql database
I use postgresql under linux.
When I insert a record in a table a rule emit a NOTIFY.
On the application I connect this SIGNAL:
QSqlDatabase::database().driver()->subscribeToNotification(sName + _UPDATE_STRING);
QObject::connect((QObject*)QSqlDatabase::database( ).driver(), SIGNAL(notification(const QString&)), this, SLOT(Notification(const QString&)));
The problem is the all the instance running on the network intercept this signal but not the application itself that insert the record.
On windows non problem.
Suggestions?
Thanks
Teo
Re: Not receive notification issued by postgresql database
As I remember some bug in postgresql client code (not in Qt). All notifications will be delivered after closing connection.
Re: Not receive notification issued by postgresql database
Has anyone found a solution to this? I'm having the same problem.