Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E6544476128 for ; Sun, 26 Jan 2003 19:25:44 -0500 (EST) Received: from smurfer.demon.nl (minas-2.demon.nl [212.238.194.105]) by postgresql.org (Postfix) with ESMTP id BBD20475CE7 for ; Sun, 26 Jan 2003 19:25:43 -0500 (EST) Received: from depastor.minas.demon.nl ([192.168.1.1]) by smurfer.demon.nl (8.11.4/8.11.4) with ESMTP id h0RIQTA00662 for ; Mon, 27 Jan 2003 19:26:30 +0100 Message-Id: <5.1.0.14.0.20030127011523.00b33440@192.168.1.3> X-Sender: michiel@192.168.1.3 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 27 Jan 2003 01:25:06 +0100 To: pgsql-admin@postgresql.org From: Michiel Lange Subject: Cannot connect to the database (PG 7.3) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/276 X-Sequence-Number: 7118 Hello people, I have this Postgres 7.3 database, and could not find if this is a known issue, but: I can connect to the database with my postgres user to a remote database. This as supposed with psql -d mydb -h 123.456.789.001 -U postgres it goes fine... postgres user exists on my system and the other system. Both versions of Postgres are the same (7.3) However, I have another user, (whose name is a number) that does not exist on operating system level: psql -d mydb -h 123.456.789.001 -U 20020003 or from within php: pg_connect("host=123.456.789.001 dbname=mydb user=20020003 password=secret"); I get this error message: psql: FATAL: permission denied while I do not get that message with postgres-user... Anyone who knows where the problem lies? I am thinking of: - Users must exist both in the database and on the operating system. (which would be strange I think) - Usernames may not exist solely out of numbers If the mistake is because I have missed it in the documentation, I am sorry... I'll try to be more cautious next time... Michiel