Results 1 to 3 of 3

Thread: Not receive notification issued by postgresql database

  1. #1
    Join Date
    Dec 2011
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default 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

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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.

  3. #3
    Join Date
    Aug 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Not receive notification issued by postgresql database

    Has anyone found a solution to this? I'm having the same problem.

Similar Threads

  1. Issued in HelloWorld QT programming
    By sankar in forum Newbie
    Replies: 19
    Last Post: 1st March 2011, 06:19
  2. Replies: 2
    Last Post: 11th February 2011, 17:53
  3. Notification in KDE
    By mpele in forum KDE Forum
    Replies: 0
    Last Post: 23rd November 2009, 10:24
  4. Regading Driver to connect Postgresql Database
    By dummystories in forum Installation and Deployment
    Replies: 38
    Last Post: 12th March 2009, 07:19
  5. Replies: 5
    Last Post: 28th August 2006, 14:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.