[COMMITTERS] pgsql: Reduce delay for last logicalrep feedback message when master go

2017-07-01 Thread Tom Lane
Reduce delay for last logicalrep feedback message when master goes idle. The regression tests contain numerous cases where we do some activity on a master server and then wait till the slave has ack'd flushing its copy of that transaction. Because WAL flush on the slave is asynchronous to the log

[COMMITTERS] pgsql: Shorten timeouts while waiting for logicalrep worker slot attach

2017-07-01 Thread Tom Lane
Shorten timeouts while waiting for logicalrep worker slot attach/detach. When waiting for a logical replication worker process to start or stop, we have to busy-wait until we see it add or remove itself from the LogicalRepWorker slot in shared memory. Those loops were using a one-second delay bet

[COMMITTERS] pgsql: Clean up misuse and nonuse of poll_query_until().

2017-07-01 Thread Tom Lane
Clean up misuse and nonuse of poll_query_until(). Several callers of PostgresNode::poll_query_until() neglected to check for failure; I do not think that's optional. Also, rewrite one place that had reinvented poll_query_until() for no very good reason. Branch -- master Details --- http

[COMMITTERS] pgsql: Refine memory allocation in ICU conversions

2017-07-01 Thread Peter Eisentraut
Refine memory allocation in ICU conversions The simple calculations done to estimate the size of the output buffers for ucnv_fromUChars() and ucnv_toUChars() could overflow int32_t for large strings. To avoid that, go the long way and run the function first without an output buffer to get the cor

[COMMITTERS] pgsql: doc: Document that logical replication supports synchronous repl

2017-07-01 Thread Peter Eisentraut
doc: Document that logical replication supports synchronous replication Update the documentation a bit to include that logical replication as well as other and third-party replication clients can participate in synchronous replication. Branch -- master Details --- https://git.postgresql.