[COMMITTERS] pgsql: Fix possible leak of semaphore count.

2017-01-05 Thread Robert Haas
Fix possible leak of semaphore count. Commit 4aec49899e5782247e134f94ce1c6ee926f88e1c reorganized the order of operations here so that we no longer increment the number of "extra waits" before locking the semaphore, but it did not change the starting value of extraWaits from 0 to -1 to compensate.

[COMMITTERS] pgsql: Fix possible leak of semaphore count.

2017-01-05 Thread Robert Haas
Fix possible leak of semaphore count. Commit 4aec49899e5782247e134f94ce1c6ee926f88e1c reorganized the order of operations here so that we no longer increment the number of "extra waits" before locking the semaphore, but it did not change the starting value of extraWaits from 0 to -1 to compensate.

[COMMITTERS] pgsql: Use 'use strict' in all Perl programs

2017-01-05 Thread Peter Eisentraut
Use 'use strict' in all Perl programs Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/933b46644c787ed0b763532951961361e9304095 Modified Files -- contrib/seg/seg-validate.pl| 35 +++--- contrib/seg/sort-segments.pl | 10 +--

[COMMITTERS] pgsql: Fix possible crash reading pg_stat_activity.

2017-01-05 Thread Robert Haas
Fix possible crash reading pg_stat_activity. With the old code, a backend that read pg_stat_activity without ever having executed a parallel query might see a backend in the midst of executing one waiting on a DSA LWLock, resulting in a crash. The solution is for backends to register the tranche

[COMMITTERS] pgsql: Fix handling of empty arrays in array_fill().

2017-01-05 Thread Tom Lane
Fix handling of empty arrays in array_fill(). array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arr

[COMMITTERS] pgsql: Fix handling of empty arrays in array_fill().

2017-01-05 Thread Tom Lane
Fix handling of empty arrays in array_fill(). array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arr

[COMMITTERS] pgsql: Fix handling of empty arrays in array_fill().

2017-01-05 Thread Tom Lane
Fix handling of empty arrays in array_fill(). array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arr

[COMMITTERS] pgsql: Fix handling of empty arrays in array_fill().

2017-01-05 Thread Tom Lane
Fix handling of empty arrays in array_fill(). array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arr

[COMMITTERS] pgsql: Fix handling of empty arrays in array_fill().

2017-01-05 Thread Tom Lane
Fix handling of empty arrays in array_fill(). array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arr

[COMMITTERS] pgsql: Fix handling of empty arrays in array_fill().

2017-01-05 Thread Tom Lane
Fix handling of empty arrays in array_fill(). array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arr

[COMMITTERS] pgsql: Fix format for TAP test docs

2017-01-05 Thread Simon Riggs
Fix format for TAP test docs Small number of fixes to perl docs for TAP tests. Plus two comments that use "xlog" rather than WAL Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/2e44f379bc0219f6864dbfb901129796e6feec44 Modified Files -- s