Sitter med Mac OS X och behöver starta PostgreSQL med -i flaggan. Är fräck och postar med. här, tänker att ni som kan UNIX säkert kan hjälpa mig. Vad jag vill är att implementera en Java-klass, följande kommentar bör förklara saken:
/**
* The TestPostgreSQL class shows how to access the PostgreSQL
* DB server on Mac OS X using the JDBC interface.
* It assumes the installation has been performed according
* to the instructions at http://www.entropy.ch/software/macosx/postgresql.
*
*
* You compile it like this:
*
* % javac TestPostgreSQL.java
*
* Make sure that the PostgreSQL server has been
* started with the -i flag. This is not the case in
* the example lines of the installation instructions mentioned
* above and in the StartupItem package that's available
* from the same location. The -i flag tells the DB server
* to listen for connection requests from the network
* and I have left it off by default for security reasons.
*
* If the server is running correctly (with -i), run the Test like this:
* (in the same directory where you compiled the example)
*
* % java -classpath /usr/local/pgsql/share/java/postgresql.jar:. TestPostgreSQL
*
* You should see the current date as returned by the DB server:
*
* 2001-06-23 16:31:49+02
*
*
* @author Marc Liyanage
* @version 1.0
*/