User: Password:
Subscribe / Log in / New account

== PostgreSQL Weekly News - April 14 2013 ==

From:  David Fetter <>
To:  PostgreSQL Announce <>
Subject:  [ANNOUNCE] == PostgreSQL Weekly News - April 14 2013 ==
Date:  Sun, 14 Apr 2013 19:32:59 -0700
Message-ID:  <>
Archive-link:  Article

== PostgreSQL Weekly News - April 14 2013 ==

Postgres-XC is going to have its first user/developer meeting after
the cluster summit.

== PostgreSQL Product News ==

Ora2PG 11.1, a migration system for moving from Oracle to PostgreSQL, released.

pg_activity 1.0.1 released.

== PostgreSQL Jobs for April ==

== PostgreSQL Local ==

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 <info AT p2d2 DOT cz>.  More information in Czech is at

PG Day France is the major French-speaking PostgreSQL community event.
It will be held June 13, 2013 in Nantes, France.

The CfPs for Char(13) and PGday UK, July 11 and 12, 2013,
respectively, are out and close April 19, 2013.  For Char(13), write
speakers AT char13 DOT info; for PGday UK, speakers AT
postgresqlusergroup DOT org DOT uk.

PostgreSQL Brazil will be held August 15-17, 2013 in Porto Velho, RO,

Save The Date!
Postgres Open 2013 will be in Chicago, IL, USA, September 16-18.
    Hotel Sax:
    Early Bird registration:

PGConf.EU 2013 will be held on Oct 29-Nov 1, in at the Conrad Hotel in
downtown Dublin, Ireland.

== PostgreSQL in the News ==

Planet PostgreSQL:

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, German language
to, Italian language to  Spanish language

== Applied Patches ==

Simon Riggs pushed:

- Skip extraneous locking in XLogCheckBuffer().  Heikki reported
  comment was wrong, so fixed code to match the comment: we only need
  to take additional locking precautions when we have a shared lock on
  the buffer.

- Avoid tricky race condition recording XLOG_HINT.  We copy the buffer
  before inserting an XLOG_HINT to avoid WAL CRC errors caused by
  concurrent hint writes to buffer while share locked. To make this
  work we refactor RestoreBackupBlock() to allow an XLOG_HINT to avoid
  the normal path for backup blocks, which assumes the underlying
  buffer is exclusive locked.  Resulting code completely changes
  layout of XLOG_HINT WAL records, but this isn't even beta code, so
  this is a low impact change.  In passing, avoid taking WALInsertLock
  for full page writes on checksummed hints, remove related cruft from
  XLogInsert() and improve xlog_desc record for XLOG_HINT.  Andres
  Freund Bug report by Fujii Masao, testing by Jeff Janes and Jaime
  Casanova, review by Jeff Davis and Simon Riggs. Applied with changes
  from review and some comment editing.

- Minor rewording of README comments

- README comments on checksums on page holes.

Heikki Linnakangas pushed:

- Fix calculation of how many segments to retain for
  wal_keep_segments.  KeepLogSeg function was broken when we switched
  to use a 64-bit int for the segment number.  Per report from Jeff

Tom Lane pushed:

- Support indexing of regular-expression searches in contrib/pg_trgm.
  This works by extracting trigrams from the given regular expression,
  in generally the same spirit as the previously-existing support for
  LIKE searches, though of course the details are far more
  complicated.  Currently, only GIN indexes are supported.  We might
  be able to make it work with GiST indexes later.  The implementation
  includes adding API functions to backend/regex/ to provide a view of
  the search NFA created from a regular expression.  These functions
  are meant to be generic enough to be supportable in a standalone
  version of the regex library, should that ever happen.  Alexander
  Korotkov, reviewed by Heikki Linnakangas and Tom Lane

- Make contrib/pg_trgm also support regex searches with GiST indexes.
  This wasn't addressed in the original patch, but it doesn't take
  very much additional code to cover the case, so let's get it done.
  Since pg_trgm 1.1 hasn't been released yet, I just changed the
  definition of what's in it, rather than inventing a 1.2.

