Re: Concurrent psql API

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Shane Ambler <pgsql(at)Sheeky(dot)Biz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Concurrent psql API
Date: 2008-04-09 15:39:51
Message-ID: 20080409153951.GF5233@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2008-04-09 15:41:56 Re: Calling GSoc Mentors
Previous Message Andrew Chernow 2008-04-09 15:37:36 Re: [PATCHES] libpq type system 0.9a

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2008-04-09 15:51:45 Re: [PATCHES] libpq type system 0.9a
Previous Message Andrew Chernow 2008-04-09 15:37:36 Re: [PATCHES] libpq type system 0.9a