pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te

2018-04-29 Thread Tom Lane
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. While looking at a recent buildfarm failure in the ecpg tests, I wondered why the pg_regress output claimed the stderr part of the test failed, when the regression diffs were clearly for the stdout part. Looking into it, th

pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te

2018-04-29 Thread Tom Lane
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. While looking at a recent buildfarm failure in the ecpg tests, I wondered why the pg_regress output claimed the stderr part of the test failed, when the regression diffs were clearly for the stdout part. Looking into it, th

pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te

2018-04-29 Thread Tom Lane
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. While looking at a recent buildfarm failure in the ecpg tests, I wondered why the pg_regress output claimed the stderr part of the test failed, when the regression diffs were clearly for the stdout part. Looking into it, th

pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te

2018-04-29 Thread Tom Lane
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. While looking at a recent buildfarm failure in the ecpg tests, I wondered why the pg_regress output claimed the stderr part of the test failed, when the regression diffs were clearly for the stdout part. Looking into it, th

pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te

2018-04-29 Thread Tom Lane
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. While looking at a recent buildfarm failure in the ecpg tests, I wondered why the pg_regress output claimed the stderr part of the test failed, when the regression diffs were clearly for the stdout part. Looking into it, th

pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te

2018-04-29 Thread Tom Lane
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. While looking at a recent buildfarm failure in the ecpg tests, I wondered why the pg_regress output claimed the stderr part of the test failed, when the regression diffs were clearly for the stdout part. Looking into it, th

pgsql: Get still more info about Windows can't-reattach-to-shared-memor

2018-04-29 Thread Tom Lane
Get still more info about Windows can't-reattach-to-shared-memory errors. After some thought about the info captured so far, it seems possible that MapViewOfFileEx is itself causing some DLL to get loaded into the space just freed by VirtualFree. The previous commit here didn't capture enough inf

pgsql: Avoid wrong results for power() with NaN input on more platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on more platforms. Buildfarm results show that the modern POSIX rule that 1 ^ NaN = 1 is not honored on *BSD until relatively recently, and really old platforms don't believe that NaN ^ 0 = 1 either. (This is unsurprising, perhaps, since SUSv2 doesn'

pgsql: Avoid wrong results for power() with NaN input on more platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on more platforms. Buildfarm results show that the modern POSIX rule that 1 ^ NaN = 1 is not honored on *BSD until relatively recently, and really old platforms don't believe that NaN ^ 0 = 1 either. (This is unsurprising, perhaps, since SUSv2 doesn'

pgsql: Avoid wrong results for power() with NaN input on more platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on more platforms. Buildfarm results show that the modern POSIX rule that 1 ^ NaN = 1 is not honored on *BSD until relatively recently, and really old platforms don't believe that NaN ^ 0 = 1 either. (This is unsurprising, perhaps, since SUSv2 doesn'

pgsql: Avoid wrong results for power() with NaN input on more platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on more platforms. Buildfarm results show that the modern POSIX rule that 1 ^ NaN = 1 is not honored on *BSD until relatively recently, and really old platforms don't believe that NaN ^ 0 = 1 either. (This is unsurprising, perhaps, since SUSv2 doesn'

pgsql: Avoid wrong results for power() with NaN input on more platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on more platforms. Buildfarm results show that the modern POSIX rule that 1 ^ NaN = 1 is not honored on *BSD until relatively recently, and really old platforms don't believe that NaN ^ 0 = 1 either. (This is unsurprising, perhaps, since SUSv2 doesn'

pgsql: Avoid wrong results for power() with NaN input on more platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on more platforms. Buildfarm results show that the modern POSIX rule that 1 ^ NaN = 1 is not honored on *BSD until relatively recently, and really old platforms don't believe that NaN ^ 0 = 1 either. (This is unsurprising, perhaps, since SUSv2 doesn'

pgsql: Get more info about Windows can't-reattach-to-shared-memory erro

2018-04-29 Thread Tom Lane
Get more info about Windows can't-reattach-to-shared-memory errors. Commit 63ca350ef neglected to probe the state of things *before* the VirtualFree call, which now looks like it might be interesting. Discussion: https://postgr.es/m/[email protected] Branch -- master Details --

pgsql: Update time zone data files to tzdata release 2018d.

