diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 4e1daa5e1..263675216 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -66,6 +66,8 @@ This function is called by `org-babel-execute-src-block'." (command (case (intern engine) ('mysql (format "mysql %s -e \"source %s\" > %s" (or cmdline "") in-file out-file)) + ('postgresql (format "psql -A -P footer=off -F \"\t\" -f %s -o %s %s" + in-file out-file (or cmdline ""))) (t (error "no support for the %s sql engine" engine))))) (with-temp-file in-file (insert (org-babel-expand-body:sql body params)))