X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1045C9FB399 for ; Thu, 31 Aug 2006 12:57:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05805-03-2 for ; Thu, 31 Aug 2006 12:57:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E64869FB3ED for ; Thu, 31 Aug 2006 12:53:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k7VFrhYp008414; Thu, 31 Aug 2006 11:53:43 -0400 (EDT) To: "Josef J. Micka" cc: pgsql-admin@postgresql.org Subject: Re: problem with initlocation In-reply-to: <44F6FA9D.7070509@maylo.cz> References: <44F6FA9D.7070509@maylo.cz> Comments: In-reply-to "Josef J. Micka" message dated "Thu, 31 Aug 2006 17:05:01 +0200" Date: Thu, 31 Aug 2006 11:53:43 -0400 Message-ID: <8413.1157039623@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.133 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/349 X-Sequence-Number: 22892 "Josef J. Micka" writes: > i want to make database in another place and i'm unable to use > initlocation, and i don't know, what i'm doing wrong. > this is what i do, and i think it's correct. > www:/home/db/postgres$ su postgres Try "su - postgres" ... plain su retains root's environment. regards, tom lane