Hello
Can i create an postgres table without using psql
Currentl i have two step ?
echo =========================
echo STEP 1a - EXPORT TABLE CONFIG
rem call ora2pg -c %CONFIG% -t TABLE -o tables.sql -s scgp_refonte2026
call ora2pg -c %CONFIG% -t TABLE -o %FILE%
IF %ERRORLEVEL% NEQ 0 (
echo ERROR during TABLE export
exit /b 1
)
echo STEP 1b - PHYSICALLY CREATE TABLE
call C:\postgresql-18\bin\psql -h %PGHOST% -p %PGPORT% -d %PGDBNAME% -f %FILE%
Can i have same result in one single command ?
Regards
Hello
Can i create an postgres table without using psql
Currentl i have two step ?
echo =========================
echo STEP 1a - EXPORT TABLE CONFIG
rem call ora2pg -c %CONFIG% -t TABLE -o tables.sql -s scgp_refonte2026
call ora2pg -c %CONFIG% -t TABLE -o %FILE%
IF %ERRORLEVEL% NEQ 0 (
echo ERROR during TABLE export
exit /b 1
)
echo STEP 1b - PHYSICALLY CREATE TABLE
call C:\postgresql-18\bin\psql -h %PGHOST% -p %PGPORT% -d %PGDBNAME% -f %FILE%
Can i have same result in one single command ?
Regards