[COMMITTERS] pgsql: Tweak PQresStatus() to avoid a clang compiler warning.

2011-08-05 Thread Robert Haas
Tweak PQresStatus() to avoid a clang compiler warning. The previous test for status < 0 test is in fact testing nothing if the compiler considers an enum to be an unsigned data type. clang doesn't like tautologies, so do this instead. Report by Peter Geoghegan, fix as suggested by Tom Lane. Bra

[COMMITTERS] pgsql: Modestly improve pgbench's checking for invalid ranges.

2011-08-05 Thread Robert Haas
Modestly improve pgbench's checking for invalid ranges. The old check against MAX_RANDOM_VALUE is clearly irrelevant since getrand() no longer calls random(). Instead, check whether min and max are close enough together to avoid an overflow inside getrand(), as suggested by Tom Lane. This is sti

[COMMITTERS] pgsql: Allow per-column foreign data wrapper options.

2011-08-05 Thread Robert Haas
Allow per-column foreign data wrapper options. Shigeru Hanada, with fairly minor editing by me. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/c4096c76399ad99dce35cd62f60599ea8748a3dd Modified Files -- doc/src/sgml/catalogs.sgml |9 +

[COMMITTERS] pgsql: Reduce PG_SYSLOG_LIMIT to 900 bytes.

2011-08-05 Thread Tom Lane
Reduce PG_SYSLOG_LIMIT to 900 bytes. The previous limit of 1024 was set on the assumption that all modern syslog implementations have line length limits of 2KB or so. However, this is false, as at least Solaris and sysklogd truncate at only 1KB. 900 seems to leave enough room for the max likely

[COMMITTERS] pgsql: Reduce PG_SYSLOG_LIMIT to 900 bytes.

2011-08-05 Thread Tom Lane
Reduce PG_SYSLOG_LIMIT to 900 bytes. The previous limit of 1024 was set on the assumption that all modern syslog implementations have line length limits of 2KB or so. However, this is false, as at least Solaris and sysklogd truncate at only 1KB. 900 seems to leave enough room for the max likely

[COMMITTERS] pgsql: Fix thinko in documentation of local_preload_libraries.

2011-08-05 Thread Tom Lane
Fix thinko in documentation of local_preload_libraries. Somebody added a cross-reference to shared_preload_libraries, but wrote the wrong variable name when they did it (and didn't bother to make it a link either). Spotted by Christoph Anton Mitterer. Branch -- REL9_1_STABLE Details ---

[COMMITTERS] pgsql: Fix thinko in documentation of local_preload_libraries.

2011-08-05 Thread Tom Lane
Fix thinko in documentation of local_preload_libraries. Somebody added a cross-reference to shared_preload_libraries, but wrote the wrong variable name when they did it (and didn't bother to make it a link either). Spotted by Christoph Anton Mitterer. Branch -- master Details --- http:/

[COMMITTERS] pgsql: Fix thinko in documentation of local_preload_libraries.

2011-08-05 Thread Tom Lane
Fix thinko in documentation of local_preload_libraries. Somebody added a cross-reference to shared_preload_libraries, but wrote the wrong variable name when they did it (and didn't bother to make it a link either). Spotted by Christoph Anton Mitterer. Branch -- REL9_0_STABLE Details ---