<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Move a PostgreSQL database to a different tablespace</title>
	<atom:link href="http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/</link>
	<description>Life at Accenture</description>
	<lastBuildDate>Sun, 06 Nov 2011 05:31:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Tablespaces in postgresql &#171; Blog personal de René Romero Benavides</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-1523</link>
		<dc:creator>Tablespaces in postgresql &#171; Blog personal de René Romero Benavides</dc:creator>
		<pubDate>Sun, 06 Nov 2011 05:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-1523</guid>
		<description>[...] http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/" rel="nofollow">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linfiniti Geo Blog &#187; Working with tablespaces in PostGIS</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-1014</link>
		<dc:creator>Linfiniti Geo Blog &#187; Working with tablespaces in PostGIS</dc:creator>
		<pubDate>Sun, 29 May 2011 14:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-1014</guid>
		<description>[...] If you want to automate the updating of all indexes for a given schema you can do it in a few steps like this (inspired by comments in this blog article): [...]</description>
		<content:encoded><![CDATA[<p>[...] If you want to automate the updating of all indexes for a given schema you can do it in a few steps like this (inspired by comments in this blog article): [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeiken</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-47</link>
		<dc:creator>Jeiken</dc:creator>
		<pubDate>Thu, 23 Jul 2009 23:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-47</guid>
		<description>ERROR:  permission denied: &quot;pg_aggregate&quot; is a system catalog
what&#039;s the problem, help me please.</description>
		<content:encoded><![CDATA[<p>ERROR:  permission denied: &#8220;pg_aggregate&#8221; is a system catalog<br />
what&#8217;s the problem, help me please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-46</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 21 Jul 2009 01:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-46</guid>
		<description>You can avoid writing a php script by keeping it all in SQL.

psql-&gt; select &#039;ALTER INDEX &#039;&#124;&#124;indexname&#124;&#124;&#039; SET TABLESPACE aim_index_data ;&#039; from pg_catalog.pg_indexes where schemaname = &#039;public&#039; order by tablename;

Will generate the sql needed to update the logs.

So the whole thing is:

psql-&gt;\o index_tablespace_update.sql

psql-&gt; select &#039;ALTER INDEX &#039;&#124;&#124;indexname&#124;&#124;&#039; SET TABLESPACE aim_index_data ;&#039; from pg_catalog.pg_indexes where schemaname = &#039;public&#039; order by tablename;



then from the command line psql -d yourdb &lt; index_tablespace_update.sql</description>
		<content:encoded><![CDATA[<p>You can avoid writing a php script by keeping it all in SQL.</p>
<p>psql-&gt; select &#8216;ALTER INDEX &#8216;||indexname||&#8217; SET TABLESPACE aim_index_data ;&#8217; from pg_catalog.pg_indexes where schemaname = &#8216;public&#8217; order by tablename;</p>
<p>Will generate the sql needed to update the logs.</p>
<p>So the whole thing is:</p>
<p>psql-&gt;\o index_tablespace_update.sql</p>
<p>psql-&gt; select &#8216;ALTER INDEX &#8216;||indexname||&#8217; SET TABLESPACE aim_index_data ;&#8217; from pg_catalog.pg_indexes where schemaname = &#8216;public&#8217; order by tablename;</p>
<p>then from the command line psql -d yourdb &lt; index_tablespace_update.sql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lode</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-31</link>
		<dc:creator>Lode</dc:creator>
		<pubDate>Fri, 05 Dec 2008 16:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-31</guid>
		<description>Thx Chris, hadn&#039;t seen that yet.

I&#039;d love to see that implemented into PostgreSQL. It&#039;s behaviour you would expect it to do.</description>
		<content:encoded><![CDATA[<p>Thx Chris, hadn&#8217;t seen that yet.</p>
<p>I&#8217;d love to see that implemented into PostgreSQL. It&#8217;s behaviour you would expect it to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-30</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 05 Dec 2008 15:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-30</guid>
		<description>Thanks for the useful info -- BTW it looks like the next release will have this feature built in: http://archives.postgresql.org/pgsql-committers/2008-11/msg00085.php</description>
		<content:encoded><![CDATA[<p>Thanks for the useful info &#8212; BTW it looks like the next release will have this feature built in: <a href="http://archives.postgresql.org/pgsql-committers/2008-11/msg00085.php" rel="nofollow">http://archives.postgresql.org/pgsql-committers/2008-11/msg00085.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bramus!</title>
		<link>http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/comment-page-1/#comment-7</link>
		<dc:creator>Bramus!</dc:creator>
		<pubDate>Sun, 23 Mar 2008 01:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/#comment-7</guid>
		<description>Ingenious! Reminds me of those tricks with a &quot;DESCRIBE tablename&quot; or &quot;SHOW COLUMNS FROM tablename&quot; queries I&#039;m running to automate some stuff in my DB layer.

I feel a blogpost coming up :)</description>
		<content:encoded><![CDATA[<p>Ingenious! Reminds me of those tricks with a &#8220;DESCRIBE tablename&#8221; or &#8220;SHOW COLUMNS FROM tablename&#8221; queries I&#8217;m running to automate some stuff in my DB layer.</p>
<p>I feel a blogpost coming up <img src='http://blog.lodeblomme.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

