From ipp@mail.bg Tue Mar 15 09:32:44 2005 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 B407056494 for ; Tue, 15 Mar 2005 09:32:44 +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 66416-07 for ; Tue, 15 Mar 2005 09:32:34 +0000 (GMT) Received: from mx1.mail.bg (mx1.mail.bg [193.201.172.114]) by svr1.postgresql.org (Postfix) with ESMTP id 4183E563AA for ; Tue, 15 Mar 2005 09:32:33 +0000 (GMT) Received: from localhost (web1.mail.bg [193.201.172.98]) by mx1.mail.bg (Postfix) with ESMTP id 1FE704270B for ; Tue, 15 Mar 2005 11:32:34 +0200 (EET) Received: from kraev.ddns.HomeLan.BG (kraev.ddns.HomeLan.BG [83.97.31.75]) by mail.bg (mail.bG Webmail 4.0.1) with HTTP for ; Tue, 15 Mar 2005 11:32:33 +0200 Message-ID: <1110879153.aef3c71a275f0@mail.bg> Date: Tue, 15 Mar 2005 11:32:33 +0200 From: Ivan Petrov To: pgsql-odbc@postgresql.org Subject: relation %s does not exist ??? It actually does. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_f494e302d61560276cc324" Content-Transfer-Encoding: 7bit User-Agent: mail.bG Webmail 4.0-cvs X-Originating-IP: 83.97.31.75 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.789 tagged_above=0 required=5 tests=HTML_50_60, HTML_IMAGE_ONLY_16, HTML_MESSAGE, HTML_TEXT_AFTER_BODY, HTML_TEXT_AFTER_HTML, HTML_TITLE_EMPTY, HTML_WEB_BUGS X-Spam-Level: * X-Archive-Number: 200503/56 X-Sequence-Number: 5074 This message is in MIME format. --=_f494e302d61560276cc324 Content-Type: text/plain; charset="Windows-1251" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello guys, 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 ...
-----------= ------------------
=93=D3=E1=E8=E9=F1=F2=E2=E5=ED =EF=FA=E7=E5=EB=94 =96 =E2=FA=EB=ED=F3=E2=E0= =F9 =EA=E0=F2=EE =93=D1=E5=E4=E5=EC=94 =E8 =93=CC=FA=EB=F7=E0=ED=E8=E5=F2=EE= =ED=E0 =E0=E3=ED=E5=F2=E0=F2=E0=94.
=C2 =EA=E8=ED=E0=F2=E0 =EE=F2 11 =EC=E0=F0=F2.
http://www.newfilms-bg.com/
3D'' --=_f494e302d61560276cc324 Content-Type: text/html; charset="windows-1251" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable


=A0 Hello guys,

=A0 I= am using ODBC driver to connect to Postgres via Delphi. It works fine, except a probl= em "ERROR: relation "sec_users" does not exist" and table sec_users exists in t= he database. I tried with public.sec_users and it is the same.

