I want to write a throwaway Erlang script using escript that talks to a PostgreSQL database. How do I reference the epgsql application from my script?
If I simply {ok, C} = pgsql:connect(Host, User, Pass, Opts), then I get undefined function pgsql:connect/4.