Re: Concurrent psql API

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Shane Ambler <pgsql(at)Sheeky(dot)Biz>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Concurrent psql API
Date: 2008-04-10 08:17:32
Message-ID: 1207815452.8259.202.camel@PCD12478
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Thu, 2008-04-10 at 05:03 +0930, Shane Ambler wrote:
> I do think it is useful for more than typo's in the \join command. What
> about a slip where you forget to \g& the command. Or you start a query
> that seems to be taking too long, background it and look into what is
> happening. This would be more helpful to those that ssh into a machine
> then run psql from there.

For interactive use in the above mentioned scenario you can use the
'screen' command and start as many psqls as needed ('man screen' to see
what it can do). I would probably always use screen instead of psql's
multisession capability in interactive use. I do want to instantly see
what is currently running, and a psql screen cluttered with multiple
results will not make that easier. Even a list method of what is running
will only help if it actually shows the complete SQL for all running
sessions and that will be a PITA if the SQLs are many and big. Multiple
screens are much better at that.

So from my POV scripting should be the main case for such a feature...
and there it would be welcome if it would be made easy to synchronize
the different sessions.

Cheers,
Csaba.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2008-04-10 08:18:12 Re: Commit fest queue
Previous Message Gregory Stark 2008-04-10 07:37:33 Re: Commit fest queue

Browse pgsql-patches by date

  From Date Subject
Next Message Csaba Nagy 2008-04-10 08:31:54 Re: [OT] Concurrent psql API
Previous Message Andrew Chernow 2008-04-10 01:14:31 Re: [PATCHES] libpq type system 0.9a