[COMMITTERS] pgsql: Fix libpq's behavior when /etc/passwd isn't readable.

2015-01-11 Thread Tom Lane
Fix libpq's behavior when /etc/passwd isn't readable. Some users run their applications in chroot environments that lack an /etc/passwd file. This means that the current UID's user name and home directory are not obtainable. libpq used to be all right with that, so long as the database role name

[COMMITTERS] pgsql: Fix libpq's behavior when /etc/passwd isn't readable.

2015-01-11 Thread Tom Lane
Fix libpq's behavior when /etc/passwd isn't readable. Some users run their applications in chroot environments that lack an /etc/passwd file. This means that the current UID's user name and home directory are not obtainable. libpq used to be all right with that, so long as the database role name

[COMMITTERS] pgsql: Remove configure test for nonstandard variants of getpwuid_r().

2015-01-11 Thread Tom Lane
Remove configure test for nonstandard variants of getpwuid_r(). We had code that supposed that some platforms might offer a nonstandard version of getpwuid_r() with only four arguments. However, the 5-argument definition has been standardized at least since the Single Unix Spec v2, which is our n

[COMMITTERS] pgsql: Fix portability breakage in pg_dump.

2015-01-11 Thread Tom Lane
Fix portability breakage in pg_dump. Commit 0eea8047bf0e15b402b951e383e39236bdfe57d5 introduced some overly optimistic assumptions about what could be in a local struct variable's initializer. (This might in fact be valid code according to C99, but I've got at least one pre-C99 compiler that fall