{"id":2731,"date":"2013-08-29T15:23:41","date_gmt":"2013-08-29T15:23:41","guid":{"rendered":"http:\/\/www.withdata.com\/ad\/?p=2731"},"modified":"2013-08-29T15:23:41","modified_gmt":"2013-08-29T15:23:41","slug":"how-to-execute-sql-file-via-command-line-for-postgresql","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/postgresql\/how-to-execute-sql-file-via-command-line-for-postgresql.html","title":{"rendered":"How to execute sql file via command line for PostgreSQL"},"content":{"rendered":"<p>Use <strong>psql<\/strong><\/p>\n<pre><code>psql -U username -d myDataBase -a -f myInsertFile<\/code><\/pre>\n<p>More information:\u00a0<a href=\"http:\/\/blog.manoharbhattarai.com.np\/2013\/04\/03\/execute-sql-file-from-command-line-in-postgresql\/\">http:\/\/blog.manoharbhattarai.com.np\/2013\/04\/03\/execute-sql-file-from-command-line-in-postgresql\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use psql psql -U username -d myDataBase -a -f myInsertFile More information:\u00a0http:\/\/blog.manoharbhattarai.com.np\/2013\/04\/03\/execute-sql-file-from-command-line-in-postgresql\/<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[430],"tags":[73,463,1370],"class_list":["post-2731","post","type-post","status-publish","format-standard","hentry","category-postgresql","tag-command-line","tag-command-line-execute-sql","tag-postgresql"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=2731"}],"version-history":[{"count":1,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2731\/revisions"}],"predecessor-version":[{"id":2732,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2731\/revisions\/2732"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=2731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=2731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=2731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}