| @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 | |