Re: When "psql -l" is invoked from prompt and not completed, - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: When "psql -l" is invoked from prompt and not completed,
Date
Msg-id 200307242154.h6OLs8t03977@candle.pha.pa.us
Whole thread Raw
In response to Re: When "psql -l" is invoked from prompt and not completed,  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: When "psql -l" is invoked from prompt and not completed,
List pgsql-bugs
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Adrian Calvin wrote:
> >> When "psql -l" is invoked from prompt, and a user lets it sit
> >> at the 'more' prompt, no other user can create a database.  The
> >> "cannot access template..." error is thrown.  Has this been
> >> corrected in later versions?
>
> > Sorry, I have trouble believing that.
>
> I don't.  It's from the interlock that prevents copying a database that
> contains active sessions.

I understand that, but why does psql still hold that lock while
displaying the database names with more?  I thought the database was
shipped to the client, and the locks released.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: When "psql -l" is invoked from prompt and not completed,
Next
From: Tom Lane
Date:
Subject: Re: When "psql -l" is invoked from prompt and not completed,