Shell script to execute pgsql commands in files

后端 未结 5 1728
囚心锁ツ
囚心锁ツ 2020-12-05 23:08

I am trying to automate a set of procedures that create TEMPLATE databases.

I have a set of files (file1, file2, ... fileN), each of which contains a set of pgsql com

5条回答
  •  北海茫月
    2020-12-05 23:32

    Store your sql scripts under a root dir Use dev,tst,prd parametrized dbs Use find to run all your pgsql scripts as shown here Exit on errors

    Or just git clone the whole tool from here

提交回复
热议问题