SQL Path in psql

From: Bobby Dewitt <Bdewitt(at)appriss(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: SQL Path in psql
Date: 2011-05-20 22:07:35
Message-ID: C9FC5E8E.173E7%bdewitt@appriss.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I come from an Oracle background and I am fairly new to Postgres. Oracle's command line utility (SQL*Plus) uses an environment variable called SQLPATH to search the given directories for SQL scripts that the user calls to execute using a method similar to the \i meta-command in psql. This allows users to put SQL scripts in various directories and execute them no matter which directory is there current working directory in psql.

Is there a similar environment variable that can be used with psql, or another way to mimic this behavior?

Thanks,
Bobby

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kohei Kaigai 2011-05-21 01:50:11 Re: Error compiling sepgsql in PG9.1
Previous Message Seb 2011-05-20 19:00:35 Re: implementing check-in/check-out of an items table