@rem this is to initialize a new db first time a new version is set up of postgres @rem c:\data\code\postgres_14\bin\initdb -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -U postgres -A trust @rem old version @rem C:\data\code\postgres_13\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_13^\ayanova^" -l logfile start C:\data\code\postgres_15\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_15^\ayanova^" -l logfile start ECHO Press any key to stop POSTGRES database server pause C:\data\code\postgres_15\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_15^\ayanova^" stop @REM @ECHO OFF @REM setlocal @REM SET PATH="%~dp0postgres\bin";%PATH% @REM SET PGDATA=%~dp0data\database @REM SET PGDATABASE=AyaNova @REM SET PGUSER=postgres @REM SET PGPORT=5432 @REM SET PGLOCALEDIR=%~dp0postgres\share\locale @REM "%~dp0\postgres\bin\pg_ctl" -D "%~dp0/data/database" -l %~dp0data\logs\postgreslog start @REM ECHO Press any key to stop POSTGRES database server @REM pause @REM "%~dp0\postgres\bin\pg_ctl" -D "%~dp0/data/database" stop @REM endlocal