Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

pgsrvtool

GUI tool to run postgresql server in background, minimized to tray

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

PG Server GUI

https://www.github.com/parmaja/pgserver

GUI tool to run postgresql server in background, minimized to tray, without using the service, usefull for portable projects, or if you want postgresql on external harddisk with data, maybe encrypted harddisk.

You need to add pgserver.ini next the exe file

pgpath: Path to exe bin folder of postgresql datapath=Path to data, it should be initialized by

pascal
initdb.exe -W -U postgres -D "d:\data\pg13" -E UTF8

All paths are relative to app folder, you can point to your data folder like this '.\data' , '..\data' , '.\data', '\data' last one is point to root of same drive

tray: true if you want to make tray always show minimized: start the application minimized start: auto start server, work with minimzed too

Example of pgserver.ini

pascal
[options]
pgpath=\programs\pg17-64\bin
datapath=\data\pg17
username=postgres
#port=54321
tray=true
minimized=false
start=false

Note

if you dont want to use this project, and want to install pg as server run this command once in admin privileges

pascal
pg_ctl.exe register -N "pg17" -U "NT AUTHORITY\NetworkService" -D "d:\data\pg17" -w

License

MIT(https://opensource.org/licenses/MITT