Thread

  1. Small problem with pg_ctl.

    Keith Parks <emkxp01@mtcc.demon.co.uk> — 2000-02-05T22:55:29Z

    I've a problem with pg_ctl.
    
    When attempting to start the postmaster I get :-
    
    bash-2.03$   /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start
    postmaster successfully started up.
    bash-2.03$ /usr/local/pgsql/bin/postmaster does not know where to find the 
    database system data.  You must specify the directory that contains the database 
    system either by specifying the -D invocation option or by setting the PGDATA 
    environment variable.
    
    No data directory -- can't proceed.
    
    I think this small patch should fix it.
    
    Keith.
    
    *** src/bin/pg_ctl/pg_ctl.sh.orig       Sat Feb  5 22:29:52 2000
    --- src/bin/pg_ctl/pg_ctl.sh    Sat Feb  5 22:30:55 2000
    ***************
    *** 76,81 ****
    --- 76,82 ----
            -D)
                shift
                PGDATA="$1"
    +           export PGDATA
                ;;
            -p)
                shift