Accessing environment variables from psql - Mailing list pgsql-general

From Leif B. Kristensen
Subject Accessing environment variables from psql
Date
Msg-id 200504091359.29549.leif@solumslekt.org
Whole thread Raw
Responses Re: Accessing environment variables from psql (SOLVED)  ("Leif B. Kristensen" <leif@solumslekt.org>)
List 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/

pgsql-general by date:

Previous
From: "Julian Scarfe"
Date:
Subject: Re: Index use with left join
Next
From: Michal Hlavac
Date:
Subject: create user with database and contrib