cablop.net – Software Tips

Tips de software, hardware… y algo más

Skip to: Content | Sidebar | Footer

pgAdminIII, PostGIS, PostgreSQL 8.x, SQL, template_postgis

29 Agosto, 2009 (11:07) | PostGIS, PostgreSQL 8.3, SQL, pgAdminIII | By: 天龙

Lo intenté, busque en la red, que le añadiera un sleep a la funcion antes del createdb… no, no lo añadí, ya era ir demasiado lejos… con el pgAdminIII… tampoco…

¿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 being accessed by other users

Después de googlear un rato y de buscar solucionar el comando se me ocurrió hacerlo vía sql y si funcionó.

Este es el comando:

CREATE DATABASE my_spatial_db WITH TEMPLATE=template_postgis;

Write a comment





To submit your comment, click the image below where it asks you to... Clickcha - The One-click Captcha