Nouvelles hebdomadaires de PostgreSQL - 3 avril 2011
PostgreSQL 9.1alpha5 disponible, avec moultes améliorations ! Il s'agit (aux dernières nouvelles ;) de la dernière alpha planifiée pour la 9.1. Vous pouvez la récupérer par ici :
http://www.postgresql.org/developer/alpha
Le PUG turque organise une journée événement le 30 avril 2011. Suivez @PgDayTR (en turc) pour d'avantages de détails.
Les nouveautés des produits dérivés
PostgreSQL Local
PostgreSQL dans les média
PostgreSQL Weekly News / les nouvelles hebdomadaires vous sont offertes cette semaine par David Fetter. Traduction par l'équipe PostgreSQLFr sous licence CC BY-NC-SA.
Proposez vos articles ou annonces avant dimanche 15:00 (heure du Pacifique). Merci de les envoyer en anglais à david (a) fetter.org, en allemand à pwn (a) pgug.de, en italien à pwn (a) itpug.org et en espagnol à pwn (a) arpug.com.ar.
(lien vers l'article original)
Revues de code
Correctifs appliqués
Tom Lane a poussé :
- Get rid of links that don't work when building HISTORY.
http://git.postgresql.org/pg/commitdiff/a720c28f0af3185f7d40788a78867a36bff36bc7
- Prevent a rowtype from being included in itself. Eventually we might be able to allow that, but it's not clear how many places need to be fixed to prevent infinite recursion when there's a direct or indirect inclusion of a rowtype in itself. One such place is CheckAttributeType(), which will recurse to stack overflow in cases such as those exhibited in bug #5950 from Alex Perepelica. If we were sure it was the only such place, we could easily modify the code added by this patch to stop the recursion without a complaint ... but it probably isn't the only such place. Hence, throw error until such time as someone is excited enough about this type of usage to put work into making it safe. Back-patch as far as 8.3. 8.2 doesn't have the recursive call in CheckAttributeType in the first place, so I see no need to add code there in the absence of clear evidence of a problem elsewhere.
http://git.postgresql.org/pg/commitdiff/eb51af71f241e8cb199790dee9ad246bb36b3287
- Fix typo in PQconnectStartParams(). This would lead to leaking the PGconn structure after an error detected by conninfo_array_parse(), as well as failing to return a useful error message in such cases. Backpatch to 9.0 where the error was introduced. Joseph Adams
http://git.postgresql.org/pg/commitdiff/d518d6a168797c2e3b9cf03a3b5cfa335be735bb
Alvaro Herrera a poussé :
Robert Haas a poussé :
- Mark up release notes using <link>. Unlike <xref>, this actually works.
http://git.postgresql.org/pg/commitdiff/7c7fd882a5275bf40cd5ac72c6118916f7802aa4
- Fix compiler warning.
http://git.postgresql.org/pg/commitdiff/7fcc75dd26ff0fee0b02f1b8b4215c298ca974ca
- Support comments on FOREIGN DATA WRAPPER and SERVER objects. This mostly involves making it work with the objectaddress.c framework, which does most of the heavy lifting. In that vein, change GetForeignDataWrapperOidByName to get_foreign_data_wrapper_oid and GetForeignServerOidByName to get_foreign_server_oid, to match the pattern we use for other object types. Robert Haas and Shigeru Hanada
http://git.postgresql.org/pg/commitdiff/50533a6dc515cc3182f52838275c9d2a1f587604
- pg_dump support for comments on FOREIGN DATA WRAPPER and SERVER objects. Shigeru Hanada, with some corrections.
http://git.postgresql.org/pg/commitdiff/dd095b623ec4b41e8c5728f9c576375985554fd3
- Tab completion for COMMENT ON FOREIGN DATA WRAPPER / SERVER.
http://git.postgresql.org/pg/commitdiff/e49ad77ff958b380ea6fa08c72e2dce97ac56c6b
- Avoid possible hang during smart shutdown. If a smart shutdown occurs just as a child is starting up, and the child subsequently becomes a walsender, there is a race condition: the postmaster might count the exstant backends, determine that there is one normal backend, and wait for it to die off. Had the walsender transition already occurred before the postmaster counted, it would have proceeded with the shutdown. To fix this, have each child that transforms into a walsender kick the postmaster just after doing so, so that the state machine is certain to advance. Fujii Masao
http://git.postgresql.org/pg/commitdiff/38b27792eae99f5b4db2411f5c57ef70f850df5f
- Remove mention of using "man" from the tutorial. This isn't applicable on Windows, and the internal link to the psql documentation should be more than sufficient. Susanne Ebrecht
http://git.postgresql.org/pg/commitdiff/1981fb73136433579cae9a34fb3a12f1fcc519fc
- Improve documentation on the range of the numeric data type. Gianni Ciolli, reviewed by Noah Misch.
http://git.postgresql.org/pg/commitdiff/cabf5d84b6d1a92ab97492d7e3d650548a9992cd
- Rearrange "add column" logic to merge columns at exec time. The previous coding set attinhcount too high in some cases, resulting in an undumpable, undroppable column. Per bug #5856, reported by Naoya Anzai. See also commit 31b6fc06d83c6de3644c8f2921eb7de0eb92fac3, which fixes a similar bug in ALTER TABLE .. ADD CONSTRAINT. Patch by Noah Misch.
http://git.postgresql.org/pg/commitdiff/6c5723998594dffa5d47c3cf8c96ccf89c033aae
Bruce Momjian a poussé :
Peter Eisentraut a poussé :
Heikki Linnakangas a poussé :
Andrew Dunstan a poussé :
Magnus Hagander a poussé :
Correctifs rejetés (à ce jour)
- Pas de déception cette semaine :-)
Correctifs en attente
- Heikki Linnakangas sent in a variant patch to prevent memory leaks in DO blocks.
- Heikki Linnakangas sent in another revision of the patch to add a replication server timeout.
- Bernd Helmle sent in another revision of the patch to use a more reasonable size for \dt in psql.
- Simon Riggs sent in a patch which adds 5 more levels of durability to sync rep.
- Joseph Adams sent in five more revisions of the patch to add JSON as a data type.
- Kevin Grittner sent in a patch to prevent large tables from breaking SSI by overflowing predicate lock hash buckets.
- Peter Eisentraut sent in a patch to fix complaints from gcc 4.6.
- Peter Eisentraut sent in a patch to fix a case where typed tables broke pg_upgrade.
- Robert Haas and Shigeru HANADA traded patches to allow commenting on SQL/MED objects.
- Peter Eisentraut sent in a patch to fix how exit_nicely() works.
- Radoslaw Smogura sent in another revision of the patch to add a second level buffer cache.
- Jan Wieck sent in a patch to fix an issue with autovacuum performance.
- Merlin Moncure sent in a patch to fix an issue with the hint bit cache.
- Alexey Klyukin sent in a patch to help build the infrastructure for a validator for configuration files.
- Bruce Momjian sent in a patch to adjust a comment in autovacuum.c.
- Joseph Adams sent in a patch to allow casting int2, int4 and int8 to money.
- Shigeru HANADA sent in two revisions of a patch to fix the foreign table docs.
- Brendan Jurd sent in a patch to rationalize parsing of pg_hba.conf.
- Rushabh Lathia sent in a patch to fix a crash on Windows.
- Dan Ports sent in a patch to display the pid of the holding transaction in SSI.
- Dan Ports sent in a patch to fix an issue in SSI where a lock could be taken but never cleared.