PostgreSQL La base de donnees la plus sophistiquee au monde.

Twitter


Utilisateur




Langue

Traductions de cette page:




Nouvelles hebdomadaires de PostgreSQL - 12 décembre 2010

L'appel à conférenciers pour la salle PostgreSQL au FOSDEM (Bruxelles, 5-6 février 2011) est toujours audible. Envoyez vos propositions à fosdem AT postgresql DOT eu.

Devrim GUNDUZ a publié une correction pour les paquets RPM RHEL6. Voir ci-après pour les détails : http://people.planetpostgresql.org/devrim/index.php?/archives/54-Attention-9.0.1-OR-RHEL-6-RPM-users.html

Les nouveautés des produits dérivés

Offres d'emplois autour de PostgreSQL en décembre

PostgreSQL Local

  • L'appel à projets de PostgreSQLFr a été lancé. Les projets doivent concerner PostgreSQL et la communauté francophone. Mail à appel-projets-2010 (AT) postgresql (DOT) fr. http://www.postgresql.fr/appel_a_projets_2010:call_for_projects
  • Le FOSDEM est l'un des plus grand événements autour du Libre et de l'Open Source ; il a lieu annuellement à Bruxelles et rassemble environ 4000 personnes. La prochaine édition est programmée pour les 5 & 6 février 2011. Envoyez vos propositions à l'adresse fosdem AT postgresql POINT eu : http://andreas.scherbaum.la/blog/archives/749-PostgreSQLFOSDEM-2011-Call-for-talks.html
  • Un PGDay.US est au programme du Southern California Linux Exposition (SCALE) de cette année, tenu à l'hôtel LAX Hilton de Los Angeles (Californie) le vendredi 25 février 2011. Proposez vos conférences sur pgday-submissions (AT) googlegroups (DOT) com.
  • PGCon aura lieu les 19 & 20 mai 2011 à l'Université d'Ottawa, précédé par deux jours de tutoriels les 17 & 18 mai : http://www.pgcon.org/2011/

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

  • ITAGAKI Takahiro reviewed the per-column collation patch, bringing up issues with pg_dump, along with a couple of naming issues in the source code and a request for clearer global state.

Correctifs appliqués

Peter Eisentraut a poussé :

Heikki Linnakangas a poussé :

  • Fix two typos, by Fujii Masao. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=95e42a2c2980003880dee622fc3bed0b03322542
  • Fix bugs in the hot standby known-assigned-xids tracking logic. If there's an old transaction running in the master, and a lot of transactions have started and finished since, and a WAL-record is written in the gap between the creating the running-xacts snapshot and WAL-logging it, recovery will fail with "too many KnownAssignedXids" error. This bug was reported by Joachim Wieland on Nov 19th. In the same scenario, when fewer transactions have started so that all the xids fit in KnownAssignedXids despite the first bug, a more serious bug arises. We incorrectly initialize the clog code with the oldest still running transaction, and when we see the WAL record belonging to a transaction with an XID larger than one that committed already before the checkpoint we're recovering from, we zero the clog page containing the already committed transaction, leading to data loss. In hindsight, trying to track xids in the known-assigned-xids array before seeing the running-xacts record was too complicated. To fix that, hold XidGenLock while the running-xacts snapshot is taken and WAL-logged. That ensures that no transaction can begin or end in that gap, so that in recvoery we know that the snapshot contains all transactions running at that point in WAL. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=5a031a5556ff83b8a9646892715d7fef415b83c3

Andrew Dunstan a poussé :

