( in csh/tcsh ) setenv PATH ${PATH}:/uns/pgsql/bin setenv LD_LIBRARY_PATH /uns/pgsql/libThis is where your database will be created:
setenv PGDATA ~/databases
initdb -l /uns/pgsql/lib/
postmaster &
createdb cse544
psql -d cse544
You are now in a SQL frontend to PostgresQL, you can create your tables (by pasting in this file - notice it is different from the one used for SQL Server) and enter your queries.
More documentation can be found at http://www.postgresql.org/, along with the source code. Notice that you need a ';' (semicolon) after each line in order for it to be processed.