<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>177085</bug_id>
          
          <creation_ts>2007-05-04 20:04 0000</creation_ts>
          <short_desc>dev-db/postgresql - postgresql homedir and $PGDATA env issues</short_desc>
          <delta_ts>2008-06-14 11:52:55 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>183764</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>david@fetter.org</reporter>
          <assigned_to>pgsql-bugs@gentoo.org</assigned_to>
          <cc>blackace@gentoo.org</cc>
    
    <cc>esigra@gmail.com</cc>
    
    <cc>plaes@plaes.org</cc>

      

      
          <long_desc isprivate="0">
            <who>david@fetter.org</who>
            <bug_when>2007-05-04 20:04:13 0000</bug_when>
            <thetext>A few things aren&apos;t quite right in PostgreSQL setup:

* initdb defaults to using SQL_ASCII encoding.  This is almost never right, and UTF8 is a safe default.

* The postgres users&apos;s home directory is /var/lib and not /var/lib/postgresql

* The postgres user&apos;s environment does not contain $PGDATA</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-05-04 20:08:44 0000</bug_when>
            <thetext>Move your ASCII vs. unicode vs. whatever issues to Bug 49864 please...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plaes@plaes.org</who>
            <bug_when>2007-06-27 14:14:36 0000</bug_when>
            <thetext>When postgres homedir is /var/lib, then it isn&apos;t writable for postgres user.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev-zero@gentoo.org</who>
            <bug_when>2008-06-14 11:52:55 0000</bug_when>
            <thetext>The $PGDATA issue is in bug #110912 (not sure what to do about it).
The postgres user&apos;s home dir is now /var/lib/postgresql and &quot;emerge --config&quot; reads an env var to set the default encoding.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>