From: Premsun Choltanwanich <Premsun@nsasia.co.th>
To: Andreas Joseph Krogh <andreak@officenet.no>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Slow Query problem
Date: Tue, 29 Jan 2008 15:18:00 +0700
Message-ID: <479F4382.C5F7.004C.0@nsasia.co.th> (raw)
In-Reply-To: <3741.1201540806@sss.pgh.pa.us>
References: <479DE418.C5F7.004C.0@nsasia.co.th>
<200801281326.33832.andreak@officenet.no>
<200801281326.33832.andreak@officenet.no>
<3741.1201540806@sss.pgh.pa.us>
I already install the latest version of PostgreSQL on my machine then try again. I found that it has a little improvement about 0.5 second but I think it still slow.
What is the 'more detail' you need?
Any other advise?
>>> Tom Lane <tgl@sss.pgh.pa.us> 1/29/2008 0:20 >>>
Andreas Joseph Krogh <andreak@officenet.no> writes:
> On Monday 28 January 2008 08:18:24 Premsun Choltanwanich wrote:
>> I am currently using PostgreSQL database version 8.0.13. My problem
>> relates to a slow result when a query using a defined view joins to another
>> table for a result.
> It is very hard to help without you providing the schema for the tables/views
> involved.
One suggestion is that 8.2.x is significantly smarter about joins to
unions than previous releases were. Whether this would help in your
particular case is impossible to say, though, without more detail.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
NETsolutions Asia Limited
+66 (2) 237 7247
http://www.nsasia.co.thAttachments:IMAGE.jpg (image/jpg, 6.3K) downloadview image
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: Premsun@nsasia.co.th, andreak@officenet.no, tgl@sss.pgh.pa.us
Subject: Re: Slow Query problem
In-Reply-To: <479F4382.C5F7.004C.0@nsasia.co.th>
* 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