Tom Lane a poussé :

  • Add a stack overflow check to copyObject(). There are some code paths, such as SPI_execute(), where we invoke copyObject() on raw parse trees before doing parse analysis on them. Since the bison grammar is capable of building heavily nested parsetrees while itself using only minimal stack depth, this means that copyObject() can be the front-line function that hits stack overflow before anything else does. Accordingly, it had better have a check_stack_depth() call. I did a bit of performance testing and found that this slows down copyObject() by only a few percent, so the hit ought to be negligible in the context of complete processing of a query. Per off-list report from Toshihide Katayama. Back-patch to all supported branches. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=8b5692809707c0e15d04c530a3fed9347350ea01
  • Force default wal_sync_method to be fdatasync on Linux. Recent versions of the Linux system header files cause xlogdefs.h to believe that open_datasync should be the default sync method, whereas formerly fdatasync was the default on Linux. open_datasync is a bad choice, first because it doesn't actually outperform fdatasync (in fact the reverse), and second because we try to use O_DIRECT with it, causing failures on certain filesystems (e.g., ext4 with data=journal option). This part of the patch is largely per a proposal from Marti Raudsepp. More extensive changes are likely to follow in HEAD, but this is as much change as we want to back-patch. Also clean up confusing code and incorrect documentation surrounding the fsync_writethrough option. Those changes shouldn't result in any actual behavioral change, but I chose to back-patch them anyway to keep the branches looking similar in this area. In 9.0 and HEAD, also do some copy-editing on the WAL Reliability documentation section. Back-patch to all supported branches, since any of them might get used on modern Linux versions. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=576477e73c4a9cb32c7471c1cec354fd5328140e
  • Clean up some copied-and-pasted code in pg_upgrade. 1. Don't reimplement S_ISDIR() and S_ISREG() badly. 2. Don't reimplement access() badly. This code appears to have been copied from ancient versions of the corresponding backend routines, and not patched to incorporate subsequent fixes (see my commits of 2008-03-31 and 2010-01-14 respectively). It might be a good idea to change it to just *call* those routines, but for now I'll just transpose these fixes over. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=663fc32e26e8df41434d751e2203c1aa410d1916
  • Make S_IRGRP etc available in mingw builds as well as MSVC. (Hm, I wonder whether BCC defines them either...) Also label dangling endifs a bit better in this area. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=5132ad8bdf8e85ea0054217ef7ee38c51ace4824
  • Reset all database-level stats in pgstat_recv_resetcounter(). We were failing to zero out some pg_stat_database counters that have been added since the initial pgstats coding. This is a bug, but not back-patching the fix since changing this behavior in a minor release seems a cure worse than the disease. Report and patch by Tomas Vondra. http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=0c90442355fbbe785740669f63141f24674c8958

Simon Riggs a poussé :

Robert Haas a poussé :

Magnus Hagander a poussé :

Correctifs rejetés (à ce jour)

  • Pas de déception cette semaine :-)

Correctifs en attente

  • Joachim Wieland sent in another revision of the patch to clone snapshots and make them available.
  • Craig Ringer sent in a patch to add a crash dump, similar to a core dump, only for Windows.
  • Josh Berkus sent in two revisions of a patch to make wal_sync_method default to fdatasync on Linux kernels 2.6.33 and higher.
  • Fujii Masao sent in another revision of the patch to change libpq to help with synchronous replication.
  • Fujii Masao sent in a patch to set a replication timeout. This, too, is intended to help with synchronous replication.
  • Peter Eisentraut sent in a patch to add a pg_sequence_parameters() function.
  • KaiGai Kohei sent in another revision of the access control label switcher function.
  • Joachim Wieland sent in another revision of the patch to add a directory-based format for pg_dump/pg_restore.
  • Fujii Masao sent in a patch to remove wal_sender_delay.
  • Tim Bunce sent in a patch to optimize argument-passing in PL/Perl[U].
  • Kevin Grittner sent in four revisions of a patch to add a optimize and correct SERIALIZABLE so that it doesn't switch from READ ONLY DEFERRABLE mode to READ WRITE.
  • Tom Lane sent in a patch to fix some infelicities in the speed of calculating percent_rank() vs. rank().
  • Fujii Masao sent in a patch to fix the way ps(1) displays standby queries.
  • Dimitri Fontaine sent in two more revisions to add extensions.
  • Robert Haas sent in another revision of the patch to add unlogged tables.
  • Thomas (tv AT fuzzy DOT cz) sent in two revisions of a patch to keep a timestamp of the most recent stats reset per-database, per-table, and per-function.
  • Dimitri Fontaine sent in another revision of the patch to add a pg_execute_from_file() function. This is part of the EXTENSIONS work.
  • Alexander Korotkov sent in a patch to add wildcard support for pg_trgm.
  • Simon Riggs sent in a patch to add a NOT ENFORCED clause to foreign key constraints.
  • Peter Eisentraut sent in another revision of the per-column collation patch.
  • ITAGAKI Takahiro sent in another revision of the patch to add file_fdw(), part of the SQL/MED standard dealing with reading and writing external files.

 
pgwn/12_decembre_2010.txt · Dernière modification: 2010/12/16 23:31 par buggy