From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Adrian Calvin <acexec(at)yahoo(dot)com>, pgsql-bugs-owner(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: When "psql -l" is invoked from prompt and not completed, |
Date: | 2003-07-24 21:54:08 |
Message-ID: | 200307242154.h6OLs8t03977@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-07-24 22:07:46 | Re: When "psql -l" is invoked from prompt and not completed, |
Previous Message | Tom Lane | 2003-07-24 21:30:42 | Re: When "psql -l" is invoked from prompt and not completed, |