| 566 | | To enable WAL archiving, set the <xref linkend="guc-archive-mode"/> |
|---|
| 567 | | configuration parameter to <literal>on</literal>, and specify the shell |
|---|
| 568 | | command to use in the <xref linkend="guc-archive-command"/> configuration |
|---|
| 569 | | parameter. In practice these settings will always be placed in the |
|---|
| 570 | | <filename>postgresql.conf</filename> file. Dans cette chaîne, tout |
|---|
| | 566 | Pour activer l'archivage des journaux de transaction, configurez le |
|---|
| | 567 | paramètre <xref linkend="guc-archive-mode"/> à <literal>on</literal>, |
|---|
| | 568 | et précisez la commande shell à utiliser dans le paramètre |
|---|
| | 569 | <xref linkend="guc-archive-command"/> configuration. En fait, ces |
|---|
| | 570 | paramètres seront toujours placés dans le fichier |
|---|
| | 571 | <filename>postgresql.conf</filename>. Dans cette chaîne, tout |
|---|
| 716 | | modifié au lancement du serveur. However, <varname>archive_command</varname> can be changed with a |
|---|
| 717 | | configuration file reload. If you wish to temporarily stop archiving, |
|---|
| 718 | | one way to do it is to set <varname>archive_command</varname> to the empty |
|---|
| 719 | | string (<literal>''</literal>). |
|---|
| 720 | | This will cause WAL files to accumulate in <filename>pg_xlog/</filename> until a |
|---|
| 721 | | working <varname>archive_command</varname> is re-established. |
|---|
| | 717 | modifié au lancement du serveur. Néanmoins, |
|---|
| | 718 | <varname>archive_command</varname> peut être modifié avec un |
|---|
| | 719 | rechargement du fichier de configuration. Si vous souhaitez arrêter |
|---|
| | 720 | temporairement l'archivage, une façon de le faire est de placer une |
|---|
| | 721 | chaîne vide (<literal>''</literal>) pour |
|---|
| | 722 | <varname>archive_command</varname>. Les journaux de transaction seront |
|---|
| | 723 | accumulés dans <filename>pg_xlog/</filename> jusqu'au rétablissement |
|---|
| | 724 | d'un paramètre <varname>archive_command</varname> fonctionnel. |
|---|
| 759 | | <function>pg_start_backup</function> can take a long time to finish. |
|---|
| 760 | | This is because it performs a checkpoint, and the I/O |
|---|
| 761 | | required for a checkpoint will be spread out over a significant |
|---|
| 762 | | period of time, by default half your inter-checkpoint interval |
|---|
| 763 | | (see the configuration parameter |
|---|
| 764 | | <xref linkend="guc-checkpoint-completion-target"/>). Usually |
|---|
| 765 | | this is what you want because it minimizes the impact on query |
|---|
| 766 | | processing. If you just want to start the backup as soon as |
|---|
| 767 | | possible, execute a <command>CHECKPOINT</command> command |
|---|
| 768 | | (which performs a checkpoint as quickly as possible) and then |
|---|
| 769 | | immediately execute <function>pg_start_backup</function>. Then there |
|---|
| 770 | | will be very little for <function>pg_start_backup</function>'s checkpoint |
|---|
| 771 | | to do, and it won't take long. |
|---|
| | 762 | <function>pg_start_backup</function> peut prendre beaucoup de temps |
|---|
| | 763 | pour arriver à son terme. Ceci est dû au fait qu'il réalise un |
|---|
| | 764 | point de retournement, et que les entrées/sorties pour l'établissement |
|---|
| | 765 | de ce point de retournement seront réparties sur une grande période |
|---|
| | 766 | de temps, par défaut la moitié de l'intervalle d'un point de |
|---|
| | 767 | retournement (voir le paramètre de configuration |
|---|
| | 768 | <xref linkend="guc-checkpoint-completion-target"/>). Habituellement, |
|---|
| | 769 | ce comportement est appréciable car il minimise l'impact du traitement |
|---|
| | 770 | des requêtes. Si vous voulez commencer la sauvegarde aussi rapidement |
|---|
| | 771 | que possible, exécutez la commande <command>CHECKPOINT</command> (qui |
|---|
| | 772 | fait un point de retournement aussi rapidement que possible), puis |
|---|
| | 773 | exécutez immédiatement <function>pg_start_backup</function>. Le point |
|---|
| | 774 | de retournement de <function>pg_start_backup</function> n'aura plus |
|---|
| | 775 | grand chose à faire, et s'exécutera donc rapidement. |
|---|