I'm using pgAdminIII SQL Editor to developdeveloping a really long script. I'd like to break the script into smaller, more manageable scripts and include each sql file in a master file, then just execute the master file.
example: master.sql
contents (I don't know the syntax to use):
file1.sql
file2.sql
file3.sql
I've found several tutorials about using psql -f
in the command-line and \i
to include these files, but I'd ratherthe preference here is to avoid the terminal and use a GUI to executemanage my scripts while I developdatabase and test locallyexecute the master.sql
script.
Is this possible in any postgres admin GUI? Any references/documentation would be very helpful.
Presumably it's EDIT: For claritynot, I'm not asking about better products to use other than pgAdmin (unless the product can do what I'm asking above), nor am I asking how to do this in psql - I already have documentation for that and I don't want to use the command line. Preference is for executing the master.sql
script file in a sql editorpgAdmin.