---
title: "Starta PostgreSQL med -i flaggan!"
type: "forum-thread"
url: "https://www.webforum.nu/amne/linux-bsd/72763-starta-postgresql-med-i-flaggan"
topic: "Linux & BSD"
topic_url: "https://www.webforum.nu/amne/linux-bsd"
author: "Poppe25"
published: "2003-04-01T10:38:33.000Z"
updated: "2003-04-01T10:43:08.000Z"
replies: 1
views: 181
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/linux-bsd/72763-starta-postgresql-med-i-flaggan"
---

# Starta PostgreSQL med -i flaggan!

## #1 — Poppe25, 2003-04-01T10:38Z

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
 \*/

Permalänk: https://www.webforum.nu/p/72763

## #2 — SirPeter, 2003-04-01T10:43Z

Tråden stängs med hänvisning till den andra tråden.
Var snäll och korsposta inte.

<http://www.webforum.nu/showthread.php?s=&threadid=71243>

Permalänk: https://www.webforum.nu/p/998154

---

Tråden på webben: https://www.webforum.nu/amne/linux-bsd/72763-starta-postgresql-med-i-flaggan
