Two successive tabs in test case are causing syntax error in psql

Поиск
Список
Период
Сортировка
От Jingtang Zhang
Тема Two successive tabs in test case are causing syntax error in psql
Дата
Msg-id CAPsk3_CiVMdfK6feYMzMsFAz5EJGNxC5SH4TL=wfKXfK3BkigQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Two successive tabs in test case are causing syntax error in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi, community.

Recently, when I was developing some function about INSERT ... ON CONFLICT, I used test cases in `src/test/regress/sql/insert_conflict.sql` to evaluate my function. When I copy the CREATE TABLE from this case alone, and paste it to psql, I got a syntax error. As I go through the case carefully, I found the CREATE TABLE uses two tabs to separate column name and column type, and this two tabs are regarded as an auto completion instruction by psql, causing no separation between column name and column type anymore.

It may not be a problem since this case has passed the regression, but would it be better to use space here to avoid this confusing situation? Since other part of this case are all using spaces.

Never mind my opinion as a beginner, thanks.


Jingtang Zhang

Вложения

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

Предыдущее
От: Andrey Lepikhov
Дата:
Сообщение: Re: Fast COPY FROM based on batch insert
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: System catalog documentation chapter