New NOTIFY functionality in PostgresDAC-2.6.0

Since new LISTEN/NOTIFY implementation now allows delivery of a string payload to listeners with each event, TPSQLNotify component from PostgresDAC suite should be changed to support this feature.

So the new event is added to class:

    TPSQLNotifyEventEx = procedure (Sender: TObject; 
        Channel: string; 
        Payload: string; 
        ProcessID : Integerof object;

property OnNotifyEx: TPSQLNotifyEventEx;

As you can notice former Event now called Channel. And new Payload argument were added. Old OnNotify event is still present for backward compatibility, but may be deprecated very soon.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s