pgsql: Fix potentially-unportable code in contrib/adminpack.

2018-04-15 Thread Tom Lane
Fix potentially-unportable code in contrib/adminpack. Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and

pgsql: Fix potentially-unportable code in contrib/adminpack.

2018-04-15 Thread Tom Lane
Fix potentially-unportable code in contrib/adminpack. Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and

pgsql: Fix potentially-unportable code in contrib/adminpack.

2018-04-15 Thread Tom Lane
Fix potentially-unportable code in contrib/adminpack. Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and

pgsql: Fix potentially-unportable code in contrib/adminpack.

2018-04-15 Thread Tom Lane
Fix potentially-unportable code in contrib/adminpack. Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and

pgsql: Fix potentially-unportable code in contrib/adminpack.

2018-04-15 Thread Tom Lane
Fix potentially-unportable code in contrib/adminpack. Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and