postgresql/src/backend
Tom Lane 55c3a04d60 Fix assorted breakage in to_char()'s OF format option.
In HEAD, fix incorrect field width for hours part of OF when tm_gmtoff is
negative.  This was introduced by commit 2d87eedc1d as a result of
falsely applying a pattern that's correct when + signs are omitted, which
is not the case for OF.

In 9.4, fix missing abs() call that allowed a sign to be attached to the
minutes part of OF.  This was fixed in 9.5 by 9b43d73b3f, but for
inscrutable reasons not back-patched.

In all three versions, ensure that the sign of tm_gmtoff is correctly
reported even when the GMT offset is less than 1 hour.

Add regression tests, which evidently we desperately need here.

Thomas Munro and Tom Lane, per report from David Fetter
2016-03-17 15:50:33 -04:00
..
access Fix typos. 2016-03-15 18:06:11 -04:00
bootstrap Provide much better wait information in pg_stat_activity. 2016-03-10 12:44:09 -05:00
catalog Add simple VACUUM progress reporting. 2016-03-15 13:32:56 -04:00
commands Fix problems in commit c16dc1aca5. 2016-03-16 13:54:04 -04:00
executor Avoid incorrectly indicating exclusion constraint wait 2016-03-15 18:04:39 -04:00
foreign Remove a couple of useless pstrdup() calls. 2016-03-09 23:29:05 -05:00
lib Add two HyperLogLog functions 2016-01-19 17:40:15 -03:00
libpq Fix typos. 2016-03-15 18:06:11 -04:00
main Avoid crash on old Windows with AVX2-capable CPU for VS2013 builds 2016-03-10 14:10:18 +01:00
nodes Rethink representation of PathTargets. 2016-03-14 16:59:59 -04:00
optimizer Fix typos. 2016-03-17 07:26:20 -04:00
parser Fix typos. 2016-03-15 18:06:11 -04:00
po Translation updates 2015-06-28 23:56:55 -04:00
port Windows: Make pg_ctl reliably detect service status 2016-01-07 11:59:08 -03:00
postmaster Another comment update. 2016-03-16 14:28:25 -04:00
regex Suppress compiler warnings about useless comparison of unsigned to zero. 2016-02-15 17:12:16 -05:00
replication Provide much better wait information in pg_stat_activity. 2016-03-10 12:44:09 -05:00
rewrite Improve error message for rejecting RETURNING clauses with dropped columns. 2016-02-29 19:11:38 -05:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Add idle_in_transaction_session_timeout. 2016-03-16 11:30:45 -04:00
tcop Add idle_in_transaction_session_timeout. 2016-03-16 11:30:45 -04:00
tsearch Improve support of Hunspell 2016-03-17 17:23:38 +03:00
utils Fix assorted breakage in to_char()'s OF format option. 2016-03-17 15:50:33 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Add support for systemd service notifications 2016-02-02 21:04:29 -05:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00