Fix/workaround https://www.illumos.org/issues/4277
Merge pull request #313 from pyhalov/postgresql84

Fix/workaround https://www.illumos.org/issues/4277