Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Slow Query problem


  • From: "Premsun Choltanwanich" <Premsun(at)nsasia(dot)co(dot)th>
  • To: "Andreas Joseph Krogh" <andreak(at)officenet(dot)no>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: <pgsql-sql(at)postgresql(dot)org>
  • Subject: Re: Slow Query problem
  • Date: Tue, 29 Jan 2008 15:18:00 +0700
  • Message-id: <479F4382.C5F7.004C.0@nsasia.co.th> <text/plain>

<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-874">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt MS Sans Serif">
<DIV>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.</DIV>
<DIV>&nbsp;</DIV>
<DIV>What is&nbsp;the 'more detail'&nbsp;you need?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any other advise?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&gt;&gt;&gt; Tom Lane &lt;tgl(at)sss(dot)pgh(dot)pa(dot)us&gt; 1/29/2008 0:20 &gt;&gt;&gt;<BR>Andreas Joseph Krogh &lt;andreak(at)officenet(dot)no&gt; writes:<BR>&gt; On Monday 28 January 2008 08:18:24 Premsun Choltanwanich wrote:<BR>&gt;&gt; I am currently using PostgreSQL database version 8.0.13.&nbsp; My problem<BR>&gt;&gt; relates to a slow result when a query using a defined view joins to another<BR>&gt;&gt; table for a result.<BR><BR>&gt; It is very hard to help without you providing the schema for the tables/views<BR>&gt; involved.<BR><BR>One suggestion is that 8.2.x is significantly smarter about joins to<BR>unions than previous releases were.&nbsp; Whether this would help in your<BR>particular case is impossible to say, though, without more detail.<BR><BR>regards, tom lane<BR><BR>---------------------------(end of broadcast)---------------------------<BR>TIP 9: In versions below 8.0, the planner will ignore your desire to<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; choose an index scan if your joining column's datatypes do not<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; match<BR></DIV><BR>

    <p>
      <font size="2" color="#0033cc" face="Trebuchet MS"><b>NETsolutions Asia 
      Limited </b></font>
    </p>
    <p>
      <font size="2" color="#0033cc" face="Trebuchet MS"><b>+66 (2) 237 7247 </b></font>

    </p>
    <p>
      <a href="http://www.nsasia.co.th";><img border="0" alt="NETsolutions Asia Limited" src="cid:RQHFQWYUJULD.44e30700.jpg">
</a>    </p>
  </BODY></HTML>

image/jpg



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group