Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 5CD0D2E0065 for ; Thu, 12 Jun 2008 16:21:12 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38763-05 for ; Thu, 12 Jun 2008 16:21:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fmailhost01.isp.att.net (fmailhost01.isp.att.net [204.127.217.101]) by developer.postgresql.org (Postfix) with ESMTP id A9AE92E0060 for ; Thu, 12 Jun 2008 16:21:00 -0300 (ADT) Received: from rhws5.home.edu (adsl-065-013-025-241.sip.asm.bellsouth.net[65.13.25.241]) by isp.att.net (frfwmhc01) with ESMTP id <20080612192058H0100meh5be>; Thu, 12 Jun 2008 19:20:59 +0000 X-Originating-IP: [65.13.25.241] Message-ID: <48517717.1020201@serioustechnology.com> Date: Thu, 12 Jun 2008 15:20:55 -0400 From: Geoffrey User-Agent: Thunderbird 2.0.0.14 (X11/20080515) MIME-Version: 1.0 To: Travis Smith CC: Postgres-Admin list Subject: Re: How is the default encoding determined References: <48514CE1.8070803@serioustechnology.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/106 X-Sequence-Number: 29444 Travis Smith wrote: > This looks like what you are looking for. > > > > http://www.postgresql.org/docs/8.2/static/app-initdb.html > > > The character set encoding can be set separately for a database when > it is created. initdb determines the encoding for the template1 > database, which will serve as the default for all other databases. To > alter the default encoding use the --encoding option. More details > can be found in Section 21.2. Thanks, I saw all that, what I was trying to figure out is where in the environment does initdb determine what to set the encoding to when it's not specified. I ran into a problem with the wrong encoding on our database and I want to figure out if it's because the environment is different on this box, or if it was caused by the upgrade from 7.4 to 8.3 -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin