pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedQueriy results erratic on Linux
4+ messages / 4 participants
[nested] [flat]
* Queriy results erratic on Linux
@ 2008-02-07 22:35 PostgreSql <hampi1@gumtreegully.com.au>
0 siblings, 2 replies; 4+ messages in thread
From: PostgreSql @ 2008-02-07 22:35 UTC (permalink / raw)
To: pgsql-admin
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?
The server configuration:
PHP Version 5.0.4
PostgreSQL 8.1.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2
20030222 (Red Hat Linux 3.2.2-5)
Thanks
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Queriy results erratic on Linux
@ 2008-02-08 13:47 Shoaib Mir <shoaibmir@gmail.com>
parent: PostgreSql <hampi1@gumtreegully.com.au>
1 sibling, 1 reply; 4+ messages in thread
From: Shoaib Mir @ 2008-02-08 13:47 UTC (permalink / raw)
To: PostgreSql <hampi1@gumtreegully.com.au>; +Cc: pgsql-admin
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?
> <http://archives.postgresql.org;
>
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Queriy results erratic on Linux
@ 2008-02-08 13:48 Achilleas Mantzios <achill@matrix.gatewaynet.com>
parent: PostgreSql <hampi1@gumtreegully.com.au>
1 sibling, 0 replies; 4+ messages in thread
From: Achilleas Mantzios @ 2008-02-08 13:48 UTC (permalink / raw)
To: pgsql-admin
Óôéò Friday 08 February 2008 00:35:52 ï/ç PostgreSql Ýãñáøå:
> 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?
That you were using windows before, so the spirit of UNIX/open source
is punishing you!
Maybe your table/column names are sensitive to lower/upper case?
>
> The server configuration:
> PHP Version 5.0.4
> PostgreSQL 8.1.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2
> 20030222 (Red Hat Linux 3.2.2-5)
>
> Thanks
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Achilleas Mantzios
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Queriy results erratic on Linux
@ 2008-02-08 14:31 Julio Leyva <jcleyva@hotmail.com>
parent: Shoaib Mir <shoaibmir@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Julio Leyva @ 2008-02-08 14:31 UTC (permalink / raw)
To: Shoaib Mir <shoaibmir@gmail.com>; PostgreSql <hampi1@gumtreegully.com.au>; +Cc: pgsql-admin
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
=
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2008-02-08 14:31 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-02-07 22:35 Queriy results erratic on Linux PostgreSql <hampi1@gumtreegully.com.au>
2008-02-08 13:47 ` Shoaib Mir <shoaibmir@gmail.com>
2008-02-08 14:31 ` Julio Leyva <jcleyva@hotmail.com>
2008-02-08 13:48 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
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