1.6RC2 explain analyze rollback bug

Поиск
Список
Период
Сортировка
От Stephen Denne
Тема 1.6RC2 explain analyze rollback bug
Дата
Msg-id F0238EBA67824444BC1CB4700960CB4801C176F4@dmpeints002.isotach.com
обсуждение исходный текст
Ответы Re: 1.6RC2 explain analyze rollback bug  (Dave Page <dpage@postgresql.org>)
Список pgadmin-support
Using downloaded pgAdmin III 1.6RC2 on windows xp sp2, connecting to a local 8.1.4 PostgreSQL database, I had a query
inan SQL window which I was able to run, or explain, but when I used the Query Explain Options menu to turned on
analyze,and hit F7, I received an error.
 

I've managed to find a simple reproducible example…

Open a new Query tool, paste the following as a single line, including the end of line comment, but with no trailing
linebreak:
 

SELECT * from pg_stat_activity WHERE datname = 'postgres' --

This can be run or explained, but not explain & analyzed. The following error is given:

ERROR: syntax error at or near "ROLLBACK"
SQL state: 42601
Character: 87

If a line break is added at the end, or the end of line comment is removed, or a semi colon is placed at the end of the
statement,then explain analyze works as expected. Line breaks can be placed anywhere else without affecting the
behaviour,but the behaviour is seen if there is no line break after --
 

Stephen Denne.

Disclaimer:
At the Datamail Group we value team commitment, respect, achievement, customer focus, and courage. This email with any
attachmentsis confidential and may be subject to legal privilege.  If it is not intended for you please advise by reply
immediately,destroy it and do not copy, disclose or use it in any way. 

__________________________________________________________________ This email has been scanned by the DMZGlobal
BusinessQuality              Electronic Messaging Suite. 
Please see http://www.dmzglobal.com/services/bqem.htm for details.
__________________________________________________________________


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

Предыдущее
От: Markus Innerebner
Дата:
Сообщение: Segmentation fault error
Следующее
От: Dave Page
Дата:
Сообщение: Re: Scrollbar in SQL dialogue window