--- /dev/null
+<!-- BEGIN page_title_block -->
+Weekly News - May 16 2010
+<!-- END page_title_block -->
+
+<h1>PostgreSQL Weekly News - May 16 2010</h1>
+
+<p>
+Bug Fix Updates 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25 and 7.4.29 will
+be out soon. Get ready to upgrade!
+</p>
+
+<p>
+Elections for the PostgreSQL EU board are happening until May 23, 2010.
+<a href="https://www.postgresql.eu/elections/">https://www.postgresql.eu/elections/</a>
+</p>
+
+<p>
+Michael Renner will be speaking at Netways OSDC in Nuremberg, Germany,
+which will be June 23-24, 2010.
+<a href="http://www.netways.de/osdc/y2010/programm/">http://www.netways.de/osdc/y2010/programm/</a>
+</p>
+
+<p>
+PDXPUG Day will be July 18, 2010 at the Oregon Convention Center in
+Portland, OR. For more information, see:
+<a href="http://wiki.postgresql.org/wiki/PDXPUGDay2010">http://wiki.postgresql.org/wiki/PDXPUGDay2010</a>
+</p>
+
+<h2>PostgreSQL Product News</h2>
+<p>
+tail_n_mail 1.10.3, a Perl program for searching log files and
+mailing the results, released.
+<a href="http://bucardo.org/wiki/Tail_n_mail">http://bucardo.org/wiki/Tail_n_mail</a>
+</p>
+
+<p>
+neo_my2pg 0.8, a conversion utility from MySQL, released.
+<a href="http://pgfoundry.org/projects/my2postgres/">http://pgfoundry.org/projects/my2postgres/</a>
+</p>
+
+<p>
+pgAdmin 1.10.3, a GUI management tool for PostgreSQL, released.
+<a href="http://www.pgadmin.org/download/">http://www.pgadmin.org/download/</a>
+</p>
+
+<p>
+pgbouncer 1.3.3, a lightweight connection pooler for PostgreSQL, released.
+<a href="http://pgfoundry.org/projects/pgbouncer/">http://pgfoundry.org/projects/pgbouncer/</a>
+</p>
+
+<p>
+pglesslog 1.4.1, a set of tools to reduce the size of WALs, released.
+<a href="http://pglesslog.projects.postgresql.org/">http://pglesslog.projects.postgresql.org/</a>
+</p>
+
+<p>
+psycopg2 2.2.0, a Python connector for PostgreSQL, released.
+<a href="http://initd.org/psycopg/">http://initd.org/psycopg/</a>
+</p>
+
+<h2>PostgreSQL 9.0 Feature of the Week</h2>
+<p>
+pg_ctl now has an initdb option.
+</p>
+
+<h2>PostgreSQL Jobs for May</h2>
+<p>
+<a href="http://archives.postgresql.org/pgsql-jobs/2010-05/threads.php">http://archives.postgresql.org/pgsql-jobs/2010-05/threads.php</a>
+</p>
+
+<h2>PostgreSQL Local</h2>
+<p>
+PgCon 2010 will be held May 20-21 2010 in Ottawa with tutorials before
+on the 18th and 19th.
+<a href="http://www.pgcon.org/2010/registration.php">http://www.pgcon.org/2010/registration.php</a>
+</p>
+
+<p>
+Prague PostgreSQL Test Day will be May 21, 2010 in Prague, Czech Republic.
+<a href="http://www.nic.cz/page/747/test-the-new-beta-version-of-postgresql-in-the-cz.nic-laboratories/">http://www.nic.cz/page/747/test-the-new-beta-version-of-postgresql-in-the-cz.nic-laboratories/</a>
+</p>
+
+<p>
+Registration for Open Source Bridge is open and talks are announced!
+June 1-4, 2010 in Portland, Oregon.
+<a href="http://opensourcebridge.org/events/2010/proposals/">http://opensourcebridge.org/events/2010/proposals/</a>
+</p>
+
+<p>
+Michael Renner will be speaking at AMOOCON, which goes from June 4-6, 2010.
+<a href="http://www.amoocon.de/speakers/214">http://www.amoocon.de/speakers/214</a>
+</p>
+
+<p>
+SouthEast LinuxFest 2010 will take place in Spartanburg, SC USA on
+June 11-13. PostgreSQL gurus Joshua Drake and Andrew Dunstan will be
+giving some must-see PostgreSQL-related presentations.
+<a href="http://southeastlinuxfest.org/">http://southeastlinuxfest.org/</a>
+</p>
+
+<p>
+OSCON will take place in Portland, Oregon July 19-23, 2010.
+<a href="http://www.oscon.com/oscon2010">http://www.oscon.com/oscon2010</a>
+</p>
+
+<p>
+
+== PostgreSQL in the News ==
+</p>
+
+<p>
+Planet PostgreSQL: <a href="http://planet.postgresql.org/">http://planet.postgresql.org/</a>
+</p>
+
+<p>
+PostgreSQL Weekly News is brought to you this week by David Fetter
+and Devrim GUNDUZ.
+</p>
+
+<p>
+Submit news and announcements by Sunday at 3:00pm Pacific time.
+Please send English language ones to david@fetter.org, German language
+to pwn@pgug.de, Italian language to pwn@itpug.org. Spanish language
+to pwn@arpug.com.ar.
+</p>
+
+<h2>Applied Patches</h2>
+<p>
+Tom Lane committed:
+</p>
+
+<p>
+- In pgsql/src/backend/optimizer/plan/planagg.c, when adding a "target
+ IS NOT NULL" indexqual to the plan for an index-optimized MIN or
+ MAX, we must take care to insert the added qual in a legal place
+ among the existing indexquals, if any. The btree index AM requires
+ the quals to appear in index-column order. We didn't have to worry
+ about this before because "target IS NOT NULL" was just treated as a
+ plain scan filter condition; but as of 9.0 it can be an index qual
+ and then it has to follow the rule. Per report from Ian Barwick.
+</p>
+
+<p>
+- In pgsql/src/backend/optimizer/prep/prepunion.c, fix incorrect patch
+ that removed permission checks on inheritance child tables --- the
+ parent table no longer got checked, either. Per bug #5458 from
+ Takahiro Itagaki.
+</p>
+
+<p>
+- In pgsql/src/backend/postmaster/pgarch.c, cause the archiver process
+ to adopt new postgresql.conf settings (particularly archive_command)
+ as soon as possible, namely just before issuing a new call of
+ archive_command, even when there is a backlog of files to be
+ archived. The original coding would only absorb new settings after
+ clearing the backlog and returning to the outer loop. Per
+ discussion. Back-patch to 8.3. The logic in prior versions is a
+ bit different and it doesn't seem worth taking any risks of breaking
+ it.
+</p>
+
+<p>
+- Add PKST to the default set of timezone abbreviations. Per
+ discussion, if we have PKT in there then PKST should be too. Also,
+ fix mistaken claim that these abbrevs are not known to zic.
+</p>
+
+<p>
+- Update time zone data files to tzdata release 2010j: DST law changes
+ in Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco,
+ Pakistan, Palestine, Russia, Syria, Tunisia. Historical corrections
+ for Taiwan.
+</p>
+
+<p>
+- Clean up unnecessary unportability and compiler warnings by removing
+ the cmp parameter for pg_scandir(). The code failed to support this
+ anyway for Sun/Windows, so pretending we could accept a parameter
+ other than NULL was just asking for trouble.
+</p>
+
+<p>
+- Hook pg_upgrade into the contrib makefile structure so it gets built
+ on the buildfarm.
+</p>
+
+<p>
+- Preliminary release notes for releases 8.4.4, 8.3.11, 8.2.17,
+ 8.1.21, 8.0.25, 7.4.29.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade_support/Makefile, fix wrong subdir. Per
+ buildfarm.
+</p>
+
+<p>
+- Use "TOAST table" in place of the vague, not-used-elsewhere phrase
+ "supplementary storage table".
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/rules.sgml, use an entity instead of non-ASCII
+ letter. Thom Brown.
+</p>
+
+<p>
+- Fix up lame idea of not using autoconf to determine if platform has
+ scandir(). Should fix buildfarm failures.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade/file.c, spell __darwin__ correctly, to
+ suppress compiler warning on OSX.
+</p>
+
+<p>
+- In pg_upgrade, get rid of unsafe sprintf and snprintf usages. Per
+ compiler warnings.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade/controldata.c, remove another unsafe use
+ of random data as a format string.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade/info.c, fix another obvious bug pointed
+ out by a compiler warning.
+</p>
+
+<p>
+- In pgsql/src/include/port.h, spell __NetBSD__ the same way
+ everywhere. Per Giles Lean.
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/ref/pg_restore.sgml, improve documentation of
+ pg_restore's -l and -L switches to point out their interactions with
+ filtering switches, such as -n and -t. Per a complaint from Russell
+ Smith.
+</p>
+
+<p>
+- Ensure that pg_restore -l will output DATABASE entries whether or
+ not -C is specified. Per bug report from Russell Smith and ensuing
+ discussion. Since this is a corner case behavioral change, I'm
+ going to be conservative and not back-patch it. In passing, also
+ rename the RestoreOptions field for the -C switch to something less
+ generic than "create".
+</p>
+
+<p>
+ITAGAKI Takahiro committed:
+</p>
+
+<p>
+- In pgsql/src/backend/catalog/pg_proc.c, set per-function GUC
+ settings during validating the function. Now validators work
+ properly even when the settings contain parameters that affect
+ behavior of the function, like search_path. Reported by Erwin
+ Brandstetter.
+</p>
+
+<p>
+- In pgsql/src/backend/po/ja.po, remove CRs.
+</p>
+
+<p>
+Robert Haas committed:
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/ref/cluster.sgml, mention related ALTER TABLE
+ variants in documentation for CLUSTER. As suggested by Andy Lester.
+</p>
+
+<p>
+- In pgsql/src/include/utils/rbtree.h, change typedef for
+ rb_appendator to avoid conflict with C++ reserved words. Fixes a
+ complaint from src/tools/pginclude/cpluspluscheck reported by Peter
+ Eisentraut.
+</p>
+
+<p>
+- In pgsql/src/backend/postmaster/postmaster.c, we now accept
+ read-only connections in state PM_RECOVERY_CONSISTENT.
+</p>
+
+<p>
+- Rename PM_RECOVERY_CONSISTENT and PMSIGNAL_RECOVERY_CONSISTENT. The
+ new names PM_HOT_STANDBY and PMSIGNAL_BEGIN_HOT_STANDBY more
+ accurately reflect their actual function.
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/xfunc.sgml, fix longstanding typo in V1
+ calling conventions documentation. Erik Rijkers
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/xfunc.sgml, insert line breaks in two places
+ in SQL functions documentation. This avoids a formatting problem in
+ the PDF output. In the HTML output this isn't necessary, but we've
+ done similar things elsewhere in the documentation so I think it's
+ OK to do it here, too. I've refrained from breaking a longish error
+ message which also causes problems for the PDF output, because that
+ would make the HTML output look wrong. Erik Rijkers.
+</p>
+
+<p>
+Bruce Momjian committed:
+</p>
+
+<p>
+- Add pg_upgrade to /contrib; will be in 9.0 beta2. Add
+ documentation. Supports migration from PG 8.3 and 8.4.
+</p>
+
+<p>
+- Add pgsql/contrib/pg_upgrade/TODO file to CVS.
+</p>
+
+<p>
+- Add pgsql/contrib/pg_upgrade/IMPLEMENTATION file to CVS.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade/info.c, small formatting adjustment.
+</p>
+
+<p>
+- Add PGFILEDESC description to Makefiles for all /contrib
+ executables. Add PGAPPICON to all executable makefiles.
+</p>
+
+<p>
+- Move pg_upgrade TODO to TODO wiki.
+</p>
+
+<p>
+- In pgsql/src/backend/Makefile, remove Makefile PGFILEDESC tag that
+ the postmaster is an executable.
+</p>
+
+<p>
+- In pgsql/src/backend/Makefile, update comment about why postmaster
+ doesn't get an icon.
+</p>
+
+<p>
+- Move pg_upgrade shared library out into its own /contrib directory
+ (pg_upgrade_support).
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/release-9.0.sgml, update release notes to
+ current.
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/release-9.0.sgml, fix HISTORY.html build using
+ </link>, not </>.
+</p>
+
+<p>
+- In pgsql/doc/src/sgml/pgupgrade.sgml, comment out EnterpriseDB
+ Advanced Server mention in SGML docs.
+</p>
+
+<p>
+- Remove all mentions of EnterpriseDB Advanced Server from pg_upgrade;
+ EDB must maintain their own patch set for this.
+</p>
+
+<p>
+- Use NAMEDATALEN instead of local define. Modify path separators for
+ Win32. Per ideas from Takahiro Itagaki.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade/file.c, change bsdi define to __bsdi__.
+</p>
+
+<p>
+- Use __bsdi__ consistently.
+</p>
+
+<p>
+- In pgsql/contrib/pg_upgrade/file.c, adjust pg_upgrade BSD defines
+ for scandir(), per report from Giles Lean.
+</p>
+
+<p>
+Peter Eisentraut committed:
+</p>
+
+<p>
+- Update config.guess and config.sub.
+</p>
+
+<p>
+- Translation update
+</p>
+
+<p>
+- Fix vpath installation from distribution tarball (bug #5447)
+</p>
+
+<p>
+- In pgsql/src/nls-global.mk, avoid error from mkdir if no languages
+ are to be installed mkinstalldirs used to handle no arguments, but
+ mkdir doesn't. Also remove the .SILENT setting, that was previously
+ removed from Makefile.global as well.
+</p>
+
+<p>
+- Translation update
+</p>
+
+<p>
+Simon Riggs committed:
+</p>
+
+<p>
+- In pgsql/src/backend/tcop/postgres.c, give most recovery conflict
+ errors a retryable error code. From recent requests and discussions
+ with Yeb Havinga and Kevin Grittner.
+</p>
+
+<p>
+- Cleanup initialization of Hot Standby. Clarify working with
+ reanalysis of requirements and documentation on
+ LogStandbySnapshot(). Fixes two minor bugs reported by Tom Lane
+ that would lead to an incorrect snapshot after transaction
+ wraparound. Also fix two other problems discovered that would give
+ incorrect snapshots in certain cases. ProcArrayApplyRecoveryInfo()
+ substantially rewritten. Some minor refactoring of
+ xact_redo_apply() and ExpireTreeKnownAssignedTransactionIds().
+</p>
+
+<p>
+- In pgsql/src/backend/access/transam/xact.c, ensure that top level
+ aborts call XLogSetAsyncCommit(). Not doing so simply leads to data
+ waiting in wal_buffers which then causes later commits to
+ potentially do emergency writes and for all forms of replication to
+ be potentially delayed without need or benefit. Issue pointed out
+ exactly by Fujii Masao, following bug report by Robert Haas on a
+ separate though related topic.
+</p>
+
+<p>
+- Add many new Asserts in code and fix simple bug that slipped through
+ without them, related to previous commit. Report by Bruce Momjian.
+</p>
+
+<p>
+- In pgsql/src/backend/access/transam/xlog.c, fix bug in processing of
+ checkpoint time for max_standby_delay. Latest log time was
+ incorrectly set, typically leading to dates in the past, which would
+ cause more cancellations in Hot Standby on a quiet server.
+</p>
+
+<p>
+Andrew Dunstan committed:
+</p>
+
+<p>
+- In pgsql/src/tools/msvc/Mkvcbuild.pm, add missing library and
+ include support for pg_upgrade to MSVC build system.
+</p>
+
+<p>
+Magnus Hagander committed:
+</p>
+
+<p>
+- Fix some spelling errors. Thom Brown.
+</p>
+
+<p>
+- In pgsql/src/tools/msvc/Mkvcbuild.pm, properly support multi-line
+ entires (such as OBJS=) when building PROGRAM, not just MODULE, in
+ contrib.
+</p>
+
+<p>
+- Assorted fixes to make pg_upgrade build on MSVC. 1. There is no
+ chmod() on Windows. 2. Must always use the 3-parameter version of
+ open(). 3. There is no dynloader.h - but it also appears unnecessary
+ on all platforms. 4. Don't include shlobj.h because it causes compile
+ errors, and from what I can see it's not actually used. This may
+ need to be added back for mingw and/or cygwin in the worst case.
+</p>
+
+<p>
+Marc Fournier committed:
+</p>
+
+<p>
+- Tag 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25, 7.4.29.
+</p>
+
+<p>
+Heikki Linnakangas committed:
+</p>
+
+<p>
+- In pgsql/contrib/pg_standby/pg_standby.c, fix typos in comments,
+ spotted by Josh Kupershmidt.
+</p>
+
+<h2>Rejected Patches (for now)</h2>
+<p>
+Greg Sabino Mullane's patch to change pg_dump not to use CREATE OR
+REPLACE LANGUAGE when talking to pre-9.0 databases. There never was a
+guarantee that the output of pg_dump would be backward-compatible.
+</p>
+
+<h2>Pending Patches</h2>
+<p>
+ITAGAKI Takahiro sent in a patch to change the search_path check for
+function bodies to the current search_path, where they had been using
+the one at create time.
+</p>
+
+<p>
+Mike Fowler sent in a patch to add a function xpath_exists() for 9.1.
+</p>
+
+<p>
+Alexander Korotkov sent in two revisions of a patch to make the
+levenshtein distance function in contrib/fuzzystrmatch work with
+multibyte character sets in 9.1.
+</p>
+
+<p>
+Simon Riggs sent in a patch to change the startup code for Hot
+Standby.
+</p>
+
+<p>
+Stephen Frost sent in a patch to add a handler for SIGCHLD to psql.
+This is for 9.1.
+</p>
+
+<p>
+Simon Riggs sent in a patch to add a keepalive message to ensure
+max_standby_delay is useful. Heikki Linnakangas responded with one
+which rearranges the walsender loops slightly so that XLogSend() now
+only sends up to MAX_SEND_SIZE bytes (== XLOG_SEG_SIZE / 2) in one
+round and returns to the main loop after that even if there's unsent
+WAL, and the main loop no longer sleeps if there's unsent WAL. Simon
+Riggs sent in another with wait processing cleanup.
+</p>
+
+<p>
+Joachim Wieland sent in a patch to fix some locking behavior for 9.1
+in the case of SERIALIZABLE transactions.
+</p>
+
+<p>
+Robert Haas sent in a patch to implement a fix for smart shutdown in
+recovery.
+
+</p>
+