mirror of https://github.com/postgres/postgres
With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, PostgreSQL backends can crash at exit. Raise a warning during "configure" based on the compile-time OpenLDAP version number, and test the crash scenario in the dblink test suite. Back-patch to 9.0 (all supported versions).pull/14/head
parent
24e786f056
commit
d7cdf6ee36
@ -0,0 +1 @@ |
|||||||
|
/paths.out |
@ -0,0 +1,14 @@ |
|||||||
|
-- Initialization that requires path substitution. |
||||||
|
|
||||||
|
CREATE FUNCTION putenv(text) |
||||||
|
RETURNS void |
||||||
|
AS '@libdir@/regress@DLSUFFIX@', 'regress_putenv' |
||||||
|
LANGUAGE C STRICT; |
||||||
|
|
||||||
|
CREATE FUNCTION wait_pid(int) |
||||||
|
RETURNS void |
||||||
|
AS '@libdir@/regress@DLSUFFIX@' |
||||||
|
LANGUAGE C STRICT; |
||||||
|
|
||||||
|
CREATE FUNCTION set_pgservicefile(text) RETURNS void LANGUAGE SQL |
||||||
|
AS $$SELECT putenv('PGSERVICEFILE=@abs_srcdir@/' || $1)$$; |
@ -0,0 +1,11 @@ |
|||||||
|
-- Initialization that requires path substitution. |
||||||
|
CREATE FUNCTION putenv(text) |
||||||
|
RETURNS void |
||||||
|
AS '@libdir@/regress@DLSUFFIX@', 'regress_putenv' |
||||||
|
LANGUAGE C STRICT; |
||||||
|
CREATE FUNCTION wait_pid(int) |
||||||
|
RETURNS void |
||||||
|
AS '@libdir@/regress@DLSUFFIX@' |
||||||
|
LANGUAGE C STRICT; |
||||||
|
CREATE FUNCTION set_pgservicefile(text) RETURNS void LANGUAGE SQL |
||||||
|
AS $$SELECT putenv('PGSERVICEFILE=@abs_srcdir@/' || $1)$$; |
@ -0,0 +1,7 @@ |
|||||||
|
# pg_service.conf for minimally exercising libpq use of LDAP. |
||||||
|
|
||||||
|
# Having failed to reach an LDAP server, libpq essentially ignores the |
||||||
|
# "service=test_ldap" in its connection string. Contact the "discard" |
||||||
|
# service; the test works whether or not it answers. |
||||||
|
[test_ldap] |
||||||
|
ldap://127.0.0.1:9/base?attribute?one?filter |
@ -0,0 +1 @@ |
|||||||
|
/paths.sql |
Loading…
Reference in new issue