(Traduzione parziale in lingua italiana delle PostgreSQL Weekly News a cura di Gianni Ciolli gianni.ciolli@2ndquadrant.it)
Nuovo sondaggio: quale ti emoziona di più tra le caratteristiche della 8.4? www.postgresql.org/community
Il sito web di PostgreSQL ha bisogno di una manutenzione, per la quale sono stati stanziati $2000. La tua abilità può farti ottenere la fama, e una (piccola) fortuna. http://wiki.postgresql.org/wiki/Website_
Overhaul_
Requirements
Il PGDay Junin / Buenos Aires Unnoba si terrà il 6 giugno 2009. http://www.arpug.com.ar/trac/wiki/PgDayUnnoba
Il PGDay.EU 2009 si terrà a Telecom ParisTech in Parigi nei giorni 6 e 7 novembre 2009. http://www.pgday.eu/
Rilasciata la versione 2.8.0 di check_
postgres, un plug-in Nagios per il monitoraggio di PostgreSQL. http://bucardo.org/check_
postgres/
Rilasciata la versione 2.2 di Jopr, una applicazione per gestione e monitoraggio di server. http://www.jboss.org/jopr/
Il progetto PostgreSQL RPM Building ha rilasciato una nuova versione del CD Live PostgreSQL. http://www.pglivecd.org
Rilasciata la versione 2.0.5 di Npgsql2, un provider di dati .NET per PostgreSQL. http://www.npgsql.org
Rilasciata la versione 1.10 beta 3 di pgAdmin, uno strumento GUI di gestione per PostgreSQL. http://www.postgresql.org/ftp/pgadmin3/release/v1.10.0-beta3/
Rilasciata la versione 2.2.2 di pgpool-II, un connection pooler (e non solo). http://pgfoundry.org/projects/pgpool/
La United States PostgreSQL Association è adesso una associazione non-profit 501(c)(3). Complimenti! http://www.postgresql.us/
Rilasciata la versione 1.3.6 di PostGIS, un sistema geospaziale per PostgreSQL. http://postgis.refractions.net/
Rilasciate le versioni 1.2.16 e 2.0.2 di Slony, un sistema di replica master-slave a cascata per PostgreSQL. http://slony.info/
Le funzioni Windowing. Le query di report sono diventate estremamente più facili. In questo caso è particolarmente utile PARTITION BY.
La parte referente (“figlio”) dei campi che sono chiavi esterne dovrebbe in genere avere un indice, a meno che il valore referenziato abbia una cardinalità molto bassa. PostgreSQL non lo fa automaticamente.
http://archives.postgresql.org/pgsql-jobs/2009-05/threads.php
Il 20 maggio 2009 a Pisa, Gabriele Bartolini di 2ndQuadrant Italia parteciperà all’evento “Open-Source: aziende e studenti si incontrano”, organizzato dal TOSS-LAB (Tuscany Open Source Software Laboratory). Ulteriori informazioni: http://www.tosslab.it/open-source-aziende-e-studenti-si-incontrano
Nei giorni 21 e 22 maggio 2009 all’università di Ottawa, in Canada, si terrà PGCon 2009. Nei due giorni precedenti si terranno dei tutorials. http://www.pgcon.org/2009/
Il PgDay di Florianopolis (Brasile) sarà il 22 maggio. Mettetevi in contatto con Dickson S. Guedes (guedes AT guedesoft DOT net) per partecipare o inviare un lavoro. http://www.postgresql.org.br/eventos/pgday/sc
Segnatevi la data: pgDay San Jose (USA). Domenica 19 luglio subito prima di OSCON. Saranno presto annunciate ulteriori informazioni! (incluso il call for papers)
Il 23 e 24 ottobre 2009 si svolgerà PGCon Brazil, presso Unicamp, nella città di Campinas, stato di San Paolo.
Planet PostgreSQL: http://planet.postgresql.org/
Questo notiziario settimanale PostgreSQL è stato realizzato da David Fetter e Josh Berkus; traduzione parziale in lingua italiana a cura di Gianni Ciolli.
Notizie o annunci destinati a questo notiziario dovranno pervenire entro la mezzanotte di domenica (le 15 nel fuso orario della California). I comunicati in lingua italiana dovranno essere inviati a pwn@itpug.org; per le lingue inglese o tedesca, si scriva rispettivamente a david@fetter.org o a pwd@pgug.de.
Peter Eisentraut committed:
_
conforming_
strings is not on, for security reasons.Magnus Hagander committed:
_
shmem.c, call SetLastError(0) before calling the file mapping functions to make sure that the error code is reset, as a precaution in case the API doesn’t properly reset it on success. This could be necessary, since we check the error value even if the function doesn’t fail for specific success cases._
shmem.c, make the win32 shared memory code try 10 times instead of one if it fails because the shared memory segment already exists. This means it can take up to 10 seconds before it reports the error if it does exist, but hopefully it will make the system capable of restarting even when the server is under high load.Heikki Linnakangas committed:
_
start_
backup(). Otherwise you can end up with an unrecoverable backup if you start a new base backup right after finishing archive recovery. In that scenario, the redo pointer of the checkpoint that pg_
start_
backup() writes points to the XLOG segment where the timeline-changing end-of-archive-recovery checkpoint is. The beginning of that segment contains pages with the old timeline ID, and we don’t accept that in recovery unless we find a history file covering the old timeline ID. If you omit pg_
xlog from the base backup and clear the archive directory before starting the backup, there will be no such history file available. The bug is present in all versions since PITR was introduced in 8.0, but I’m back-patching only back to 8.2. Earlier versions didn’t have XLOG switch records, making this fix unfeasible. Given the lack of reports until now, it doesn’t seem worthwhile to spend more effort to fix 8.0 and 8.1. Per report and suggestion by Mikael Krantz_
CZ locale for btree_
gist and tsearch2 tests. This should make ‘comet_
moth’ buildfarm member pass contrib check. Zdenek Kotala.Tom Lane committed:
_
bt_
relandgetbuf._
FOR_
INTERRUPTS() calls into btree and hash index scans at the points where we step right or left to the next page. This should ensure reasonable response time to a query cancel request during an unsuccessful index scan, as seen in recent gripe from Marc Cousin. It’s a bit trickier than it might seem at first glance, because CHECK_
FOR_
INTERRUPTS() is a no-op if executed while holding a buffer lock. So we have to do it just at the point where we’ve dropped one page lock and not yet acquired the next. Remove CHECK_
FOR_
INTERRUPTS calls at the top level of btgetbitmap and hashgetbitmap, since they’re pointless given the added checks. I think that GIST is okay already — at least, there’s a CHECK_
FOR_
INTERRUPTS at a plausible-looking place in gistnext(). I don’t claim to know GIN well enough to try to poke it for this, if indeed it has a problem at all. This is a pre-existing issue, but in view of the lack of prior complaints I’m not going to risk back-patching._
exit() instead. Also, it is reported that under Windows there are ways to externally kill a process that cause the status code returned to the postmaster to be indistinguishable from a voluntary exit (thank you, Microsoft). If this does happen then the system is probably hosed — for instance, the dead session might still be holding locks. So the best recovery method is to treat this like a backend crash. The dead man switch is armed for a particular child process when it acquires a regular PGPROC, and disarmed when the PGPROC is released; these should be the first and last touches of shared memory resources in a backend, or close enough anyway. This choice means there is no coverage for auxiliary processes, but I doubt we need that, since they shouldn’t be executing any user-provided code anyway. This patch also improves the management of the EXEC_
BACKEND ShmemBackendArray array a bit, by reducing search costs. Although this problem is of long standing, the lack of field complaints seems to mean it’s not critical enough to risk back-patching; at least not till we get some more testing of this mechanism._
exit’s cleanup processing will still be performed if something in a backend process calls exit() directly, instead of going through proc_
exit() as we prefer. This is a second response to the issue that we might load third-party code that doesn’t know it should not call exit(). Such a call will now cause a reasonably graceful backend shutdown, if possible. (Of course, if the reason for the exit() call is out-of-memory or some such, we might not be able to recover, but at least we will try.)_
shmem.c, minor improvement: avoid assuming that GetLastError value cannot be affected by CloseHandle() or Sleep()._
conforming_
strings is on._
qual_
to_
rels so that when we decide a pseudoconstant qual can be pushed to the top of the join tree, we update both the relids and qualscope variables to keep them in sync. This prevents a possible later failure of an Assert clause, and affects nothing else since qualscope isn’t used later except for that Assert. At the moment the Assert shouldn’t be reachable when we’ve pushed the qual up; but this is cheap insurance, and it’s more sensible anyway in terms of the overall logic of the routine. Per analysis of a bug report from Stefan Huehner. I’m not back-patching this since it’s just future-proofing; but if anyone gets tempted to change check_
outerjoin_
delay again in the back branches, this might be needed._
outerjoininfo wasn’t actually enforcing the join order restrictions specified for semijoins in optimizer/README, to wit that you can’t reassociate outer joins into or out of the RHS of a semijoin. Per report from Heikki Linnakangas._
accounts, pgbench_
branches, pgbench_
history, and pgbench_
tellers, rather than just accounts, branches, history, and tellers. This is to prevent accidental conflicts with real application tables, as has been reported to happen at least once. Also remove the automatic “SET search_
path = public” that it did at startup, as this seems to restrict testing flexibility without actually buying much. Per proposal by Joshua Drake and ensuing discussion. Joshua Drake and Tom Lane._
migrator because if the old table has a toast table, we have to migrate over the toast table since it might contain some live data, even though subsequent column drops could mean that no recently-added rows could require toasting.Bruce Momjian committed:
_
migrator.so function linkage on Win32. Tested by Hiroshi Saito._
fsync.c, add missing third argument to open().No one was disappointed this week :-)
Robert Haas sent in another revision of the ALTER TABLE … ALTER COLUMN … SET DISTINCT patch.
Andres Freund sent in two revisions of a patch which implements ALTER TABLE … DROP [COLUMN | CONSTRAINT] IF EXISTS …
Dickson S. Guedes sent in a patch to add a way to display both client and server versions in the psql prompt.
Seth Robertson sent in a patch to automate selection of client certificates in libpq.
Andrew (RhodiumToad) Gierth sent in a patch to change src/backend/libpq/be-secure.c from calling SSL_
CTX_
use_
certificate_
file to SSL_
CTX_
use_
certificate_
chain_
file.
Joshua Drake sent in a patch to make version_
stamp.pl strict-clean.
Khee Chin sent in a patch to make psql’s di show the type of index used.
David Fetter sent in a patch to make all the perl programs strict-clean.
This Post Has 0 Comments