- Clean up the mess around EXPLAIN and materialized views.  Revert the
  matview-related changes in explain.c's API, as per recent complaint
  from Robert Haas.  The reason for these appears to have been
  principally some ill-considered choices around having
  intorel_startup do what ought to be parse-time checking, plus a poor
  arrangement for passing it the view parsetree it needs to store into
  pg_rewrite when creating a materialized view.  Do the latter by
  having parse analysis stick a copy into the IntoClause, instead of
  doing it at runtime.  (On the whole, I seriously question the choice
  to represent CREATE MATERIALIZED VIEW as a variant of SELECT
  INTO/CREATE TABLE Alexander Shulgin, because that means injecting
  even more complexity into what was already a horrid legacy kluge.
  However, I didn't go so far as to rethink that choice ... yet.) I
  also moved several error checks into matview parse analysis, and
  made the check for external Params in a matview more accurate.  In
  passing, clean things up a bit more around interpretOidsOption(),
  and fix things so that we can use that to force no-oids for views,
  sequences, etc, thereby eliminating the need to cons up "oids =
  false" options when creating them.  catversion bump due to change in
  IntoClause.  (I wonder though if we really need readfuncs/outfuncs
  support for IntoClause anymore.)

Robert Haas pushed:

- Adjust ExplainOneQuery_hook_type to take a DestReceiver argument.
  The materialized views patch adjusted ExplainOneQuery to take an
  additional DestReceiver argument, but failed to add a matching
  argument to the definition of ExplainOneQuery_hook.  This is a
  problem for users of the hook that want to call ExplainOnePlan.  Fix
  by adding the missing argument.

- Remove duplicate initialization in XLogReadRecord.  Per a note from
  Dickson S. Guedes.

- sepgql: Use getObjectIdentity rather than getObjectDescription.
  KaiGai Kohei, based on a suggestion from Álvaro Herrera

- Minor wording corrections for object-access hook stuff.  KaiGai

- sepgsql: Enforce db_procedure:{execute} permission.  To do this, we
  add an additional object access hook type, OAT_FUNCTION_EXECUTE.
  KaiGai Kohei

Kevin Grittner pushed:

- Create a distinction between a populated matview and a scannable
  one.  The intent was that being populated would, long term, be just
  one of the conditions which could affect whether a matview was
  scannable; being populated should be necessary but not always
  sufficient to scan the relation.  Since only CREATE and REFRESH
  currently determine the scannability, names and comments
  accidentally conflated these concepts, leading to confusion.  Also
  add missing locking for the SQL function which allows a test for
  scannability, and fix a modularity violatiion.  Per complaints from
  Tom Lane, although its not clear that these will satisfy his
  concerns.  Hopefully this will at least better frame the discussion.

Andrew Dunstan pushed:

- Fix hstore_to_json_loose example in docs.  Marti Raudsepp.

Alvaro Herrera pushed:

- Make worker_spi sample code more complete.  Make use of some GUC
  variables, and add SIGHUP handling to reload the config file.  Patch
  submitted by Guillaume Lelarge.  Also, report to pg_stat_activity.
  Per report from Marc Cousin, add setting of statement start time.

- Fix SIGUSR1 handling by unconnected bgworkers.  Latch activity was
  not being detected by non-database-connected workers; the SIGUSR1
  signal handler which is normally in charge of that was set to
  SIG_IGN.  Create a simple handler to call latch_sigusr1_handler
  instead.  Robert Haas (bug report and suggested fix)

- Fix SIGHUP handling by unconnected bgworkers.  Add a
  SignalUnconnectedWorkers() call so that non-database-connected
  background workers are also notified when postmaster is SIGHUPped.
  Previously, only database-connected workers were.  Michael Paquier
  (bug report and fix)

- Remove quotes around SQL statement in error message

- Fix confusion between ObjectType and ObjectClass.  Per report by
  Will Leinweber and Peter Eisentraut

Magnus Hagander pushed:

- Update the description for the graphical installers.  Remove
  references to "one click", as we're not supposed to call them that

Peter Eisentraut pushed:

- doc: Update DTrace information.  The old web site link no longer
  worked, and some information was outdated.

- Fix sporadic rebuilds for .pc files.  The build of .pc (pkg-config)
  files depends on all makefiles in use, and in dependency tracking
  mode, the previous coding ended up including /dev/null as a
  makefile.  Apparently, on some platforms the modification time of
  /dev/null changes sporadically, and so the .pc files would end up
  being rebuilt every so often.  Fix that by changing the makefile
  code to do without using /dev/null.

- pg_ctl: Add idempotent option.  This changes the behavior of the
  start and stop actions to exit successfully if the server was
  already started or stopped.  This changes the default behavior of
  the start action:  Before, if the server was already running, it
  would print a message and succeed.  Now, that situation will result
  in an error.  When running in idempotent mode, no message is printed
  and pg_ctl exits successfully.  It was considered to just make the
  idempotent behavior the default and only option, but pg_upgrade
  needs the old behavior.

- Add serial comma

Bruce Momjian pushed:

- Document that git_changelog needs updating for major version

- pgindent:  fix downloading of BSD indent binary.  Also fix accessing
  pgentab binary and tar.  Gurjeet Singh

- pgindent: improve error messages.  per suggestion from Gurjeet Singh

== Rejected Patches (for now) ==

No one was disappointed this week :-)

== Pending Patches ==

Etsuro Fujita sent in a patch to remove unused targets from the tlist.

KaiGai Kohei sent in a flock of patches to improve sepgsql.

Ants Aasma and Simon Riggs traded patches to improve page checksums.

Jeff Davis sent in two more patches to clarify and improve page

Christoph Berg sent in a patch to pg_regress accept --host=/tmp.

Jeff Janes sent in a patch to improve autovacuum's locking behavior.

Miguel Angel de Blas Burdalo sent in a patch to creat a function
SPI_gettypmod(), which returns a field's typemod from a TupleDesc.

Robins Tharakan sent in a patch to add regression tests for COLLATE.

Dimitri Fontaine sent in another revision of a patch to improve and
clarify the sql_drop event for event triggers feature.

Heikki Linnakangas sent in a patch to reduce the memory usage of index
relcache entries.

Stephen Frost sent in a patch to modify ExecChooseHashTableSize() so
it ignore NTUP_PER_BUCKET, essentially treating it as 1, when work_mem
is large enough to fit the entire hash table, which also implies that
there is only one batch.

Sent via pgsql-announce mailing list (
To make changes to your subscription:

(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds