Обсуждение: Re: [COMMITTERS] pgsql: Support frontend-backend protocol communication using a shm_mq.

Поиск
Список
Период
Сортировка

Re: [COMMITTERS] pgsql: Support frontend-backend protocol communication using a shm_mq.

От
Alvaro Herrera
Дата:
Robert Haas wrote:
> Support frontend-backend protocol communication using a shm_mq.

I just noticed that this patch broke the case where a standalone backend
is sent a query that throws an error -- instead, we get a segmentation
fault.  Example:

echo "foobar" | postgres --single
PostgreSQL stand-alone backend 9.5devel
backend> Segmentation fault

I guess we could have a src/test/modules subdir that tests simple stuff
on standalone backends ...

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Re: [COMMITTERS] pgsql: Support frontend-backend protocol communication using a shm_mq.

От
Robert Haas
Дата:
On Thu, Dec 4, 2014 at 4:15 PM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> Robert Haas wrote:
>> Support frontend-backend protocol communication using a shm_mq.
>
> I just noticed that this patch broke the case where a standalone backend
> is sent a query that throws an error -- instead, we get a segmentation
> fault.

Ugh, sorry.  Fixed.

> Example:
>
> echo "foobar" | postgres --single
> PostgreSQL stand-alone backend 9.5devel
> backend> Segmentation fault
>
> I guess we could have a src/test/modules subdir that tests simple stuff
> on standalone backends ...

Wouldn't hurt.  Although it's not something that's likely to get
broken very often.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company