portable-devtools / scripts /start_postgres.bat
codekingpro's picture
Add files using upload-large-folder tool
e98b0a7 verified
Raw
History Blame Contribute Delete
378 Bytes
@echo off
setlocal
call "%~dp0activate_env.bat"
if not exist "%DEVTOOLS_ROOT%\pgsql_data" (
echo [ERROR] PostgreSQL data directory not found. Please run init_postgres.bat first.
exit /b 1
)
echo [INFO] Starting PostgreSQL Server...
pg_ctl -D "%PGDATA%" -l "%DEVTOOLS_ROOT%\pgsql_data\server.log" start
echo [SUCCESS] PostgreSQL is running on default port 5432!
endlocal