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
Дата
Msg-id 20230522114947.4lvw3hxur3pjkx27@alvherre.pgsql
обсуждение исходный текст
Ответ на 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>)
Список pgsql-hackers
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)"
Дата:
Сообщение: RE: Time delayed LR (WAS Re: logical replication restrictions)
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Adding SHOW CREATE TABLE