agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Using the $DATADIR variable within postgresql.conf
Date: Fri, 2 Jun 2006 15:31:50 -0400
Message-ID: <7426fe270606021231q11b297b4m76258a1ae53cb49a@mail.gmail.com> (raw)

Hi all,
  I'm trying to set up PL/JAVA in a flexible way based on the mount point of
my data for postgres.  I'd like to have to dynamic_library_path point to
$DATADIR/pljava, where $DATADIR the data directory of postgres (the
directory containing postgresql.conf and pg_hba.conf).  That way I can just
mount the postgres data onto a mount point, point the postmaster to the
right place, and have PL/JAVA ready to roll with the database.  This type of
flexibility becomes particularly relevant with Xen images...

The problem is that I don't know how to reference the $DATADIR environment
variable from with postgresql.conf.  I've tried $DATADIR, $datadir,
$data_directory (which apparently must be hard-set at the top of
postgresql.conf ), ${DATADIR}, {$DATADIR}, etc.  I always get the same
message in the deployer:
ERROR: invalid macro name in dynamic library path: $libdir;{$DATADIR}/pljava

Does anyone have any ideas how to do this?

Thanks,

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060602/0d8f9266/attachment.html;



view thread (2+ messages)  latest in thread

Message-ID: <7426fe270606021231q11b297b4m76258a1ae53cb49a@mail.gmail.com>
Permalink:  ../7426fe270606021231q11b297b4m76258a1ae53cb49a@mail.gmail.com/
Also on:    postgresql.org/message-id/7426fe270606021231q11b297b4m76258a1ae53cb49a@mail.gmail.com

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 using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] Using the $DATADIR variable within postgresql.conf
  In-Reply-To: <7426fe270606021231q11b297b4m76258a1ae53cb49a@mail.gmail.com>

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

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