Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BEE202E2ED5 for ; Fri, 8 Feb 2008 10:31:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 64562-09 for ; Fri, 8 Feb 2008 10:31:31 -0400 (AST) Received: from blu139-omc1-s7.blu139.hotmail.com (blu139-omc1-s7.blu139.hotmail.com [65.55.175.147]) by postgresql.org (Postfix) with ESMTP id A7D382E2DB5 for ; Fri, 8 Feb 2008 10:31:31 -0400 (AST) Received: from BLU102-W43 ([65.55.162.181]) by blu139-omc1-s7.blu139.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 8 Feb 2008 06:31:30 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_f883a095-d481-4368-8cba-f74ccbd46de9_" X-Originating-IP: [207.164.182.8] From: Julio Leyva To: Shoaib Mir , PostgreSql CC: Subject: Re: Queriy results erratic on Linux Date: Fri, 8 Feb 2008 14:31:30 +0000 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 08 Feb 2008 14:31:30.0137 (UTC) FILETIME=[4B82F490:01C86A5F] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200802/95 X-Sequence-Number: 28169 --_f883a095-d481-4368-8cba-f74ccbd46de9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Linux is sensitive to uppercase or lowercase make sure your script has all the tables names as they are shown in postgre= sql su - postgres \d check all the names I ran into that problem awhile ago.. Date: Fri, 8 Feb 2008 18:47:02 +0500 From: shoaibmir@gmail.com To: hampi1@gumtreegully.com.au Subject: Re: [ADMIN] Queriy results erratic on Linux CC: pgsql-admin@postgresql.org On Feb 8, 2008 3:35 AM, PostgreSql wrote: =0A= Hi My application runs fine on Windows. However when I copy the files to the Linux server some queries return no results or errors even though the records and tables exist! It is always the same records or tables that are not found! =0A= In case of a table the error is: function.pg-query: Query failed: ERROR: relation "sites" does not exist in .... Any idea what might cause the problem? =0A= First of all query your pg_class catalog table and see if you can see those= tables in there like this: select relname from pg_class where relname =3D 'tablename'; If its there then check you search_path and see if you have your schema nam= e in there. =0A= Other then that I am not sure what do you mean by copying the files from Wi= ndows server to Linux as I think you can not use the data files created by = initdb on Windows for a Linux server. --=20 Shoaib Mir =0A= Fujitsu Australia Software Technology shoaibm[@]fast.fujitsu.com.au=0A= --_f883a095-d481-4368-8cba-f74ccbd46de9_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Linux is sensitive to uppercase or lowercase
m= ake sure your script has all the tables names as they are shown in postgres= ql
su - postgres
\d
check all the names

I ran into that pro= blem awhile ago..






Date: Fri, 8 Feb 2008 18:47:02 +0500
From: shoaibmir@gmail.com
T= o: hampi1@gumtreegully.com.au
Subject: Re: [ADMIN] Queriy results errati= c on Linux
CC: pgsql-admin@postgresql.org


On Feb 8, 2008 3:35 AM, PostgreSql <hampi1@gumtreegully.com.au> wrote:
=0A= Hi
My application runs fine on Windows.
However when I copy the files= to the Linux server some queries return no
results or errors even thoug= h the records and tables exist!
It is always the same records or tables = that are not found!
=0A= In case of a table the error is: function.pg-query: Query failed: ERROR:relation &quot;sites&quot; does not exist in ....

Any idea = what might cause the problem?

=0A=

First of all query your pg_class catalog table and s= ee if you can see those tables in there like this:

select relname= from pg_class where relname =3D 'tablename';

If its there then = check you search_path and see if you have your schema name in there.
=0A=
Other then that I am not sure what do you mean by copying the files fro= m Windows server to Linux as I think you can not use the data files created= by initdb on Windows for a Linux server.

--
Shoai= b Mir
=0A= Fujitsu Australia Software Technology
shoaibm[@]fast.fujitsu.com.au=0A= = --_f883a095-d481-4368-8cba-f74ccbd46de9_--