From: Julio Leyva <jcleyva@hotmail.com>
To: Shoaib Mir <shoaibmir@gmail.com>
To: PostgreSql <hampi1@gumtreegully.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: Queriy results erratic on Linux
Date: Fri, 8 Feb 2008 14:31:30 +0000
Message-ID: <BLU102-W43AA62F5C355C2F26A1F95A12F0@phx.gbl> (raw)
In-Reply-To: <bf54be870802080547m474d2b9exb374644234287108@mail.gmail.com>
References: <fog1lp$17el$1@news.hub.org>
<bf54be870802080547m474d2b9exb374644234287108@mail.gmail.com>
Linux is sensitive to uppercase or lowercase
make sure your script has all the tables names as they are shown in postgresql
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 <hampi1@gumtreegully.com.au> wrote:
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!
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?
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 = 'tablename';
If its there then check you search_path and see if you have your schema name in there.
Other then that I am not sure what do you mean by copying the files from Windows server to Linux as I think you can not use the data files created by initdb on Windows for a Linux server.
--
Shoaib Mir
Fujitsu Australia Software Technology
shoaibm[@]fast.fujitsu.com.au
=
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jcleyva@hotmail.com, shoaibmir@gmail.com, hampi1@gumtreegully.com.au
Subject: Re: Queriy results erratic on Linux
In-Reply-To: <BLU102-W43AA62F5C355C2F26A1F95A12F0@phx.gbl>
References: <fog1lp$17el$1@news.hub.org> <bf54be870802080547m474d2b9exb374644234287108@mail.gmail.com> <BLU102-W43AA62F5C355C2F26A1F95A12F0@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox