Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8280E2E4B41 for ; Fri, 8 Feb 2008 09:47:12 -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 52563-05 for ; Fri, 8 Feb 2008 09:47:05 -0400 (AST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by postgresql.org (Postfix) with ESMTP id 2A5642E2FAE for ; Fri, 8 Feb 2008 09:47:05 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id 71so3981560wri.5 for ; Fri, 08 Feb 2008 05:47:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=55LGMN28+2lfAQtkXd9Ud9O6ZljhtPHXJHOg+RZK3vQ=; b=W73fXFjJezsBKcP0J5BFMB5Xyk+IcKa/to04Lepj0VYrG8TSckKgAVcMR2etKJbjZdCSapKwh24ECmLp2lkuDB0qzs9Uz93R0yY71IofN0a8WcihsHC9GKaDBREBK9Yvwo8t1H5n+YtuQPmEcmxksvYIjeq3JGbmS0cr2dtGXIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Eipgb6o5mt2z1gryGsWf+ZSXS3p1u9anziwvDVSHikq05GXUSYSlby8rfuphXKgX9NgexqpSyA6jFMxuqxGE6KqHHgwBNu/Y4v+u5oGfmOIMPBKjBQuqlW0FxfIGGa57WNkm9uZsr0g8ufP9sGcWgS6xB/LFWEBnaJTIj98+TOw= Received: by 10.142.104.9 with SMTP id b9mr1113078wfc.48.1202478422390; Fri, 08 Feb 2008 05:47:02 -0800 (PST) Received: by 10.142.203.12 with HTTP; Fri, 8 Feb 2008 05:47:02 -0800 (PST) Message-ID: Date: Fri, 8 Feb 2008 18:47:02 +0500 From: "Shoaib Mir" To: PostgreSql Subject: Re: Queriy results erratic on Linux Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28715_7817686.1202478422322" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/93 X-Sequence-Number: 28167 ------=_Part_28715_7817686.1202478422322 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Feb 8, 2008 3:35 AM, PostgreSql 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 ------=_Part_28715_7817686.1202478422322 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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 &quot;sites&quot; 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 ------=_Part_28715_7817686.1202478422322--