Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error
Дата
в 11:49:47
Msg-id
20230522114947.4lvw3hxur3pjkx27@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
pgbench: using prepared BEGIN statement in a pipeline could cause an error Yugo NAGATA <nagata@sraoss.co.jp>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Yugo NAGATA <nagata@sraoss.co.jp>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Yugo NAGATA <nagata@sraoss.co.jp>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Daniel Gustafsson <daniel@yesql.se>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Yugo NAGATA <nagata@sraoss.co.jp>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Tom Lane <tgl@sss.pgh.pa.us>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Yugo NAGATA <nagata@sraoss.co.jp>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Yugo NAGATA <nagata@sraoss.co.jp>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Tom Lane <tgl@sss.pgh.pa.us>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Andres Freund <andres@anarazel.de>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alexander Lakhin <exclusion@gmail.com>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Ibrar Ahmed <ibrar.ahmad@gmail.com>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Julien Rouhaud <rjuju123@gmail.com>
Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error Ibrar Ahmed <ibrar.ahmad@gmail.com>
On 2023-May-20, Alexander Lakhin wrote:

> Starting from 038f586d5, the following script:
> echo "
> \startpipeline
> \endpipeline
> " >test.sql
> pgbench -n -M prepared -f test.sql
> 
> leads to the pgbench's segfault:

Hah, yeah, that's because an empty pipeline never calls the code to
allocate the flag array.  Here's the trivial fix.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"El hombre nunca sabe de lo que es capaz hasta que lo intenta" (C. Dickens)
В списке pgsql-hackers по дате отправления
От: Hayato Kuroda (Fujitsu)
Дата:
От: Andrew Dunstan
Дата:
Сообщение: Re: Adding SHOW CREATE TABLE
FAQ