不能为PostgreSQL的init集群

时间:2014-05-11 12:37:40

标签: postgresql ubuntu postgresql-9.1

现在我正在尝试安装Postgresql。 我已经:

  1. 安装postgresql。
  2. 为数据库创建用户。
  3. 为群集创建目录。
  4. 现在我不能在这里初始化群集是错误的记录。


    postgres@Computer:~$ initdb -D /var/lib/postgresql/data --nodename foo
    
    The files belonging to this database system will be owned by user "postgres".
    This user must also own the server process.
    
    The database cluster will be initialized with locales
      COLLATE:  en_US.UTF-8
      CTYPE:    en_US.UTF-8
      MESSAGES: en_US.UTF-8
      MONETARY: ru_RU.UTF-8
      NUMERIC:  ru_RU.UTF-8
      TIME:     ru_RU.UTF-8
    The default database encoding has accordingly been set to UTF8.
    The default text search configuration will be set to "english".
    
    fixing permissions on existing directory /var/lib/postgresql/data ... ok
    creating subdirectories ... ok
    selecting default max_connections ... 100
    selecting default shared_buffers ... 24MB
    creating configuration files ... ok
    creating template1 database in /var/lib/postgresql/data/base/1 ... ok
    

    错误:

     initializing pg_authid ... FATAL:  wrong number of index expressions
        STATEMENT:  REVOKE ALL on pg_authid FROM public;
    
        child process exited with exit code 1
        initdb: removing contents of data directory "/var/lib/postgresql/data"
    

    可能是什么问题?感谢。

0 个答案:

没有答案