La manipulation permet de gagner de la place sur votre disque dur, en supprimant l’écriture de futurs fichier log ( voir le lien ci-dessous ) et ceux déjà présents.
pour vous motivez, regardez la taille du répertoire: C:\Program Files\PostgreSQL\8.3\data\pg_log
ouvrir fichier: démarrer/programmes/postgreSQL/fichiers de configuration/éditez postgresql.conf
changer on par off sur la ligne: logging_collector = off
enregistrer le fichier
recharger configuration: démarrer/programmes/postgreSQL/rechargez la configuration
supprimer les fichiers log du répertoire C:\Program Files\PostgreSQL\8.3\data\pg_log
( personnellement gain de 560 Mo après 2 mois d’utilisation de Holdem Manager )
aucun problème depuis la modification ( 1 mois )
ps: j’en profite pour remercier PA pour l’ensemble de ses contenus.
Holdem Manager 3
…Something you should probably do, if you haven’t already, is turn off the PostgreSQL Logging. I had one customer that had a 21GB DB, and 18GB
of it was taken up by (useless) log files.
To turn off logging, follow these instructions. This is the first thing I do anytime I install SQL for someone.
-
Start > My Computer > Tools > Folder Options > View > UnCheck ‹ Hide Extensions for known file types › > OK
-
C:\Program Files\PostgreSQL\data\postgresql.conf > Right-Click > Open With… > NotePad > Check ‹ Always use this program ›
-
Scroll about half way down to ~Lines 245 - 260:
-
The last line of this block of code, for the ‹ logging_collector ›, must be changed from On to Off.
xxx PHP Code:
xxx ------------------------------------------------------------------------------
xxx # ERROR REPORTING AND LOGGING
xxx #------------------------------------------------------------------------------
xxx
xxx # - Where to Log -
xxx
xxx log_destination = ‹ stderr › # Valid values are combinations of
xxx # stderr, csvlog, syslog and eventlog,
xxx # depending on platform. csvlog
xxx # requires logging_collector to be on.
xxx
xxx # This is used when logging to stderr:
xxx logging_collector = off # Enable capturing of stderr and csvlog
- File > Save; File > Close
- Start > Programs > PostgreSQL 8.3 > Reload Configuration.