2018-04-29 Thread Tom Lane
Update time zone data files to tzdata release 2018d. DST law changes in Palestine and Antarctica (Casey Station). Historical corrections for Portugal and its colonies, as well as Enderbury, Jamaica, Turks & Caicos Islands, and Uruguay. Branch -- master Details --- https://git.postgresql

pgsql: Update time zone data files to tzdata release 2018d.

2018-04-29 Thread Tom Lane
Update time zone data files to tzdata release 2018d. DST law changes in Palestine and Antarctica (Casey Station). Historical corrections for Portugal and its colonies, as well as Enderbury, Jamaica, Turks & Caicos Islands, and Uruguay. Branch -- REL9_5_STABLE Details --- https://git.pos

pgsql: Update time zone data files to tzdata release 2018d.

2018-04-29 Thread Tom Lane
Update time zone data files to tzdata release 2018d. DST law changes in Palestine and Antarctica (Casey Station). Historical corrections for Portugal and its colonies, as well as Enderbury, Jamaica, Turks & Caicos Islands, and Uruguay. Branch -- REL_10_STABLE Details --- https://git.pos

pgsql: Update time zone data files to tzdata release 2018d.

2018-04-29 Thread Tom Lane
Update time zone data files to tzdata release 2018d. DST law changes in Palestine and Antarctica (Casey Station). Historical corrections for Portugal and its colonies, as well as Enderbury, Jamaica, Turks & Caicos Islands, and Uruguay. Branch -- REL9_6_STABLE Details --- https://git.pos

pgsql: Update time zone data files to tzdata release 2018d.

2018-04-29 Thread Tom Lane
Update time zone data files to tzdata release 2018d. DST law changes in Palestine and Antarctica (Casey Station). Historical corrections for Portugal and its colonies, as well as Enderbury, Jamaica, Turks & Caicos Islands, and Uruguay. Branch -- REL9_4_STABLE Details --- https://git.pos

pgsql: Update time zone data files to tzdata release 2018d.

2018-04-29 Thread Tom Lane
Update time zone data files to tzdata release 2018d. DST law changes in Palestine and Antarctica (Casey Station). Historical corrections for Portugal and its colonies, as well as Enderbury, Jamaica, Turks & Caicos Islands, and Uruguay. Branch -- REL9_3_STABLE Details --- https://git.pos

pgsql: Avoid wrong results for power() with NaN input on some platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on some platforms. Per spec, the result of power() should be NaN if either input is NaN. It appears that on some versions of Windows, the libc function does return NaN, but it also sets errno = EDOM, confusing our code that attempts to work around sho

pgsql: Avoid wrong results for power() with NaN input on some platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on some platforms. Per spec, the result of power() should be NaN if either input is NaN. It appears that on some versions of Windows, the libc function does return NaN, but it also sets errno = EDOM, confusing our code that attempts to work around sho

pgsql: Avoid wrong results for power() with NaN input on some platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on some platforms. Per spec, the result of power() should be NaN if either input is NaN. It appears that on some versions of Windows, the libc function does return NaN, but it also sets errno = EDOM, confusing our code that attempts to work around sho

pgsql: Avoid wrong results for power() with NaN input on some platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on some platforms. Per spec, the result of power() should be NaN if either input is NaN. It appears that on some versions of Windows, the libc function does return NaN, but it also sets errno = EDOM, confusing our code that attempts to work around sho

pgsql: Avoid wrong results for power() with NaN input on some platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on some platforms. Per spec, the result of power() should be NaN if either input is NaN. It appears that on some versions of Windows, the libc function does return NaN, but it also sets errno = EDOM, confusing our code that attempts to work around sho

pgsql: Avoid wrong results for power() with NaN input on some platforms

2018-04-29 Thread Tom Lane
Avoid wrong results for power() with NaN input on some platforms. Per spec, the result of power() should be NaN if either input is NaN. It appears that on some versions of Windows, the libc function does return NaN, but it also sets errno = EDOM, confusing our code that attempts to work around sho

pgsql: Cosmetic improvement: use BKI_DEFAULT and BKI_LOOKUP in pg_langu

2018-04-29 Thread Tom Lane
Cosmetic improvement: use BKI_DEFAULT and BKI_LOOKUP in pg_language. The point of this is not really to remove redundancy in pg_language.dat; with only three entries, it's hardly worth it. Rather, it is to get to a point where there are exactly zero hard-coded numeric pg_proc OID references in th