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

2022-07-10 Thread Alvaro Herrera
On 2022-Jul-08, Tom Lane wrote: > The usual recommendation for pasting text into psql when it contains > tabs is to start psql with the -n switch to disable tab completion. "Bracketed paste" also solves this problem. To enable this feature, just edit your $HOME/.inputrc file to have the line s

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

2022-07-08 Thread Jingtang Zhang
I see, thank you. Tom Lane 于2022年7月9日周六 03:35写道: > Jingtang Zhang writes: > > 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 c

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

2022-07-08 Thread Tom Lane
Jingtang Zhang writes: > 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

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

2022-07-08 Thread Jingtang Zhang
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 cas