Skip to content

Commit 5c6a07b

Browse files
author
Onur Özgür ÖZKAN
committed
Update postgresql.md
1 parent bfbe17d commit 5c6a07b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

development/server/postgresql.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,24 @@ sudo apt-get upgrade
9696
* Serverin locale si ayarlanması
9797
* ENCODING'ı unutmayın!
9898
99-
`CREATE DATABASE xxxx_production OWNER xxxx ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TEMPLATE template0;`
99+
```sql
100+
CREATE DATABASE xxxx_production OWNER xxxx ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TEMPLATE template0;
101+
````
100102
101103
**DROP DB**
102104
103-
`DROP DATABASE xxxx_production;`
105+
```sql
106+
DROP DATABASE xxxx_production;
107+
````
104108
105109
**Can't Drop Db Sorunsali**
106110
107111
DB yi kullanan sessionlarin olmasi durumu.
108112
109-
`SELECT pid FROM pg_stat_activity where pid <> pg_backend_pid();`
110-
`SELECT pg_terminate_backend(pid);`
113+
```sql
114+
SELECT pid FROM pg_stat_activity where pid <> pg_backend_pid();
115+
SELECT pg_terminate_backend(pid);
116+
````
111117

112118
### Bağlantı ve Yetkilendirme
113119

0 commit comments

Comments
 (0)