X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C25075658D for ; Tue, 15 Mar 2005 14:51:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62585-04 for ; Tue, 15 Mar 2005 14:51:32 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id E1F1656615 for ; Tue, 15 Mar 2005 14:51:31 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j2FEogYe006030; Tue, 15 Mar 2005 09:50:42 -0500 (EST) To: Ivan Petrov Cc: pgsql-odbc@postgresql.org Subject: Re: relation %s does not exist ??? It actually does. In-reply-to: <1110879153.aef3c71a275f0@mail.bg> References: <1110879153.aef3c71a275f0@mail.bg> Comments: In-reply-to Ivan Petrov message dated "Tue, 15 Mar 2005 11:32:33 +0200" Date: Tue, 15 Mar 2005 09:50:42 -0500 Message-ID: <6029.1110898242@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/57 X-Sequence-Number: 5075 Ivan Petrov writes: > I am using ODBC driver to connect to Postgres via Delphi. > It works fine, except a problem "ERROR: relation > "sec_users" does not exist" and table sec_users exists in > the database. I tried with public.sec_users and it is the > same. > In psql console application : > auto=3D# select user_id > auto-# from sec_users > auto-# where user_name =3D 'postgres' > auto-# and is_locked =3D false > auto-# and passwd =3D md5('postgres') > auto-# and (password_expire_date > current_timestamp or > auto(# password_expire_date is null); > user_id > --------- > 1 > (1 row) > But I can not figure out why it doesn't work from ODBC ... Sure you're connecting to the same database in both cases? As the same user? (If they are different users, maybe one has a different schema search_path set by default?) regards, tom lane