== PostgreSQL Weekly News - March 10 2013 ==
== PostgreSQL Jobs for March ==
== PostgreSQL Local ==
PyPgDay will be held on March 13th at the Santa Clara Convention
Center, the first day of PyCon. Info here:
PGDay NYC 2013 will be held on March 22, 2013 in New York City.
PG Day France is the major French-speaking PostgreSQL community event.
The deadline for sending proposals is Saturday, March 24, 2013 at
PostgreSQL Session will be held on March 28th, 2013 in Paris,
France. The Call for Papers is open.
PGCon 2013 will be held May 23-24 2013, in Ottawa at the University of
The 6th annual "Prague PostgreSQL Developers Day" conference,
organized by CSPUG (Czech and Slovak PostgreSQL Users Group), will be
held on May 30, 2013 at Faculty of Mathematics and Physics, Charles
University (Malostranske namesti 25, Prague). The CfP is open until
April 14, 2013 . More information in Czech is at
The Call for Papers for PostgreSQL Brazil, to be held August 15-17,
2013 in Porto Velho, RO, Brazil, is open. Proposals are due by March
== PostgreSQL in the News ==
Planet PostgreSQL: http://planet.postgresql.org/
PostgreSQL Weekly News is brought to you this week by David Fetter
Submit news and announcements by Sunday at 3:00pm Pacific time.
Please send English language ones to [email protected], German language
to [email protected], Italian language to [email protected] Spanish language
to [email protected]
== Applied Patches ==
Magnus Hagander pushed:
- Remove accidentally-committed .orig file.
Author: Kevin Grittner
- psql: Let \l accept a pattern. reviewed by Satoshi Nagayasu
Author: Peter Eisentraut
- Report pg_hba line number and contents when users fail to log in.
Instead of just reporting which user failed to log in, log both the
line number in the active pg_hba.conf file (which may not match
reality in case the file has been edited and not reloaded) and the
contents of the matching line (which will always be correct), to
make it easier to debug incorrect pg_hba.conf files. The message to
the client remains unchanged and does not include this information,
to prevent leaking security sensitive information. Reviewed by Tom
Lane and Dean Rasheed
Tom Lane pushed:
- Fix overflow check in tm2timestamp (this time for sure). I fixed
this code back in commit 841b4a2d5, but didn't think carefully
enough about the behavior near zero, which meant it improperly
rejected 1999-12-31 24:00:00. Per report from Magnus Hagander.
- Fix to_char() to use ASCII-only case-folding rules where
appropriate. formatting.c used locale-dependent case folding rules
in some code paths where the result isn't supposed to be
locale-dependent, for example to_char(timestamp, 'DAY'). Since the
source data is always just ASCII in these cases, that usually didn't
matter ... but it does matter in Turkish locales, which have unusual
treatment of "i" and "I". To confuse matters even more, the
misbehavior was only visible in UTF8 encoding, because in
single-byte encodings we used pg_toupper/pg_tolower which don't have
locale-specific behavior for ASCII characters. Fix by providing
intentionally ASCII-only case-folding functions and using these
where appropriate. Per bug #7913 from Adnan Dursun. Back-patch to
all active branches, since it's been like this for a long time.
- Fix missing #include in commands/matview.h. It needs parsenodes.h
to be compilable regardless of previous headers.
- Arrange to cache FdwRoutine structs in foreign tables' relcache
entries. This saves several catalog lookups per reference. It's
not all that exciting right now, because we'd managed to minimize
the number of places that need to fetch the data; but the upcoming
writable-foreign-tables patch needs this info in a lot more places.
- Fix infinite-loop risk in fixempties() stage of regex compilation.
The previous coding of this function could get into situations where
it would never terminate, because successive passes would re-add
EMPTY arcs that had been removed by the previous pass. Rewrite the
function completely using a new algorithm that is guaranteed to
terminate, and also seems to be usually faster than the old one.
Per Tcl bugs 3604074 and 3606683. Tom Lane and Don Porter
- Support writable foreign tables. This patch adds the core-system
infrastructure needed to support updates on foreign tables, and
extends contrib/postgres_fdw to allow updates against remote
Postgres servers. There's still a great deal of room for
improvement in optimization of remote updates, but at least there's
basic functionality there now. KaiGai Kohei, reviewed by Alexander
Korotkov and Laurenz Albe, and rather heavily revised by Tom Lane.
- Band-aid for regression test expected-results problem with
timestamptz. We probably need to tell the remote server to use
specific timezone and datestyle settings, and maybe other things.
But for now let's just hack the postgres_fdw regression test to not
provoke failures when run in non-EST5EDT environments. Per
Kevin Grittner pushed:
- Bump catversion because of new function in the materialized view
- Fix broken pg_dump for 9.0 and 9.1 caused by the MV patch. Per
report and suggestion from Bernd Helmle
- Add docs for pg_matviews, which were missed in the initial MV
- WAL-log the extension of a new empty MV heap which is being
populated. This page with no tuples is used to distinguish an MV
containing a zero-row resultset of its backing query from an MV
which has not been populated by its backing query. Unless
WAL-logged, recovery and hot standby don't work correctly with what
should be an empty but scannable materialized view. Fixes bugs
reported by Fujii Masao in testing MVs on hot standby.
- Fix typo in docs for ALTER MATERIALIZED VIEW. Fujii Masao
Andrew Dunstan pushed:
- Remove dependency on the DLL of pythonxx.def file. This confused
Cygwin's make because of the colon in the path. The DLL isn't likely
to change under us so preserving the dependency doesn't gain us
much, and it's useful to be able to do a native Windows build with
the Cygwin mingw toolset. Noah Misch.
- Fix message typo.
- JSON generation improvements. This adds the following:
json_agg(anyrecord) -> json to_json(any) -> json
hstore_to_json(hstore) -> json (also used as a cast)
hstore_to_json_loose(hstore) -> json The last provides heuristic
treatment of numbers and booleans. Also, in json generation, if any
non-builtin type has a cast to json, that function is used instead
of the type's output function. Andrew Dunstan, reviewed by Steve
Singer. Catalog version bumped.
Peter Eisentraut pushed:
- pg_ctl: Add comma to message
- Adjust nls.mk for split out of wait_error.c
- pg_basebackup: Add missing newlines to several error messages
- pg_ctl: Adjust nls.mk for split out of wait_error.c
- Add fe_memutils.c to nls.mk where used
- doc: Add note about checkpoint_warning vs checkpoint_timeout.
suggested by Tianyin Xu
Robert Haas pushed:
- Code beautification for object-access hook machinery. KaiGai Kohei
Heikki Linnakangas pushed:
- Fix tli history file fetching, broken by the archive after crash
recevery patch. If we were about to enter archive recovery after
crash recovery, we scanned the archive for the latest tli history
file, and set the recovery target timeline to that. However, when we
actually tried to read the history file, we would not fetch the file
from the archive, because we were not in archive recovery yet. To
fix, make readTimeLineHistory and existsTimeLineHistory to always
fetch the file from archive if archive recovery is requested, even
if we're not in archive recovery yet. Backpatch to 9.2. Mitsumasa
- Remove unnecessary #ifdef FRONTEND check to choose between strdup
and pstrdup. The libpgcommon patch made that unnecessary, palloc
and friends are now available in frontend programs too, mapped to
plain old malloc. As pointed out by Alvaro Herrera.
- SP-GiST support of the range adjacent operator -|-. Alexander
Korotkov, reviewed by Jeff Davis.
- Forgot catversion bump in the SP-GiST adjacent support patch.
== Rejected Patches (for now) ==
No one was disappointed this week :-)
== Pending Patches ==
Alvaro Herrera sent in three more revisions of a patch to handle
sql_drop in event triggers.
Michael Paquier sent in nine more revisions of a patch to add REINDEX
Joachim Wieland sent in another revision of a patch to implement
Peter Eisentraut sent in another revision of a patch to implement an
idempotent option for pg_dump.
Heikki Linnakangas sent in another revision of a patch to optimize
Kyotaro HORIGUCHI sent in another revision of a patch to fix the width
specifier in format().
Heikki Linnakangas and Amit Kapila traded patches to improve WAL
performance by reducing the amount of same written in updates.
Amit Kapila sent in another revision of a patch to enable changing
postgresql.conf parameters via SQL.
Laurenz Albe sent in another revision of a patch to clarify some of
the documentation on floating point.
Ian Barwick sent in a patch to clarify the CREATE TRIGGER
Jeff Davis and Greg Smith traded patches to enable page checksums.
Robins sent in a patch to add a simple test of psql to "make check".
Sent via pgsql-announce mailing list ([email protected])
To make changes to your subscription: