Re: Concurrent psql API

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Concurrent psql API
Дата
Msg-id 20080409153951.GF5233@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Concurrent psql API  (Shane Ambler <pgsql@Sheeky.Biz>)
Ответы Re: Concurrent psql API  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Shane Ambler wrote:

> Think jobs in a shell, you can suspend a long running process then send  
> it to the background to work and go on with something else.
>
> So I am thinking something like C-z that will allow you to switch out of  
> a task that is waiting for results without having to stop it with C-c.

I agree -- we would need to have a mode on which it is "not on any
connection", to which we could switch on C-z.  If all connections are
busy, there's no way to create a new one otherwise.

It makes sense if we continue with the shell analogy: the shell prompt
is not any particular task.  Either there is a task running in
foreground (in which case we have no prompt, but we can press C-z to
suspend the current task and get a prompt), or there isn't (in which
case we have a prompt.)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Calling GSoc Mentors
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] libpq type system 0.9a