Accessing environment variables from psql

From: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Accessing environment variables from psql
Date: 2005-04-09 11:59:29
Message-ID: 200504091359.29549.leif@solumslekt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to access environment variables from psql? I can't find
any documentation on how to do this:

leif=> \! echo $IMPORTDIR
/home/leif/slekta/import/scripts
leif=> \i $IMPORTDIR/test.sql
$IMPORTDIR/test.sql: No such file or directory
leif=> \i $(IMPORTDIR)/test.sql
$(IMPORTDIR)/test.sql: No such file or directory
leif=> \i ${IMPORTDIR}/test.sql
${IMPORTDIR}/test.sql: No such file or directory
--
Leif Biberg Kristensen
http://solumslekt.org/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michal Hlavac 2005-04-09 12:37:28 create user with database and contrib
Previous Message Julian Scarfe 2005-04-09 09:53:09 Re: Index use with left join