Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0720B9FA36A for ; Tue, 14 Nov 2006 13:17:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23076-02 for ; Tue, 14 Nov 2006 13:17:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id DF5459FA354 for ; Tue, 14 Nov 2006 13:17:20 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id A33475643A; Tue, 14 Nov 2006 11:17:17 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Tue, 14 Nov 2006 11:17:15 -0600 Date: Tue, 14 Nov 2006 11:17:15 -0600 From: "Jim C. Nasby" To: "Ben K." Cc: pgsql-admin@postgresql.org Subject: Re: running initdb on running database Message-ID: <20061114171715.GX90133@nasby.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:061114:bkim@coe.tamu.edu::5cJi4C/V1EywxvBJ:00000000000000000000 00000000000000000000000046aI X-Hashcash: 1:20:061114:pgsql-admin@postgresql.org::EUjZ1dkYDphmcRQ5:00000000000 0000000000000000000000000x6x X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/142 X-Sequence-Number: 23669 On Mon, Nov 13, 2006 at 03:10:14PM -0600, Ben K. wrote: > > Admins, > > I'm reading this post: > > http://archives.postgresql.org/pgsql-novice/2005-04/msg00221.php > > Is it possible and safe to run initdb again on a running database to > change encoding from SQL_ASCII to UTF8? > > Will it affect new databases only or existing databases as well? Pretty much guaranteed to be unsafe. It's also not possible unless you hack initdb. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)