ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)

createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT:  Use the same encoding as in the template database, or use template0 as template. createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)HINT:  Use the same encoding […]

Posted on July 27, 2010 at 12:11 pm by Jordan Carter · Permalink · One Comment
In: Server Config · Tagged with: ,

PostGIS psqlostgis ERROR could not load library /usr/lib/postgresql/8.4/lib/postgis-1.5.so

Trying to install PostGIS and you can’t get past this error? psqlostgis.sql:57: NOTICE:  type “spheroid” is not yet defined DETAIL:  Creating a shell type definition. psqlostgis.sql:57: ERROR:  could not load library “/usr/lib/postgresql/8.4/lib/postgis-1.5.so”: /usr/lib/postgresql/8.4/lib/postgis-1.5.so: undefined symbol: GEOSHausdorffDistance psqlostgis.sql:63: ERROR:  current transaction is aborted, commands ignored until end of transaction block psqlostgis.sql:68: ERROR:  current transaction is aborted, […]

Posted on March 10, 2010 at 12:44 pm by Jordan Carter · Permalink · 5 Comments
In: Ruby on Rails, Server Config · Tagged with: , , , ,

PG_Dump PG_Restore

Dump a remote postgres database and restore it into a local postgres database.  This method dumps first into a local file, then restores into the database.  The reason for doing it this way over piping the data straight into the database locally is that if there is an error in the import you don’t have […]

Posted on September 25, 2009 at 10:21 am by Jordan Carter · Permalink · Leave a comment
In: Server Config, Web Development · Tagged with: , , , , ,

Postgres vs MySQL

or I have used both MySQL and Postgres and if I was starting a project right now I would probably use Postgres. I have read the wikivs MySQL vs Postgres and there is a lot in there that I understand and a lot that I don’t. What I like about Postgres is that it uses […]

Posted on June 13, 2009 at 11:29 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: ,

Rails Migration Data Types – MySql – Postgresql – SQLite

Rails mysql postgresql sqlite :binary blob bytea blob :boolean tinyint(1) boolean boolean :date date date date :datetime datetime timestamp datetime :decimal decimal decimal decimal :float float float float :integer int(11) integer integer :string varchar(255) * varchar(255) :text text text text :time time time datetime :timestamp datetime timestamp datetime

Posted on April 19, 2009 at 2:39 pm by Jordan Carter · Permalink · One Comment
In: Uncategorized · Tagged with: , , ,