[COMMITTERS] pgsql: Fix pgbench's calculation of average latency, when -T is not use

2016-09-21 Thread Heikki Linnakangas
Fix pgbench's calculation of average latency, when -T is not used. If the test duration was given in # of transactions (-t or no option), rather as a duration (-T), the latency average was always printed as 0. It has been broken ever since the display of latency average was added, in 9.4. Fabien

[COMMITTERS] pgsql: Print test parameters like "foo: 123", and results like "foo = 1

2016-09-21 Thread Heikki Linnakangas
Print test parameters like "foo: 123", and results like "foo = 123". The way "latency average" was printed was differently if it was calculated from the overall run time or was measured on a per-transaction basis. Also, the per-script weight is a test parameter, rather than a result, so use the "w

[COMMITTERS] pgsql: Fix pgbench's calculation of average latency, when -T is not use

2016-09-21 Thread Heikki Linnakangas
Fix pgbench's calculation of average latency, when -T is not used. If the test duration was given in # of transactions (-t or no option), rather as a duration (-T), the latency average was always printed as 0. It has been broken ever since the display of latency average was added, in 9.4. Fabien

[COMMITTERS] pgsql: Fix pgbench's calculation of average latency, when -T is not use

2016-09-21 Thread Heikki Linnakangas
Fix pgbench's calculation of average latency, when -T is not used. If the test duration was given in # of transactions (-t or no option), rather as a duration (-T), the latency average was always printed as 0. It has been broken ever since the display of latency average was added, in 9.4. Fabien

[COMMITTERS] pgsql: Fix pgbench's calculation of average latency, when -T is not use

2016-09-21 Thread Heikki Linnakangas
Fix pgbench's calculation of average latency, when -T is not used. If the test duration was given in # of transactions (-t or no option), rather as a duration (-T), the latency average was always printed as 0. It has been broken ever since the display of latency average was added, in 9.4. Fabien

[COMMITTERS] pgsql: Print test parameters like "foo: 123", and results like "foo = 1

2016-09-21 Thread Heikki Linnakangas
Print test parameters like "foo: 123", and results like "foo = 123". The way "latency average" was printed was differently if it was calculated from the overall run time or was measured on a per-transaction basis. Also, the per-script weight is a test parameter, rather than a result, so use the "w

[COMMITTERS] pgsql: Add more parallel query documentation.

2016-09-21 Thread Robert Haas
Add more parallel query documentation. Previously, the individual settings were documented, but there was no overall discussion of the capabilities and limitations of the feature. Add that. Patch by me, reviewed by Peter Eisentraut and Álvaro Herrera. Branch -- master Details --- http:

[COMMITTERS] pgsql: Add more parallel query documentation.

2016-09-21 Thread Robert Haas
Add more parallel query documentation. Previously, the individual settings were documented, but there was no overall discussion of the capabilities and limitations of the feature. Add that. Patch by me, reviewed by Peter Eisentraut and Álvaro Herrera. Branch -- REL9_6_STABLE Details --

[COMMITTERS] pgsql: Fix typo

2016-09-21 Thread Peter Eisentraut
Fix typo From: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/c91b34bab19bdc4fca4de37cd37c8a4e79dae4d0 Modified Files -- src/include/pgstat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- Sent via pgsql-committers maili

[COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control

2016-09-21 Thread Peter Eisentraut
pg_ctl: Detect current standby state from pg_control pg_ctl used to determine whether a server was in standby mode by looking for a recovery.conf file. With this change, it instead looks into pg_control, which is potentially more accurate. There are also occasional discussions about removing rec

[COMMITTERS] pgsql: pg_ctl: Add wait option to promote action

2016-09-21 Thread Peter Eisentraut
pg_ctl: Add wait option to promote action When waiting is selected for the promote action, look into pg_control until the state changes, then use the PQping-based waiting until the server is reachable. Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/

[COMMITTERS] pgsql: Delay updating control file to "in production"

2016-09-21 Thread Peter Eisentraut
Delay updating control file to "in production" Move the updating of the control file to "in production" status until the point where WAL writes are allowed. Before, there could be a significant gap between the control file update and write transactions actually being allowed. This makes it more

[COMMITTERS] pgsql: Make command_like output more compact

2016-09-21 Thread Peter Eisentraut
Make command_like output more compact Consistently print the test name, not the full command, which can be quite lenghty and include temporary directory names and other distracting details. Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdif

[COMMITTERS] pgsql: pg_ctl: Add tests for promote action

2016-09-21 Thread Peter Eisentraut
pg_ctl: Add tests for promote action Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/eb5089a05ba0852cc3eafea53c5d23e7633fca81 Modified Files -- src/bin/pg_ctl/t/003_promote.pl | 39 +++ src