If that's the case, then you may be out of luck. I was thinking that if you specified a database name or database name + user name, it might allow it if it can detect that the socket connection happens over the loopback interface. But unless there's a part of the pg jdbc driver that I'm not aware of (which is possible), I wouldn't expect any configuration to make use of a unix socket file.
Cheers, /Nick On Tue, Aug 25, 2009 at 5:58 PM, Bryan Richardson<[email protected]> wrote: > Guess I should have stated that I did try a couple of different > configurations but to no avail. Can't remember all the configs I tried, but > they were along the lines of specifying jdbcpostgresql as the adapter, > specifying jdbc as the adapter and providing a url of > jdbc:postgresql:<dbname> and a driver of org.postgresql.Driver, specifying a > socket of /var/run/postgresql, etc. > > On Tue, Aug 25, 2009 at 2:59 PM, Nick Sieger <[email protected]> wrote: >> >> On Aug 25, 2009, at 15:44 , Bryan Richardson wrote: >> >>> Hello all, >>> >>> When I use postgresql with a regular Rails app, I can simply provide the >>> adapter and database name and ActiveRecord knows to try and access Postgres >>> on the local machine using the user Rails is running under. Thus, I don't >>> have to provide a password. Is this possible with the JDBC version? >> >> Come to think of it, I'm not sure. It might work. Try it? >> >> /Nick >> >> _______________________________________________ >> Jruby-extras-devel mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/jruby-extras-devel > > > _______________________________________________ > Jruby-extras-devel mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > _______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
