<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Medienbeckerei Blog &#187; restore</title>
	<atom:link href="http://blog.medienbeckerei.de/tag/restore/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.medienbeckerei.de</link>
	<description>IT Gedanken frisch auf den Tisch</description>
	<lastBuildDate>Thu, 12 May 2011 11:27:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>postgres dump read in</title>
		<link>http://blog.medienbeckerei.de/158/postgres-dump-read-in/</link>
		<comments>http://blog.medienbeckerei.de/158/postgres-dump-read-in/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 15:36:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[postgres]]></category>
		<category><![CDATA[analyze]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://blog.medienbeckerei.de/?p=158</guid>
		<description><![CDATA[First:

pg_dumpall &#62; outfile

then:
psql -U "owner name" dbname &#60; infile
(or: psql -f infile postgres)
Once restored, it is wise to run ANALYZE on each database so the optimizer has     useful statistics. An easy way to do this is to run:
"vacuumdb -U 'owner name' -a -z"
to     VACUUM ANALYZE all databases; [...]]]></description>
			<content:encoded><![CDATA[<pre>First:<strong></strong>

<strong>pg_dumpall &gt; <tt><em>outfile</em></tt></strong>

then:
<strong>psql <tt><em>-U "owner name" dbname</em></tt> &lt; <tt><em>infile</em></tt></strong>
<strong><tt><em>(or: </em></tt></strong>psql -f <tt><em>infile</em></tt> postgres)</pre>
<p>Once restored, it is wise to run <em>ANALYZE</em> on each database so the optimizer has     useful statistics. An easy way to do this is to run:</p>
<p><tt>"<strong>vacuumdb -U 'owner name' -a -z</strong>"</tt></p>
<p>to     <tt>VACUUM ANALYZE</tt> all databases; this is equivalent to     running <tt>VACUUM ANALYZE</tt> manually.</p>
 <img src="http://blog.medienbeckerei.de/primetime/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=158" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.medienbeckerei.de/158/postgres-dump-read-in/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

