Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BB37E64FD27 for ; Fri, 19 Sep 2008 11:39:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49686-01 for ; Fri, 19 Sep 2008 11:39:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.236]) by postgresql.org (Postfix) with ESMTP id 1853664FD04 for ; Fri, 19 Sep 2008 11:39:15 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so408015rvf.43 for ; Fri, 19 Sep 2008 07:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=J50JV+TtBuate2snNgRGrpuJSR2Jade2xkIijY8otaU=; b=kWRJ+2Xr125YTy+u7Qt2VHio9bRMd4hMmSD0QYNcMabQ/gUc83cBk4HImE9gMuo4OO GPcadZiWcMdry7cUaDxH8BxtzdsN1DTE3xjXmcTfs3xtXV1CFNeqGnQUVT103/nd4Pr/ 8FP0lCEO+o2Wt79Jbyfm9+0GqoVKk4jlcLZdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QoL1+7XTutLaprk74p1KAxws7xO31AEQ8dxgIV+H7yunXKQYf5x386O5/aoYezSWL/ 5EvT35qABPBXBOTH4FyjR+Q+NJWyZG2hT63iclAS/wcYZmjtPeAm+h7qeTywzqmWLYvn KaWrIUFiNaw0XQ3H9zefVbOdWetP4aEVJK2Sk= Received: by 10.140.172.19 with SMTP id u19mr101458rve.31.1221835154414; Fri, 19 Sep 2008 07:39:14 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Fri, 19 Sep 2008 07:39:14 -0700 (PDT) Message-ID: Date: Fri, 19 Sep 2008 08:39:14 -0600 From: "Scott Marlowe" To: "Bernt Drange" Subject: Re: Regaining superuser access Cc: pgsql-admin@postgresql.org In-Reply-To: <66fbdb9b-7a01-42c5-896c-0c5ffbe2f4fb@79g2000hsk.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <355ba921-203b-4380-bee4-67209316be62@x35g2000hsb.googlegroups.com> <497334.45125.qm@web25803.mail.ukl.yahoo.com> <20080918170326.GH3868@alvh.no-ip.org> <66fbdb9b-7a01-42c5-896c-0c5ffbe2f4fb@79g2000hsk.googlegroups.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/217 X-Sequence-Number: 30310 On Fri, Sep 19, 2008 at 2:26 AM, Bernt Drange wrote: > On Sep 18, 7:03 pm, alvhe...@commandprompt.com (Alvaro Herrera) wrote: >> Bernt Drange escribi=F3: >> >> > After a lot of fiddling with being able to enter single user mode on a >> > windows machine (I had to figure out how to run the command line as >> > the correct user, then for some reason -D didn't work, but SET >> > PGDATA=3Dxxx worked), I finally managed to fix my problem. >> >> Hmm, the -D thing not working should probably be studied -- perhaps >> we're missing escaping something somewhere. Does the PGDATA path >> contain spaces or weird chars? > > From memory the path was something like: F:\Postgresql Database\data. > I quoted it with double quotes. Without -D postgres.exe complained > about not finding the data path, with it postgres.exe complained about > not finding the config file, stating that it looked in (from memory > vague) F:\Postgresql Database\data\postgres\somethingmore. Adding the > --config-file parameter didn't help. > > Is this enough information for you to start digging a bit more? If > not, I might find the exact messages, but I'm reluctant to do it on > this production database.. I'm pretty sure the problem is with the space between Postgresql and Database. Not sure if it's fixed in later releases or not.