=A0 = In psql console application :
auto=3D#=A0=A0 select user_id
auto-#=A0= =A0 from sec_users
auto-#=A0=A0 where user_name =3D 'postgres'
auto-#=A0=A0= =A0=A0 and is_locked =3D false
auto-#=A0=A0=A0=A0 and passwd =3D md5('postgres')auto-#=A0=A0=A0=A0 and (password_expire_date > current_timestamp or
auto(#=A0=A0=A0=A0= =A0=A0=A0=A0=A0 password_expire_date is null);
=A0user_id
---------
=A0=A0=A0= =A0=A0=A0 1
(1 row)

=A0 But I can not figure out why it doesn't work from O= DBC ...


-----------------------------
=93=D3=E1=E8=E9=F1=F2=E2=E5=ED =EF=FA=E7=E5=EB=94 =96 =E2=FA=EB=ED=F3=E2=E0= =F9 =EA=E0=F2=EE =93=D1=E5=E4=E5=EC=94 =E8 =93=CC=FA=EB=F7=E0=ED=E8=E5=F2=EE= =ED=E0 =E0=E3=ED=E5=F2=E0=F2=E0=94.
=C2 =EA=E8=ED=E0=F2=E0 =EE=F2 11 =EC=E0=F0=F2.
http://www.newfilms-bg.com/
3D'' --=_f494e302d61560276cc324-- From tgl@sss.pgh.pa.us Tue Mar 15 14:51:42 2005 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 From ipp@mail.bg Tue Mar 15 19:51:22 2005 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 B596356860 for ; Tue, 15 Mar 2005 19:51:22 +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 91410-06 for ; Tue, 15 Mar 2005 19:51:16 +0000 (GMT) Received: from mx1.mail.bg (mx1.mail.bg [193.201.172.114]) by svr1.postgresql.org (Postfix) with ESMTP id B69E6566D7 for ; Tue, 15 Mar 2005 19:51:14 +0000 (GMT) Received: from localhost (web1.mail.bg [193.201.172.98]) by mx1.mail.bg (Postfix) with ESMTP id 359FE42451; Tue, 15 Mar 2005 21:50:59 +0200 (EET) Received: from 217.75.146.63 ([217.75.146.63]) by mail.bg (mail.bG Webmail 4.0.1) with HTTP for ; Tue, 15 Mar 2005 21:50:58 +0200 Message-ID: <1110916258.16cf32ea6f287@mail.bg> Date: Tue, 15 Mar 2005 21:50:58 +0200 From: Ivan Petrov To: Tom Lane Cc: pgsql-odbc@postgresql.org Subject: Re: relation %s does not exist ??? It actually does. References: <1110879153.aef3c71a275f0@mail.bg> <6029.1110898242@sss.pgh.pa.us> In-Reply-To: <6029.1110898242@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1251" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: mail.bG Webmail 4.0-cvs X-Originating-IP: 217.75.146.63 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.635 tagged_above=0 required=5 tests=RAZOR2_CF_RANGE_51_100, RAZOR2_CHECK X-Spam-Level: * X-Archive-Number: 200503/58 X-Sequence-Number: 5076 The same database, same user, same table. The only difference is that in the first case I am connected through ODBC, the second - through psql console application. When I tried with PostgresDAC from microolap.com - it works fine. It seems it is something with the ODBC driver... =D6=E8=F2=E0=F2 =ED=E0 =EF=E8=F1=EC=EE =EE=F2 Tom Lane : > 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=3D3D# select user_id > > auto-# from sec_users > > auto-# where user_name =3D3D 'postgres' > > auto-# and is_locked =3D3D false > > auto-# and passwd =3D3D 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?) > > =09=09=09regards, tom lane > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the > unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) > -------------------------------------- =D2=EE=E2=E0 =EF=E8=F1=EC=EE =E5 =E8=E7=EF=F0=E0=F2=E5=ED=EE =EE=F2 www.mai= l.bg =C1=E5=E7=EF=EB=E0=F2=ED=E0=F2=E0 =EF=EE=F9=E0 =E2 mail.bg =EF=F0=E5=E4=EB= =E0=E3=E0: - =D1=E8=EB=ED=E0 =E7=E0=F9=E8=F2=E0 =F1=F0=E5=F9=F3 =D1=CF=C0=CC/=F0=E5=EA= =EB=E0=EC=ED=E8 =EF=E8=F1=EC=E0 - 30MB =E1=E5=E7=EF=EB=E0=F2=ED=EE (SMS =EE=F2 2=EB=E2=3D3GB!) - 30MB =EC=E0=EA=F1. =F0=E0=E7=EC=E5=F0 =ED=E0 =EF=F0=E8=EA=E0=F7=E5=ED =F4= =E0=E9=EB - SMS =E7=E0 =ED=EE=E2=EE =EF=E8=F1=EC=EE (=E2=F1=E8=F7=EA=E8 =EE=EF=E5=F0= =E0=F2=EE=F0=E8) - WAP =E4=EE=F1=F2=FA=EF =EE=F2 GSM =E8 =E1=E5=E7 =EA=EE=EC=EF=FE=F2=FA=F0 - =C1=E5=E7=EF=EB=E0=F2=E5=ED POP3 =E4=EE=F1=F2=FA=EF - 24 =F7=E0=F1=EE=E2 =F2=E5=EB=E5=F4=EE=ED =E7=E0 =EF=EE=EC=EE=F9/=EF=EE=E4= =E4=F0=FA=E6=EA=E0 ______________________________________ =C1=C5=C7 =C8=C7=CB=C8=D8=CD=C8 =C2=DA=CF=D0=CE=D1=C8 =D0=C5=C3=C8=D1=D2=D0= =C8=D0=C0=C9=D2=C5 =D1=C2=CE=C9 =C1=C5=C7=CF=CB=C0=D2=C5=CD =C0=C4=D0=C5=D1 =CD=C0 http://www.mail.bg