Re: [HACKERS] Proposal for async support in libpq

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Proposal for async support in libpq
Дата
Msg-id 199804171800.OAA24268@candle.pha.pa.us
обсуждение исходный текст
Ответ на Proposal for async support in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Proposal for async support in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>
> Here's what I propose to do with libpq to make it more useful for
> real-time applications.  Any comments or better ideas?
>
> The point of these changes is first to allow frontend applications to
> receive NOTIFY responses without having to generate dummy queries,
> and second to allow a frontend to perform other work while awaiting
> the result of a query.
>
> We can't break existing code for this, so the behavior of PQexec()
> can't change.  Instead, I propose new functions to add to the API.
> Internally, PQexec will be reimplemented in terms of these new
> functions, but old apps won't notice any difference.

This all looks good.  Another thing we really need it to be able to
cancel queries.  This would be a big win, and looks like it could fit
into the scheme here.

Ideally, I would like to control-c in psql, and have the query cancel,
instead of exiting from pgsql.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: ocie@paracel.com
Дата:
Сообщение: Re: [HACKERS] drop table inside transactions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Proposal for async support in libpq