- patched dbpassword for babel-sql database postgresql. Sent patch to
upstream. Set's environment variable for psql command. Without it no
password login unless configured in psql configuration file.
(org-babel-process-file-name in-file)
(org-babel-process-file-name out-file)))
('postgresql (format
- "psql --set=\"ON_ERROR_STOP=1\" %s -A -P footer=off -F \"\t\" %s -f %s -o %s %s"
+ "%s psql --set=\"ON_ERROR_STOP=1\" %s -A -P footer=off -F \"\t\" %s -f %s -o %s %s"
+ (if dbpassword (concat "PGPASSWORD='" dbpassword "'") "")
(if colnames-p "" "-t")
(org-babel-sql-dbstring-postgresql dbhost dbuser database)
(org-babel-process-file-name in-file)