Re: Rename a database that has connections

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Rename a database that has connections
Date: 2011-11-22 04:29:46
Message-ID: 4ECB253A.6020001@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 22/11/11 17:24, Mark Kirkwood wrote:
>
> I have not been able to find any other problems caused by this...
> renaming a db (many times) with hundreds of pgbench connections does
> not give rise to any issues.
>
>

One point I did miss - the ps listing still uses the old dbname.
pg_stat_activity is correct however.

regards

Mark

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2011-11-22 04:55:17 dblink: enable parameters
Previous Message Mark Kirkwood 2011-11-22 04:24:24 Re: Rename a database that has connections