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 bfbe17d commit 5c6a07b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions development/server/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,24 @@ sudo apt-get upgrade
* 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;`
```sql
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;`
```sql
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);`
```sql
SELECT pid FROM pg_stat_activity where pid <> pg_backend_pid();
SELECT pg_terminate_backend(pid);
````

### Bağlantı ve Yetkilendirme

Expand Down

0 comments on commit 5c6a07b

Please sign in to comment.