473,394 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

plan-reading extensive tutorial?

In the docs it says "Plan-reading is an art that deserves an extensive
tutorial, which this is not". Is there one? I've gone beyond simple
queries (which are performing well) to the more difficult queries (which
aren't).

e.g. 4 generation family tree implemented as a view using 14 left outer
joins back into the same table. If I select only from it, the optimizer
uses the primary key (single int4 field) in nested loop left join on all
14. If I join the view to another table, it wants to do it sequentially
(the other table is just a single int4 field with 1 row. the field is
the primary key and also has a foreign key constraint to the main table).

I dont want exact help on this particular query. Posting every query
I'm having a problem with to the mailing list is a waste of both my time
and yours (and not really feasable since it requires all the table
structures and data). I have tried the obvious with vacuum full
analyze, and changing the settings (like enable_seqscan,
join_collapse_limit, from_collapse_limit...).

klint.

+---------------------------------------+-----------------+
: Klint Gore : "Non rhyming :
: EMail : kg@kgb.une.edu.au : slang - the :
: Snail : A.B.R.I. : possibilities :
: Mail University of New England : are useless" :
: Armidale NSW 2351 Australia : L.J.J. :
: Fax : +61 2 6772 5376 : :
+---------------------------------------+-----------------+

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #1
6 1245
On Mon, 2004-04-19 at 08:35, Klint Gore wrote:
In the docs it says "Plan-reading is an art that deserves an extensive
tutorial, which this is not". Is there one? I've gone beyond simple
queries (which are performing well) to the more difficult queries (which
aren't).


Red Hat has a tool called "Visual explain" that shows explain output
graphically:

http://sources.redhat.com/rhdb/

It might help understand what's going on.
Bye, Chris.

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #2
Klint Gore wrote:
In the docs it says "Plan-reading is an art that deserves an extensive
tutorial, which this is not". Is there one? I've gone beyond simple
queries (which are performing well) to the more difficult queries (which
aren't).


Try this one..

http://www.gtsm.com/oscon2003/toc.html

Shridhar

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #3
Chris wrote:
Red Hat has a tool called "Visual explain" that shows explain output
graphically:

http://sources.redhat.com/rhdb/


I'm having a devil of a time getting this installed on my system ...
anybody here willing to give me a walk-through?
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
Nov 23 '05 #4
Chris wrote:
Red Hat has a tool called "Visual explain" that shows explain output
graphically:

http://sources.redhat.com/rhdb/


I'm having a devil of a time getting this installed on my system ...
anybody here willing to give me a walk-through?
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
Nov 23 '05 #5
On Tue, Apr 20, 2004 at 05:44:53PM +0000, Jeff Boes wrote:

I'm having a devil of a time getting this installed on my system ...
anybody here willing to give me a walk-through?


I did it just yesterday, to show it to someone. What's the problem?
Do you have the proper jdk and ant? Are they first in your $PATH? I
know that on debian, for instance, when you type 'java' you get
something that's free but which doesn't always work.

--
Andrew Sullivan | aj*@crankycanuck.ca

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #6
On Tue, Apr 20, 2004 at 05:44:53PM +0000, Jeff Boes wrote:

I'm having a devil of a time getting this installed on my system ...
anybody here willing to give me a walk-through?


I did it just yesterday, to show it to someone. What's the problem?
Do you have the proper jdk and ant? Are they first in your $PATH? I
know that on debian, for instance, when you type 'java' you get
something that's free but which doesn't always work.

--
Andrew Sullivan | aj*@crankycanuck.ca

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vinny | last post by:
Can anyone help me with this strange problem please? I have a stored procedure, with a parameter defined as a uniqueidentifier. The procedure does a select with a number of joins, and filters...
5
by: Krisnamourt Correia via SQLMonster.com | last post by:
I have one query that executes many times in a week. I created one Maintenances plan that Rebuild all index in my Database that has been executed at 23:40 Saturday until stop finished at Sunday. ...
2
by: jim_geissman | last post by:
I would like to save a query plan (estimated or actual) created in Query Analyzer -- paste it into a document, or simply print. It doesn't seem to be possible to select and copy the Execution...
2
by: Jenny Zhang | last post by:
The osdl-dbt3 test starts with building and vacuuming the database. The execution plans were taken after the vacuuming. I did two tests with the same database parameters: 1. run two osdl-dbt3...
13
by: Dmitry Tkach | last post by:
Hi, everybody! Here is a weird problem, I ran into... I have two huge (80 million rows each) tables (a and b), with id as a PK on both of them and also an FK from b referencing a. When I try to...
1
by: Michael G via SQLMonster.com | last post by:
I am working on tuning the procedure cache hit ratio for my server. We have added 4 Gb of memory to the server, which has helped. In addition, I have run the DBCC FREEPROCACHE, which helped for a...
7
by: stig | last post by:
hi. coming from postgresql, i am used to textual references to most of the things i do with the database. i feel a little lost with all the graphical. i have few questions regarding MS SQL 2000...
2
by: Ina Schmitz | last post by:
Hi NG, does IBM Universal Database 8.2 make any difference between actual and estimated execution plans like in SQL Server ("set showplan_all on" for estimated execution plan and "set statistics...
10
by: OppThumb | last post by:
Hi, I've been searching this newsgroup for an answer to my question, and the closest I've come asks my question, but in reverse ("How to figure out the program from plan/package"). I've -- shall...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.