Changeset 1266 for trunk/README

Show
Ignore:
Timestamp:
07/13/07 05:08:26 (3 years ago)
Author:
jtv
Message:

Documentation improvements, thanks Andrew Maclean

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r1260 r1266  
    149149        PGPORT          (PostgreSQL port to connect to; default is 5432) 
    150150        PGUSER          (your PostgreSQL user ID; defaults to your login name) 
     151        PGPASSWORD      (your PostgreSQL password, if needed) 
    151152 
    152153Further environment variables that may be of use to you are documented in the 
    153154libpq documentation and in the manpage for Postgres' command-line client, psql. 
    154155 
     156Setting environment variables works differently depending on your shell, but 
     157try (preferably in this order): 
     158    export VARIABLE=value 
     159or 
     160    VARIABLE=value 
     161    export VARIABLE 
     162or 
     163    set VARIABLE=value 
     164 
     165Try printing the variable afterwards to make sure.  The command is normally 
     166    echo $VARIABLE 
     167and, if you set the variable successfully, should print the value you assigned. 
     168It will print nothing if you failed to set the variable. 
     169 
    155170Should you have trouble finding the socket for a database running locally on a 
    156 Unix socket, try locating the socket in the filesystem.  This should appear as a 
     171Unix socket, try locating the socket in the filesystem.  It should appear as a 
    157172"file" called .s.PGSQL.5432 (if you are new to Unix-like systems, be warned that 
    158173files whose name start with a dot are not displayed by default).  Set PGHOST to