Unix Technical Forum

[Fwd: Re: [DOCS] How the planner uses statistics]

This is a discussion on [Fwd: Re: [DOCS] How the planner uses statistics] within the Pgsql Patches forums, part of the PostgreSQL category; --> As discussed on -docs. ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:02 AM
Mark Kirkwood
 
Posts: n/a
Default [Fwd: Re: [DOCS] How the planner uses statistics]

As discussed on -docs.



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:02 AM
Tom Lane
 
Posts: n/a
Default Re: [Fwd: Re: [DOCS] How the planner uses statistics]

Mark Kirkwood <markir@coretech.co.nz> writes:
> As discussed on -docs.


Hmmm ... it strikes me that someone wanting this level of detail
would be better advised to look into the source code. I certainly
wouldn't want to promise that a chunk of documentation like this
will stay up-to-date.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 12:02 AM
Mark Kirkwood
 
Posts: n/a
Default Re: [Fwd: Re: [DOCS] How the planner uses statistics]

Tom Lane wrote:
>
> The internals section would be a good compromise. ISTM that in the
> context of the "performance tips" chapter, all that people really want
> to know is that the planner uses the pg_statistic entries to estimate
> numbers of matching rows --- just how it goes about it is irrelevant
> detail at that point.


Yeah, it clearly is internals, now that you mention it .. :-)

The whole 'it can get out of date' thing worries me a bit - however I
guess everything in the internals section is a bit vulnerable to that
(another reason for internals being the place to put it).

Having said that, if it seems that this is really too much like reading
the code to be in the docs at all, then another option is for it to go
to one of the community sites (like varlena), where it could be
(reformatted) and clearly marked as relevant for 7.x and 8.0 only.

best wishes

Mark




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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 12:03 AM
Mark Kirkwood
 
Posts: n/a
Default Re: [Fwd: Re: [DOCS] How the planner uses statistics]

Tom Lane wrote:
>
>
> Hmmm ... it strikes me that someone wanting this level of detail
> would be better advised to look into the source code.


I did wonder about about it being better placed in 'internals'
somewhere, but it seemed to follow on from the 'explain' and 'stats'
sections quite well.

>I certainly
> wouldn't want to promise that a chunk of documentation like this
> will stay up-to-date.


Yeah - that is a concern... no doco is better than wrong doco :-)
Mind you, ISTM that the same objection could be leveled at the 'stats'
section....

best wishes

Mark




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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-18-2008, 12:03 AM
Tom Lane
 
Posts: n/a
Default Re: [Fwd: Re: [DOCS] How the planner uses statistics]

Mark Kirkwood <markir@coretech.co.nz> writes:
> Tom Lane wrote:
>> Hmmm ... it strikes me that someone wanting this level of detail
>> would be better advised to look into the source code.


> I did wonder about about it being better placed in 'internals'
> somewhere, but it seemed to follow on from the 'explain' and 'stats'
> sections quite well.


The internals section would be a good compromise. ISTM that in the
context of the "performance tips" chapter, all that people really want
to know is that the planner uses the pg_statistic entries to estimate
numbers of matching rows --- just how it goes about it is irrelevant
detail at that point.

regards, tom lane

---------------------------(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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:49 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com