title: What is the mapping between psql command line and conninfo for PGConn?
body: <p>Psql command line accepts connection arguments via the short flags -d, -h,-u, p as seen in this documentation <a href="https://www.postgresql.org/docs/10/static/app-psql.html" rel="nofollow noreferrer">https://www.postgresql.org/docs/10/static/app-psql.html</a></p>
  
  <p>PGConn takes in conninfo strings as seen in the first program of this example: <a href="https://www.postgresql.org/docs/9.1/static/libpq-example.html" rel="nofollow noreferrer">https://www.postgresql.org/docs/9.1/static/libpq-example.html</a> but this documentation only explains how to specify <code>dbname</code> or the <code>'-d' flag</code>. How would you make a conninfo string that specifies <code>-h, -u, and -p</code>?</p>