Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2EA7E47631A for ; Sat, 16 Nov 2002 14:27:29 -0500 (EST) Received: from mta01-srv.alltel.net (mta01.alltel.net [166.102.165.143]) by postgresql.org (Postfix) with ESMTP id 87B8D4768C5 for ; Sat, 16 Nov 2002 14:27:17 -0500 (EST) Received: from hesco.greens.org ([166.102.66.96]) by mta01-srv.alltel.net with ESMTP id <20021116192717.OBGM5650.mta01-srv.alltel.net@hesco.greens.org>; Sat, 16 Nov 2002 13:27:17 -0600 Message-Id: <5.1.0.14.0.20021116142523.02fe9350@petra.cagreens.org> X-Sender: hesco@petra.cagreens.org X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 16 Nov 2002 14:28:19 -0500 To: pgsql-sql@postgresql.org From: Hugh Esco Subject: Problems invoking psql. Help please. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/246 X-Sequence-Number: 10388 One more note: when I first got the error: >env: /usr/lib/postgresql/bin/readpgenv: Permission denied I looked and determined that no such file existed, so I created an empty (one character) file by that name with a shell level echo command and set the permissions to match those of every other file in the directory. What should that file really contain? -- Hugh Hey folks: I am able to consistently start and stop the postgreSQL server and to access it across our office network with pgAdmin II. I have had no luck invoking the psql command line prompt, from where I can enter queries and start to surmount the learning curve from background with mySQL to my next step with postgreSQL. Can anyone help me figure out, please, what this is about and what I can do about it? I've copied the shell dialogue below. Everything in: /usr/lib/postgresql/bin is owned by root:root. Who should these files be owned by? The database engine is invoked as postgres, which is the user which created the databse. Do I harm anything if I chown postgres:postgres for everything in that directory? Will this get me past this error and to a psql prompt? I am operating on a Debian Woody Platform, with postgreSQL 7.2.1 and ODBC driver 7.1.9. All help is appreciated. Thanks. -- Hugh Esco >hesco@biko:~$ su postgres >Password: >postgres@biko:/home/hesco$ locate psql >/usr/bin/psql >/usr/lib/odbc/libodbcpsqlS.so >/usr/share/man/man1/psql.1.gz >/var/home/hesco/.psql_history >postgres@biko:/home/hesco$ ./psql >sh: ./psql: No such file or directory >postgres@biko:/home/hesco$ psql >env: /usr/lib/postgresql/bin/readpgenv: Permission denied >No database specified >postgres@biko:/home/hesco$ psql ggp_test >env: /usr/lib/postgresql/bin/readpgenv: Permission denied >Could not execv /usr/lib/postgresql/bin/psql >postgres@biko:/home/hesco$