Re: SQL Path in psql

Поиск
Список
Период
Сортировка
От BladeOfLight16
Тема Re: SQL Path in psql
Дата
Msg-id CA+=1U=UXOSzoA7qTmvMYnj=CiscNsJ34b3oaE958OTBM2qERHQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SQL Path in psql  (David Kerr <dmk@mr-paradox.net>)
Список pgsql-general
On Fri, Sep 6, 2013 at 1:58 PM, David Kerr <dmk@mr-paradox.net> wrote:
I suspect this feature makes more sense on a windows platform. On linux where we can
go psql -f ${SQLPATH}/file.sql . it becomes less pressing. Even Oracle
on unix/linux where you can go sqlplus <<EOD @${SQLPATH}/file.sql EOD. makes
it less a requirement.

I don't see why you couldn't do the same thing in command prompt on Windows:

SET PGSQLPATH=C:\somedir
psql -f %PGSQLPATH%\file.sql

Naturally, you could configure a permanent environment variable instead of using SET.

В списке pgsql-general по дате отправления:

Предыдущее
От: Rob Sargentg
Дата:
Сообщение: Re: Sum of columns
Следующее
От: Jayadevan M
Дата:
Сообщение: Re: [pgeu-general] Call for design: PostgreSQL mugs