<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.hackerspace-bielefeld.de/index.php?action=history&amp;feed=atom&amp;title=Wartung_unter_PostgreSQL</id>
	<title>Wartung unter PostgreSQL - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hackerspace-bielefeld.de/index.php?action=history&amp;feed=atom&amp;title=Wartung_unter_PostgreSQL"/>
	<link rel="alternate" type="text/html" href="https://wiki.hackerspace-bielefeld.de/index.php?title=Wartung_unter_PostgreSQL&amp;action=history"/>
	<updated>2026-04-30T01:27:29Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Hackerspace Bielefeld Wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.hackerspace-bielefeld.de/index.php?title=Wartung_unter_PostgreSQL&amp;diff=507&amp;oldid=prev</id>
		<title>Niemand: Rechtschreibung</title>
		<link rel="alternate" type="text/html" href="https://wiki.hackerspace-bielefeld.de/index.php?title=Wartung_unter_PostgreSQL&amp;diff=507&amp;oldid=prev"/>
		<updated>2017-07-23T19:29:05Z</updated>

		<summary type="html">&lt;p&gt;Rechtschreibung&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 23. Juli 2017, 19:29 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Datenbank Tabellen Wartung unter PostgreSQL&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Datenbank Tabellen Wartung unter PostgreSQL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Da Tabellen auch in PostgreSQL mit der Zeit &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;griß &lt;/del&gt;werden können müssen die Tabellen eigentlich &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;regelmässig &lt;/del&gt;gewartet werden.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Da Tabellen auch in PostgreSQL mit der Zeit &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;groß &lt;/ins&gt;werden können müssen die Tabellen eigentlich &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;regelmäßig &lt;/ins&gt;gewartet werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Das Problem kann z.b. unter Bareos / Bacula  passieren. Bareos / Bacula schreiben den Index in eine Datenbank. Da &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tballen &lt;/del&gt;Zeilen, die sich ändern nur zum löschen markiert werden, aber nicht sofort gelöscht werden, wächst die Datenbank nach jedem Backup.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Das Problem kann z.b. unter Bareos / Bacula  passieren. Bareos / Bacula schreiben den Index in eine Datenbank. Da &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tabellen &lt;/ins&gt;Zeilen, die sich ändern nur zum löschen markiert werden, aber nicht sofort gelöscht werden, wächst die Datenbank nach jedem Backup.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit dieser &quot;verschwendete&quot; Speicherplatz wieder &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;genutzet &lt;/del&gt;werden kann, müssen die Tabelleneinträge &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;geöscht &lt;/del&gt;werden. Es erfolgt dabei Allerdings nur ein löschen der Tabellen in Hauptspeicher. nicht auf der Festplatte. Das liegt daran, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;daß &lt;/del&gt;der Speicherplatz ja beim nächsten Backup und neuen Daten wieder gebraucht wird. Aber die &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Adatenbank &lt;/del&gt;wächst zumindest nicht mehr.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit dieser &quot;verschwendete&quot; Speicherplatz wieder &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;genutzt &lt;/ins&gt;werden kann, müssen die Tabelleneinträge &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gelöscht &lt;/ins&gt;werden. Es erfolgt dabei Allerdings nur ein löschen der Tabellen in Hauptspeicher. nicht auf der Festplatte. Das liegt daran, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dass &lt;/ins&gt;der Speicherplatz ja beim nächsten Backup und neuen Daten wieder gebraucht wird. Aber die &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Datenbank &lt;/ins&gt;wächst zumindest nicht mehr.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unter MySQL müsste dazu in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;regelmässigen abständen &lt;/del&gt;ein Daten Ex- und Import stattfinden. Bei PostgreSQL gibt es dazu den Befehl &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vaccumdb&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unter MySQL müsste dazu in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;regelmäßigen Abständen &lt;/ins&gt;ein Daten Ex- und Import stattfinden. Bei PostgreSQL gibt es dazu den Befehl &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vacuumdb&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wenn in /etc/postgresql.conf der mittels&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wenn in /etc/postgresql.conf der mittels&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Zeile 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     autovacuum_analyze_threshold = 50&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     autovacuum_analyze_threshold = 50&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Vaccum &lt;/del&gt;Befehl eingeschaltet wird, dann wird im Beispiel alle 50 neuen Tabellenzeilen eine kleine Wartung ausgeführt.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vacuum-&lt;/ins&gt;Befehl eingeschaltet wird, dann wird im Beispiel alle 50 neuen Tabellenzeilen eine kleine Wartung ausgeführt.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:howto]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:howto]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niemand</name></author>
	</entry>
	<entry>
		<id>https://wiki.hackerspace-bielefeld.de/index.php?title=Wartung_unter_PostgreSQL&amp;diff=88&amp;oldid=prev</id>
		<title>Admin: Die Seite wurde neu angelegt: „Datenbank Tabellen Wartung unter PostgreSQL  Da Tabellen auch in PostgreSQL mit der Zeit griß werden können müssen die Tabellen eigentlich regelmässig gewa…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.hackerspace-bielefeld.de/index.php?title=Wartung_unter_PostgreSQL&amp;diff=88&amp;oldid=prev"/>
		<updated>2017-04-04T21:01:42Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Datenbank Tabellen Wartung unter PostgreSQL  Da Tabellen auch in PostgreSQL mit der Zeit griß werden können müssen die Tabellen eigentlich regelmässig gewa…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Datenbank Tabellen Wartung unter PostgreSQL&lt;br /&gt;
&lt;br /&gt;
Da Tabellen auch in PostgreSQL mit der Zeit griß werden können müssen die Tabellen eigentlich regelmässig gewartet werden.&lt;br /&gt;
&lt;br /&gt;
Das Problem kann z.b. unter Bareos / Bacula  passieren. Bareos / Bacula schreiben den Index in eine Datenbank. Da Tballen Zeilen, die sich ändern nur zum löschen markiert werden, aber nicht sofort gelöscht werden, wächst die Datenbank nach jedem Backup.&lt;br /&gt;
&lt;br /&gt;
Damit dieser &amp;quot;verschwendete&amp;quot; Speicherplatz wieder genutzet werden kann, müssen die Tabelleneinträge geöscht werden. Es erfolgt dabei Allerdings nur ein löschen der Tabellen in Hauptspeicher. nicht auf der Festplatte. Das liegt daran, daß der Speicherplatz ja beim nächsten Backup und neuen Daten wieder gebraucht wird. Aber die Adatenbank wächst zumindest nicht mehr.&lt;br /&gt;
&lt;br /&gt;
Unter MySQL müsste dazu in regelmässigen abständen ein Daten Ex- und Import stattfinden. Bei PostgreSQL gibt es dazu den Befehl vaccumdb.&lt;br /&gt;
&lt;br /&gt;
Wenn in /etc/postgresql.conf der mittels&lt;br /&gt;
&lt;br /&gt;
    autovacuum = on&lt;br /&gt;
    autovacuum_vacuum_threshold = 50&lt;br /&gt;
    autovacuum_analyze_threshold = 50&lt;br /&gt;
&lt;br /&gt;
Der Vaccum Befehl eingeschaltet wird, dann wird im Beispiel alle 50 neuen Tabellenzeilen eine kleine Wartung ausgeführt.&lt;br /&gt;
[[Kategorie:howto]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>