Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ycku authored Sep 28, 2020
1 parent d2cd9e7 commit 4e021a8
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Portable PostgreSQL for Windows
PostgreSQL 免安裝版,其實 PostgreSQL 不一定需要安裝程序,就可以使用喔!<br/>
你可以自己設定資料目錄,也可以不管,總之就是啓動它。<br/>
本專案把前置工作先做完了,讓各位可以下載就直接使用。
- PostgreSQL 免安裝版,其實 PostgreSQL 不一定需要安裝程序就可以使用喔!
- 你可以自己設定資料目錄,也可以不管,總之就是啓動它。
- 本專案只是加入指令,讓各位可以下載就直接使用。
1. 初始化
2. 啟動/停止
3. 加入 python 3.7, 可以直接 CREATE LANGUAGE plpython3u

下面情況使用這個機制特別方便:
1. 你在你要安裝的電腦沒有管理者權限。
2. 你需要同時使用好幾個不同的 PostgreSQL。
3. 你的應用軟體自帶 PostgreSQL,程式開關服務和調整參數。
4. 你只想使用 Client 工具或 pgAdmin 4。
- 下面情況使用這個機制特別方便:
1. 你在你要安裝的電腦沒有管理者權限。
2. 你需要同時使用好幾個不同的 PostgreSQL。
3. 你的應用軟體自帶 PostgreSQL,程式自行開關服務和調整參數。

如果你也想做一個你自己的,最簡單的方法就是,把你安裝好的 PostgreSQL 拷貝出來,大致上就是本專案的內容。

- 如果你也想做一個你自己的,最簡單的方法就是,把你安裝好的 PostgreSQL 拷貝出來,大致上就是本專案的內容。
- 因為 pgAdmin 4 過於肥大,所以在此專案不包含在內;如果你需要,請使用官方推薦的安裝程式。

## Tested
- Windows 10
Expand Down Expand Up @@ -48,6 +52,6 @@ stop.bat

## 其他
1. 使用後會新產生一個 logfile.txt 記錄檔,供除錯之用。
2. "data" 目錄是可以搬移的,在停止服務的狀態,放置到你需要的路徑,然後修改 start.bat 和 stop.bat 的內容。
2. "data" 目錄是可以搬移的,在停止服務的狀態,放置到你需要的路徑,然後修改 PGDATA.txt 的內容。
3. start.bat 和 stop.bat 指向的資料目錄(-D directory)必須相同。
4. 請參閱: [pg_ctl](https://www.postgresql.org/docs/current/app-pg-ctl.html)[initdb](https://www.postgresql.org/docs/current/app-initdb.html)[postgres](https://www.postgresql.org/docs/current/app-postgres.html)

0 comments on commit 4e021a8

Please sign in to comment.