<div dir="ltr"><div>I am having difficulty connecting to the postgres server from Racket.  It asks for a password, but role and authentication is set up so that the logged in local user does not need one.</div><div><br></div><div>1. these versions:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>(Debian 4.6.3-14)</div><div>Racket 5.2.1</div><div><div>postgres (9.1.14)</div></div></blockquote><div><br></div><div>2. running psql from a shell prompt doesn't prompt for anything, just works:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>> psql</div></div><div><div>psql (9.1.14)</div></div><div><div>Type "help" for help.</div></div><div><div><br></div></div><div><div>lynch=> \list</div></div><div><div>                                  List of databases</div></div><div><div>   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   </div></div><div><div>-----------+----------+----------+-------------+-------------+-----------------------</div></div><div><div> lynch       | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | </div></div><div><div> postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | </div></div><div><div> template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +</div></div><div><div>           |          |          |             |             | postgres=CTc/postgres</div></div><div><div> template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +</div></div><div><div>           |          |          |             |             | postgres=CTc/postgres</div></div><div><div>(4 rows)</div></div><div><div><br></div></div></blockquote><div><br></div><div>3. running from racket however, gives an error, saying it needs a password:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>racket@> (require db)</div><div><div>racket@> (define pgc (postgresql-connect #:database "lynch" #:user "lynch"))</div></div><div><div>postgresql-connect: password needed but not supplied</div></div><div><div>stdin::319: ((checked-procedure-check-and-extract struct:keyword-procedure pgc keyword-procedure-extract (quote (#:database #:user)) (quote 2)) (quote (#:database #:user)) (list temp7 temp8))</div></div></blockquote><div><br></div><div><br></div><div>Ah, so what am I doing wrong here?</div><div><br></div><div>Thanks.</div></div>