agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-hackers@postgresql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [HACKERS] Listen/Notify payload and interfaces
Date: Wed, 17 Feb 2010 18:04:14 -0000
Message-ID: <06fb833dde8748d07bb996c39d221bd8@biglumber.com> (raw)
In-Reply-To: <dc7b844e1002170039l3746253bt923c8ff716a12b5c@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
> With the new listen/notify implementation we can send a payload along
> with the notification. This has been in the protocol already since
> years and there is no change needed for libpq. However we need to
> adapt the various interfaces to allow a payload to be sent and
> received.
DBD::Pg has been ready since 2008, if you need something to test with. :)
Usage is:
while (my $notify = $dbh->pg_notifies) {
my ($name, $pid, $payload) = @$notify;
print qq{I received notice "$name" from PID $pid, payload was "$payload"\n};
}
Not sure what you mean by adapting interfaces to send payloads, I imagine
most if not all simply require a NOTIFY to be sent via PQexec.
- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201002171302
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----
iEYEAREDAAYFAkt8L3oACgkQvJuQZxSWSsik0wCfZexc8ZU2/zo4JZQ47YblKend
yEMAoLdG4IS3pc163UVSpQ11/de+xzUT
=dx6+
-----END PGP SIGNATURE-----
view thread (6+ messages) latest in thread
Message-ID: <06fb833dde8748d07bb996c39d221bd8@biglumber.com>
Permalink: ../06fb833dde8748d07bb996c39d221bd8@biglumber.com/
Also on: postgresql.org/message-id/06fb833dde8748d07bb996c39d221bd8@biglumber.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: greg@turnstep.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Listen/Notify payload and interfaces
In-Reply-To: <06fb833dde8748d07bb996c39d221bd8@biglumber.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox