와 라텍스 직접 포스트 그레스에서 쿼리 결과를 얻을 수 있었다. 프로세스는 문서 article에 설명 된 MySQL과 유사합니다. 두 번째 일반적인 가능성은 일부 쿼리의 결과를 CSV 형식 파일로 내보내고 Excel로 가져 오는 것입니다. 그것은 간단하고 일반적으로 완벽하게 작동합니다.
[[email protected] ~]$ psql postgres
psql (9.1.9, server 9.4devel)
WARNING: psql version 9.1, server version 9.4.
Some psql features might not work.
Type "help" for help.
postgres=# \copy (SELECT * FROM pg_database) TO ~/data.csv CSV HEADER
postgres=# \q
[[email protected] ~]$ tail ~/data.csv
datname,datdba,encoding,datcollate,datctype,datistemplate,datallowconn,datconnlimit,datlastsysoid,datfrozenxid,datminmxid,dattablespace,datacl
template1,10,6,en_US.UTF-8,en_US.UTF-8,t,t,-1,12948,1879,1,1663,"{=c/postgres,postgres=CTc/postgres}"
template0,10,6,en_US.UTF-8,en_US.UTF-8,t,f,-1,12948,1879,1,1663,"{=c/postgres,postgres=CTc/postgres}"
postgres,10,6,en_US.UTF-8,en_US.UTF-8,f,t,-1,12948,1879,1,1663,
같은 메커니즘 당신은 라텍스에 사용할 수있는 http://texblog.org/2012/05/30/generate-latex-tables-from-csv-files-excel/