Re: Automate copy - Postgres 9.2

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Automate copy - Postgres 9.2
Дата
Msg-id CAKFQuwYmEaoYT0FCnqMwgxA_3N-7B=v0UowzokJdFckgO7xa1w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Automate copy - Postgres 9.2  (Patrick B <patrickbakerbr@gmail.com>)
Ответы Re: Automate copy - Postgres 9.2  (rob stone <floriparob@gmail.com>)
Список pgsql-general

POn Wednesday, June 8, 2016, Patrick B <patrickbakerbr@gmail.com> wrote:

ERROR:  syntax error at or near "||"
LINE 12:     TO '/var/lib/pgsql/' || crtrow.account_id |...

Which tells me you cannot use an expression as a file name.  The docs support this conclusion.

You probably need to use EXECUTE after constricting a string.

You could also try psql in a shell script.

David J. 

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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Automate copy - Postgres 9.2
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Automate copy - Postgres 9.2