Skip to content

Commit

Permalink
Update postgresql.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Özgür ÖZKAN committed Apr 10, 2013
1 parent e72131e commit bfbe17d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions development/server/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,26 @@ sudo apt-get upgrade
## Ayarları
## DB İşlemleri
**Create DB**
* Serverin locale si ayarlanması
* ENCODING'ı unutmayın!
`CREATE DATABASE xxxx_production OWNER xxxx ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TEMPLATE template0;`
**DROP DB**
`DROP DATABASE xxxx_production;`
**Can't Drop Db Sorunsali**
DB yi kullanan sessionlarin olmasi durumu.
`SELECT pid FROM pg_stat_activity where pid <> pg_backend_pid();`
`SELECT pg_terminate_backend(pid);`
### Bağlantı ve Yetkilendirme
* http://www.postgresql.org/docs/9.2/interactive/runtime-config-connection.html
Expand Down

0 comments on commit bfbe17d

Please sign in to comment.