psql \i

Поиск
Список
Период
Сортировка
От Richard Harvey Chapman
Тема psql \i
Дата
Msg-id Pine.LNX.4.10.10007121120530.10311-100000@smile.3gfp.com
обсуждение исходный текст
Ответы Re: psql \i --UPDATE  (Richard Harvey Chapman <hchapman@3gfp.com>)
Список pgsql-general
I have a text file of SQL commands which contains tabs.  I used to be able
to import it using psql using "\i file.sql".  Now, I've upgraded to 7.0.2
and it treats the file as if I'm entering it all in manually.  It treats
the tabs as completion commands.

CREATE TABLE alpha (
<TAB>num<TAB>SERIAL PRIMARY KEY
);

will return a syntax error at PRIMARY because it sees the following:

CREATE TABLE alpha (
numSERIAL PRIMARY KEY
);

Is there something new that I have to do?

(besides converting the tabs -- if all else fails, I'll do that)

R.



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

Предыдущее
От: "J.R. Belding"
Дата:
Сообщение: Re: psql and Gnu readline
Следующее
От: Richard Harvey Chapman
Дата:
Сообщение: automatic sequences