lines of code

Linking Paths and its geek sandbox
This is the geek sandbox of Linking Paths. Just tech stuff and code related topics.
  • November 2, 2011 4:29 pm

    "It is up to the database designer to define the channel names that will be used in a given database and what each one means. Commonly, the channel name is the same as the name of some table in the database, and the notify event essentially means, “I changed this table, take a look at it to see what’s new”. But no such association is enforced by the NOTIFY and LISTEN commands. For example, a database designer could use several different channel names to signal different sorts of changes to a single table. Alternatively, the payload string could be used to differentiate various cases."

    PostgreSQL 9.0: NOTIFY (via @tokumin)