Last active
April 3, 2025 11:53
-
-
Save 1st/99a6dbea23c6335d3cec to your computer and use it in GitHub Desktop.
Revisions
-
1st revised this gist
Apr 3, 2025 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ ### UPDATE: Use https://postgresapp.com that contains Universal build wih multiple Postgres engines # 0. install a Postgres # we use HomeBrew for this -
1st revised this gist
Oct 16, 2019 . No changes.There are no files selected for viewing
-
1st revised this gist
Oct 16, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ # 2. create new database # specify user that will access this database (created above) createdb -O username dbname # 3. test connection -
1st revised this gist
Dec 9, 2015 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,8 @@ # we use HomeBrew for this brew install postgres # init file structure for all databases initdb /usr/local/var/postgres # 1. create new user for a database @@ -10,8 +12,10 @@ # 1.2. user with password createuser --pwprompt username # 2. create new database # specify user that will access this database (created below) createdb -O username dbname # 3. test connection -
1st revised this gist
Dec 9, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ # 0. install a Postgres # we use HomeBrew for this brew install postgres # 1. create new user for a database -
1st revised this gist
Dec 9, 2015 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,17 +3,17 @@ brew install postgres # 1. create new user for a database # 1.1. user without password createuser username # 1.2. user with password createuser --pwprompt username # 2. create new database createdb -Ousername dbname # 3. test connection # 3.1. user without password psql -U username dbname # 3.2. user with password psql -U username -W dbname -
1st revised this gist
Dec 9, 2015 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ # 0. install a Postgres brew install postgres # 1. create new user for a database # 1.1. user without password -
1st revised this gist
Dec 9, 2015 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,16 @@ # 1. create new user for a database # 1.1. user without password createuser username # 1.2. user with password createuser --pwprompt username # 2. create new database createdb -Ousername dbname # 3. test connection # 3.1. user without password psql -U username dbname # 3.2. user with password psql -U username -W dbname -
1st revised this gist
Dec 9, 2015 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,16 @@ # 1. create new user for a database # 1.1. user with password createuser --pwprompt username # 1.2. user without password createuser username # 2. create new database createdb -Ousername dbname # 3. test connection # 3.1. user with password psql -U username -W dbname # 3.2. user without password psql -U username dbname -
1st renamed this gist
Dec 9, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
1st created this gist
Dec 9, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ ### 1. create new user for a database # 1.1. user with password createuser --pwprompt username # 1.2. user without password createuser username # create new database createdb -Ousername dbname