use numeric error code for detecting unique violations on sl_nodelock
authorSteve Singer <ssinger@ca.afilias.info>
Thu, 30 Aug 2012 18:49:33 +0000 (14:49 -0400)
committerSteve Singer <ssinger@ca.afilias.info>
Thu, 30 Aug 2012 18:49:33 +0000 (14:49 -0400)
commit532718f4b72ce25261dbace40d05db4c7b4533a5
treed14e8035bd63a376753b8aa4757e68f9c460d7fa
parent079495efe06825006fee656e172b2e99fe1fcf99
use numeric error code for detecting unique violations on sl_nodelock

The text of the error message has changed slightly in different postgresql
versions, ie 8.3+.  Using the numeric error code will protect us from this.
This fixes bug 276.
RELEASE
src/slon/local_listen.c