This commit is contained in:
2021-10-08 17:57:52 +00:00
parent 3bc96dbacb
commit 17f95daad8
2 changed files with 20 additions and 5 deletions

View File

@@ -246,3 +246,14 @@ Good test time zones:
America/St_Johns - because it has a fractional hour difference
America/New_York
America/Los_Angeles
## How to make a postgres portable from binaries
download latest binaries: https://www.enterprisedb.com/download-postgresql-binaries
unzip latest binaries to a source folder
make a dest folder in c:\data\code\postgres_xx
copy bin, lib, share folders from source to dest
Create a new db, run this once:
c:\data\code\postgres_14\bin\initdb -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -U postgres -A trust
that's it, run it with:
C:\data\code\postgres_14\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -l logfile start