Created
March 21, 2013 12:52
-
-
Save hrstt/5212784 to your computer and use it in GitHub Desktop.
Ubuntu にPostgreSQLを用意する ref: http://qiita.com/items/5f40a6aed6b81521b8f7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install postgres postgres-client psotgresql-contrib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su - postgres | |
$ createdb book | |
$ psql book -c "SELECT '1'::cube" | |
ERROR: type "cube" does not exist | |
LINE 1: SELECT '1'::cube; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql book -c "CREATE EXTENSION tablefunc" | |
psql book -c "CREATE EXTENSION fuzzystrmatch" | |
psql book -c "CREATE EXTENSION pg_trgm" | |
psql book -c "CREATE EXTENSION cube" | |
psql book -c "CREATE EXTENSION dict_xsyn" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ psql book -c "SELECT '1'::cube;" | |
cube | |
------ | |
(1) | |
(1 row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment