pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radosław Smogura <rsmogura@softperience.eu>
To: Craig Ringer <craig@postnewspapers.com.au>
Cc: Lord Voldemort <murderthemuggles@yahoo.co.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Help me start postmaster on a default installation of PostgreSQL.
Date: Thu, 07 Jul 2011 15:34:34 +0200
Message-ID: <33621f5e49317e83d62d53b5c8637d96@mail.softperience.eu> (raw)
In-Reply-To: <4E15A0D1.2040706@postnewspapers.com.au>
References: <4E143A4F.50104@yahoo.co.in>
	<4E1450C9020000250003F047@gw.wicourts.gov>
	<CAH_hXRYFcQiWxuu-CjsgpTenVZLgCKNO+6iL__1xXKgAMWTm8A@mail.gmail.com>
	<4E158C26.3090305@yahoo.co.in>
	<4E15A0D1.2040706@postnewspapers.com.au>

 On Thu, 07 Jul 2011 20:04:33 +0800, Craig Ringer wrote:
> On 7/07/2011 6:36 PM, Lord Voldemort wrote:
>> I've sorted out things myself.
>>
>> Firstly IMHO this list is the appropriate place for my query as 
>> you'd
>> see that what I really want is to use JDBC with PostgreSQL. Running
>> postmaster was supposed to be a way to accomplish that.
>>
>> But as it turns out, newer versions of PostgreSQL have done away 
>> with
>> postmaster completely.
>
> Say what?
>
> No, there's still a postmaster. You wouldn't ever be invoking it
> directly, though; you use pg_ctl to control PostgreSQL if you
> installed from source or from the EnterpriseDB packages. For distro
> packages of PostgreSQL you use your distro's service management
> mechanism: the "service" command, /etc/init.d/ scripts, etc.
>
> If you're using distro packages of PostgreSQL, stick to the distro's
> management methods.
>
>> After default installation nothing needs to be
>> changed. Services necessary for backend database access are started
>> automatically at boot-up.
>
> Note that PostgreSQL probably only listens on 127.0.0.1 or it may
> have TCP/IP disabled so it only uses UNIX sockets. You may need to
> alter postgresql.conf if you want to listen on other interfaces.
>
>> After installing libpg-java (that's the JDBC
>> driver package for postgreSQL) all that needs to be done is to add
>> /usr/share/java/postgresql.jar to the java library. I use NetBeans 
>> so
>> that was easy for me. I don't know how to do that when running
>> applications from command line using "java /classname/" though.
>
> Use the -classpath argument to the JVM.
>
> Typically, though, you bundle the PostgreSQL JDBC driver within your
> executable JAR and run it with "java -jar myapp.jar", using a
> Main-class: entry in META-INF/MANIFEST.MF to tell Java what the entry
> point class is. This is all basic Java stuff and has nothing to do
> with PostgreSQL, though.
 ...and for more advanced tasks use urlclassloader, refer to JavaDoc.

 Regards,
 Radek

> --
> Craig Ringer
>
> POST Newspapers
> 276 Onslow Rd, Shenton Park
> Ph: 08 9381 3088     Fax: 08 9388 2258
> ABN: 50 008 917 717
> http://www.postnewspapers.com.au/




view thread (7+ messages)

Message-ID: <33621f5e49317e83d62d53b5c8637d96@mail.softperience.eu>
Permalink:  ../33621f5e49317e83d62d53b5c8637d96@mail.softperience.eu/
Also on:    postgresql.org/message-id/33621f5e49317e83d62d53b5c8637d96@mail.softperience.eu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: rsmogura@softperience.eu, craig@postnewspapers.com.au, murderthemuggles@yahoo.co.in
  Subject: Re: Help me start postmaster on a default installation of PostgreSQL.
  In-Reply-To: <33621f5e49317e83d62d53b5c8637d96@mail.softperience.eu>
  References: <4E143A4F.50104@yahoo.co.in> <4E1450C9020000250003F047@gw.wicourts.gov> <CAH_hXRYFcQiWxuu-CjsgpTenVZLgCKNO+6iL__1xXKgAMWTm8A@mail.gmail.com> <4E158C26.3090305@yahoo.co.in> <4E15A0D1.2040706@postnewspapers.com.au> <33621f5e49317e83d62d53b5c8637d96@mail.softperience.eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox