Re: sql files in psql ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sql files in psql ?
Дата
Msg-id 19627.1275340485@sss.pgh.pa.us
обсуждение исходный текст
Ответ на sql files in psql ?  (Mariateresa L <mariateresa.ll@bresciaonline.it>)
Ответы Re: sql files in psql ?  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
Список pgsql-novice
Mariateresa L <mariateresa.ll@bresciaonline.it> writes:
> ... I want to pack everything in a nice shell script,
> with proper error control, automated file shuffling,
> predefined queries in text files and so on, but I cannot
> convince psql that the SQL commands (select, insert or
> copy...) it has to handle come from a file.
> I can submit  ("\i filename" or "psql --file filename")
> files that contains commands, eg starting with "\" but
> psql does not understand the same sintax if tne file
> contains a simple "SELECT * FROM tablex".

Really?  Works for most people.

> Am I uber-newbie or is this a known limitation of psql?

Well, you need to learn something about submitting trouble reports.
Show us exactly what you did (including what's in the file) and
exactly what error messages you got, rather than telling us what your
interpretation of the problem is.

            regards, tom lane

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

Предыдущее
От: Mariateresa L
Дата:
Сообщение: Fwd: psql in bash scrpts, is possible ?
Следующее
От: Lonni J Friedman
Дата:
Сообщение: Re: psql in bash scrpts, is possible ?