NixOS/nixpkgs — pull request #686 by ocharles (2013-06-27 13:12:30+00:00)
Title: Disable exec symlink resolution for PostgreSQL 9.2

When building PostgreSQL with plugins under NixOS, NixOS will create a
postgresql-and-plugins directory which symlinks PostgreSQL and all the plugins
into a single directory. Unfortunately, the plugins will not actually be usable
by PostgreSQL because it will still try and locate them in the original
PostgreSQL share directory, not postgresql-and-plugins.

In this commit, I have patched resolve_symlinks to always return success, which
matches the behavior if HAVE_READLINK is false (so presumably invalid paths are
never passed to this function).

--------

I haven't added this patch to all the other versions, as I wanted to discuss it first.