Re: [SQL] Problems invoking psql. Help please.

2002-11-26 Thread jasiek
> Here are the results from reversing the arguments. > > >hesco@biko:~$ su postgres > >Password: > >postgres@biko:/home/hesco$ cd > >postgres@biko:~$ cd /usr/bin > >postgres@biko:/usr/bin$ psql tempate1 -U postgres > >Could not execv /usr/lib/postgresql/bin/psql > >postgres@biko:/usr/bin$ psql tem

Re: [SQL] Problems invoking psql. Help please.

2002-11-26 Thread Hugh Esco
Thank you Tom Lane and Oliver Elphick. Here is the latest shell dialogue. postgres@biko:/home/hesco$ ./usr/lib/postgresql/bin/psql -d template1 sh: ./usr/lib/postgresql/bin/psql: No such file or directory postgres@biko:/home/hesco$ /usr/lib/postgresql/bin/psql -d template1 sh: /usr/lib/postgresq

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Oliver Elphick
On Wed, 2002-11-20 at 15:03, Tom Lane wrote: > Oliver Elphick <[EMAIL PROTECTED]> writes: > > execv() is a system call to run another executable in place of the > > current process. If the other executable is not present, or does not > > have permissions, you will not be able to run it. Find out

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Tom Lane
Oliver Elphick <[EMAIL PROTECTED]> writes: > execv() is a system call to run another executable in place of the > current process. If the other executable is not present, or does not > have permissions, you will not be able to run it. Find out why. Aside from access problems for the executable i

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Oliver Elphick
On Wed, 2002-11-20 at 14:23, Hugh Esco wrote: > Everything in the path is executable for others. > That is true for: > /usr/lib/postgresql/bin > and for: > /usr/bin > where psql is located. So can you run the executable directly? /usr/lib/postgresql/bin/psql -d template1 -

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Oliver Elphick
On Wed, 2002-11-20 at 13:52, Hugh Esco wrote: > However, when I again attempt to invoke the psql client, I get this: > >biko:/usr/bin$ ./psql -U postgres template1 > >Could not execv /usr/lib/postgresql/bin/psql Pay attention to the exact message and do not flounder around aimlessly. There is no

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Hugh Esco
Everything in the path is executable for others. That is true for: /usr/lib/postgresql/bin and for: /usr/bin where psql is located. -- Hugh At 12:49 PM 11/20/02 +, Oliver Elphick wrote: There is something wrong with permissions here. You ought to be able, as _any_ user, to r

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Hugh Esco
Mr. Lane: pg_wrapper permits Others to Execute it. biko:/usr/bin$ ls -al | grep pg_wrapper lrwxrwxrwx1 root root 10 Oct 10 16:24 createdb -> pg_wrapper lrwxrwxrwx1 root root 10 Oct 10 16:24 createuser -> pg_wrapper lrwxrwxrwx1 root root 10 O

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Hugh Esco
My continued appreciation to Tom Lane, Michael Lange, Luis Sousa and Cameron Spitzer: Apologies for the length of this, but I've tried everything suggested and most f this is the shell dialogues of when I did so. At 08:40 AM 11/20/02 +0100, Michiel wrote: That is indeed true. Also I see you do e

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Oliver Elphick
On Wed, 2002-11-20 at 06:30, Hugh Esco wrote: > I did this tonight > > dpkg --purge postgresql > apt-get install postgresql > > and am now still getting the following: > > >biko:/usr/bin# psql -U postgres > >No database specified > >biko:/usr/bin# psql -U postgres template1 > >Could not execv /u

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Luis Sousa
biko:/usr/bin# psql -U postgres No database specified Instead, do: su - postgres Then do: psql template1 or psql -h template1 My pg_hba.conf temporarily reads: local all trust host all 127.0.0.1 255.255.255.255 trust host template1 192.168.2.21 255.255.255.0 trust For now, just remove

Re: [SQL] Problems invoking psql. Help please.

