Two successive tabs in test case are causing syntax error in psql - Mailing list pgsql-hackers

From Jingtang Zhang
Subject Two successive tabs in test case are causing syntax error in psql
Date
Msg-id CAPsk3_CiVMdfK6feYMzMsFAz5EJGNxC5SH4TL=wfKXfK3BkigQ@mail.gmail.com
Whole thread Raw
Responses Re: Two successive tabs in test case are causing syntax error in psql
List 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

Attachment

pgsql-hackers by date:

Previous
From: Andrey Lepikhov
Date:
Subject: Re: Fast COPY FROM based on batch insert
Next
From: Bruce Momjian
Date:
Subject: Re: System catalog documentation chapter