Re: Concurrent psql API - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Concurrent psql API
Date
Msg-id 20080409153951.GF5233@alvh.no-ip.org
Whole thread Raw
In response to Re: Concurrent psql API  (Shane Ambler <pgsql@Sheeky.Biz>)
Responses Re: Concurrent psql API
List 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 by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Calling GSoc Mentors
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] libpq type system 0.9a