Re: [BUGS] BUG #14772: psql autocommit does not work

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: [BUGS] BUG #14772: psql autocommit does not work
Дата
Msg-id alpine.DEB.2.20.1708081456470.10425@lancre
обсуждение исходный текст
Ответ на [BUGS] BUG #14772: psql autocommit does not work  (abo@zetescards.be)
Ответы Re: [BUGS] BUG #14772: psql autocommit does not work  ("alain bourgeois" <a.bourgeois@zetescards.be>)
Список pgsql-bugs
Hello Alain,

> testdb=# \set autocommit off;

Hmmm.

The special variable name is "AUTOCOMMIT", and you are creating an 
unrelated "autocommit" lower case variable instead. Client-side variable 
names are case sensitive. Maybe that was not a good idea, especially given 
than SQL is case insensitive, but it is probably too late to change 
that...

With the right name you would get a clear error message.
 psql> \set AUTOCOMMIT off; unrecognized value "off;" for "AUTOCOMMIT": boolean expected

I'm not sure what to do. Maybe generate a warning if a special variable 
name is used uncapitalized...

> OK I found : \set AUTOCOMMIT false
> (without any semicolumn)

Yep.

-- 
Fabien.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

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

Предыдущее
От: Hillel Eilat
Дата:
Сообщение: Re: [BUGS] BUG #14771: "Logical decoding" does not cover the impactof "TRUNCATE TABLE" command
Следующее
От: "alain bourgeois"
Дата:
Сообщение: Re: [BUGS] BUG #14772: psql autocommit does not work