prompt> echo "INSERT INTO agenda VALUES ('Super Man','superman@palaciodajustica.com')" | psql -f- mysql_bash
INSERT 16572 1
prompt>
prompt> echo "INSERT INTO agenda VALUES ('Batman','batman@batmail.com')" | psql -f- mysql_bash
INSERT 16573 1
prompt>
prompt> echo "\d agenda" | psql -U postgres -f- mysql_bash
Table "agenda"
Column | Type | Modifiers
--------+-----------------------+-----------
nome | character varying(50) |
email | character varying(35) |
prompt>
prompt> echo "\pset border 2; \d agenda" | psql -U postgres -f- mysql_bash
Border style is 2.
Table "agenda"
+--------+-----------------------+-----------+
| Column | Type | Modifiers |
+--------+-----------------------+-----------+
| nome | character varying(50) | |
| email | character varying(35) | |
+--------+-----------------------+-----------+
prompt>