Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group