<?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>cablop.net - Software Tips &#187; pgAdminIII</title>
	<atom:link href="http://sw.cablop.net/tips/category/desarrollo/bases-de-datos-dev/pgadminiii/feed/" rel="self" type="application/rss+xml" />
	<link>http://sw.cablop.net/tips</link>
	<description>Tips de software, hardware... y algo más</description>
	<lastBuildDate>Fri, 05 Feb 2010 16:50:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>pgAdminIII, PostGIS, PostgreSQL 8.x, SQL, template_postgis</title>
		<link>http://sw.cablop.net/tips/2009/08/29/pgadminiii-postgis-postgresql-8-x-sql-template_postgis/</link>
		<comments>http://sw.cablop.net/tips/2009/08/29/pgadminiii-postgis-postgresql-8-x-sql-template_postgis/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 16:07:42 +0000</pubDate>
		<dc:creator>天龙</dc:creator>
				<category><![CDATA[PostGIS]]></category>
		<category><![CDATA[PostgreSQL 8.3]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[pgAdminIII]]></category>
		<category><![CDATA[PostgreSQL 8.x]]></category>
		<category><![CDATA[template_postgis]]></category>

		<guid isPermaLink="false">http://sw.cablop.net/tips/?p=54</guid>
		<description><![CDATA[Lo intenté, busque en la red, que le añadiera un sleep a la funcion antes del createdb&#8230; no, no lo añadí, ya era ir demasiado lejos&#8230; con el pgAdminIII&#8230; tampoco&#8230;
¿De que habló?
Al ejecutar el comando:
createdb -T template_postgis my_spatial_db
la base de datos no se crea y si usamos pgAdminIII nos devuelve el siguiente error:
database "template_postgis" is [...]]]></description>
			<content:encoded><![CDATA[<p>Lo intenté, busque en la red, que le añadiera un sleep a la funcion antes del createdb&#8230; no, no lo añadí, ya era ir demasiado lejos&#8230; con el pgAdminIII&#8230; tampoco&#8230;</p>
<p>¿De que habló?</p>
<p>Al ejecutar el comando:</p>
<p style="padding-left: 30px"><code><span style="color: #993300">createdb -T template_postgis my_spatial_db</span></code></p>
<p>la base de datos no se crea y si usamos pgAdminIII nos devuelve el siguiente error:</p>
<p style="padding-left: 30px"><code><span style="color: #333333">database "template_postgis" is being accessed by other users</span></code></p>
<p>Después de googlear un rato y de buscar solucionar el comando se me ocurrió hacerlo vía sql y si funcionó.</p>
<p>Este es el comando:</p>
<p style="padding-left: 30px"><code><span style="color: #993300">CREATE DATABASE </span><span style="color: #993300">my_spatial_db</span><span style="color: #993300"> WITH TEMPLATE=template_postgis;</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://sw.cablop.net/tips/2009/08/29/pgadminiii-postgis-postgresql-8-x-sql-template_postgis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
