Re: How to tame a gigantic (100+ lines) query in a web app?

From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to tame a gigantic (100+ lines) query in a web app?
Date: 2011-08-15 08:32:55
Message-ID: 4E48D9B7.3040007@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#ffffff"
text="#000000">
On 08/14/2011 05:39 PM, W. Matthew Wilson wrote:<br>
<blockquote
cite="mid:CAGHfCUDQc8RywD1_qa1_d3K3pFA5mGa4y5dyWh+ysdAgAgzfPg(at)mail(dot)gmail(dot)com"
type="cite">
<pre wrap="">Is there anything dangerous about making temporary tables in this way?

Matt
</pre>
</blockquote>
<p>The only dangerous thing I have encountered with temp tables is
that the planner compiles the table oid into the plan and if you
run a function after the table has been dropped and recreated it
will tell you that the table doesn't exist. This is from 8.2 and
lower, I haven't checked if this is still a problem in more recent
versions.</p>
<p><br>
</p>
<p>Sim<br>
</p>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vincent de Phily 2011-08-15 10:31:49 altering foreign key without a table scan
Previous Message Ondrej Ivanič 2011-08-15 05:26:00 Postgres on SSD