2002-11-20 Thread Tomasz Myrta
> Here are the results from reversing the arguments. > > >hesco@biko:~$ su postgres > >Password: > >postgres@biko:/home/hesco$ cd > >postgres@biko:~$ cd /usr/bin > >postgres@biko:/usr/bin$ psql tempate1 -U postgres > >Could not execv /usr/lib/postgresql/bin/psql > >postgres@biko:/usr/bin$ p

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Michiel Lange
That is indeed true. Also I see you do everything as root, try creating a new user especially for postgres databases. create a directory with root in /usr/loca/pgsql/ named data, or any other directory that is in $PGDATA. chown the directory to the postgres user, log in as the postgres user and

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Tom Lane
Hugh Esco <[EMAIL PROTECTED]> writes: >> biko:/usr/bin# ls -al | grep psql >> lrwxrwxrwx1 root root 10 Oct 10 16:24 psql -> pg_wrapper > This seems to say that Other users, like postgres, should be able to > execute it. I'm confused, here. The permissions attached to a symboli

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Hugh Esco
Here are the results from reversing the arguments. hesco@biko:~$ su postgres Password: postgres@biko:/home/hesco$ cd postgres@biko:~$ cd /usr/bin postgres@biko:/usr/bin$ psql tempate1 -U postgres Could not execv /usr/lib/postgresql/bin/psql postgres@biko:/usr/bin$ psql template1 -U postgres Could

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Hugh Esco
Does "Could not execv" mean that I do not have rights to execute this script? biko:/usr/bin# ls -al | grep psql lrwxrwxrwx1 root root 10 Oct 10 16:24 psql -> pg_wrapper biko:/usr/bin# This seems to say that Other users, like postgres, should be able to execute it. I'm confuse

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Rudi Starcevic
>> biko:/usr/bin# psql -U postgres template1 Maybe try : biko:/usr/bin# psql tempate1 -U postgres I use PG on Debian too. I much prefer to compile from source. It's very easy why don't you give it a try. I've never had a problem compiling from source, just make sure to follow the instruction's

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Hugh Esco
I did this tonight dpkg --purge postgresql apt-get install postgresql and am now still getting the following: biko:/usr/bin# psql -U postgres No database specified biko:/usr/bin# psql -U postgres template1 Could not execv /usr/lib/postgresql/bin/psql biko:/usr/bin# psql -U postgres template0 Co

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Luis Sousa
Did you install your package using apt-get ? All the instalations that I do are using those tools from debian. You have to see all the packages that you have instaled in your computer like: dpkg -l | grep postgresql ii postgresql 7.2.1-2Object-relational SQL database, descended fr i

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Hugh Esco
I have reinstalled before. I wonder though, how I ensure that I have cleanly un-installed it first, so that I leave no residue from the previously botched installation around to mess things up the next time. -- Hugh Esco At 09:03 AM 11/19/02 +, Luis Sousa wrote: Tom Lane wrote: Start over:

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Luis Sousa
Tom Lane wrote: Hugh Esco <[EMAIL PROTECTED]> writes: Any ideas on what my next steps should be would be greatly appreciated. Start over: delete your PG installation and reinstall the Debian package. It seems very clear that you've got an incomplete package. regards, tom lane I a

Re: [SQL] Problems invoking psql. Help please.

2002-11-19 Thread Tomasz Myrta
Uz.ytkownik Hugh Esco napisa?: Thank you so much, Mallah, Tomasz Myrta, Luis Sousa, Achilleus Mantzios, Tom Lane, Bill Eaton and Oliver Elphick. I have chmod 755 my readpgenv file, and then copied the shell script suggested by Tomasz Myrta into that file, yielding these results: biko:/usr/li

Re: [SQL] Problems invoking psql. Help please.

2002-11-18 Thread Tom Lane
Hugh Esco <[EMAIL PROTECTED]> writes: > Any ideas on what my next steps should be would be greatly appreciated. Start over: delete your PG installation and reinstall the Debian package. It seems very clear that you've got an incomplete package. regards, tom lane

Re: [SQL] Problems invoking psql. Help please.

2002-11-18 Thread Hugh Esco
Thank you so much, Mallah, Tomasz Myrta, Luis Sousa, Achilleus Mantzios, Tom Lane, Bill Eaton and Oliver Elphick. I have chmod 755 my readpgenv file, and then copied the shell script suggested by Tomasz Myrta into that file, yielding these results: biko:/usr/lib/postgresql/bin# cd /usr/bin biko:

Re: [SQL] Problems invoking psql. Help please.

2002-11-18 Thread Oliver Elphick
On Sun, 2002-11-17 at 20:24, [EMAIL PROTECTED] wrote: > > You seem to have a very bizarre setup there --- there is no such thing > > as "readpgenv" in the standard Postgres distribution, and > > /usr/lib/postgresql/bin/ isn't the standard place to put the executable > > files either. Perhaps the a

Re: [SQL] Problems invoking psql. Help please.

2002-11-18 Thread Luis Sousa
Hi there, I'm using debian woody. If you post your configuration files that are in /etc/postgresql/ maybe i can help you. Regards, Luis Sousa Hugh Esco wrote: Hey folks: I am able to consistently start and stop the postgreSQL server and to access it across our office network with pgAdmin II.

Re: [SQL] Problems invoking psql. Help please.

2002-11-17 Thread jasiek
> You seem to have a very bizarre setup there --- there is no such thing > as "readpgenv" in the standard Postgres distribution, and > /usr/lib/postgresql/bin/ isn't the standard place to put the executable > files either. Perhaps the above is normal for the Debian package of > Postgres, but I'm a

Re: [SQL] Problems invoking psql. Help please.

2002-11-17 Thread Tom Lane
Hugh Esco <[EMAIL PROTECTED]> writes: >> 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/postgre

Re: [SQL] Problems invoking psql. Help please.

2002-11-17 Thread jasiek
On Sat, Nov 16, 2002 at 02:11:58PM -0500, Hugh Esco wrote: > Hey folks: > > I've copied the shell dialogue below. > Everything in: /usr/lib/postgresql/bin is owned by root:root. It's default instalation in Debian Woody and it works fine > >postgres@biko:/home/hesco$ psql > >env: /usr/lib/postgres