Unix Technical Forum

statistics not shown up

This is a discussion on statistics not shown up within the pgsql Admins forums, part of the PostgreSQL category; --> I start postgres using the -s parameter to track the number of hits to buffer. I also set both ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:12 AM
huaxin zhang
 
Posts: n/a
Default statistics not shown up

I start postgres using the -s parameter to track the number of hits to buffer.

I also set both "stats_start_collector", "stats_block_level" to true
in /usr/local/pgsql/data/postgresql.conf

However, I get "(typeid = 700, len = 4, typmod = -1, byval = f)" after
running each query. Apparently this is not manifesting buffer hit rate.
Something I did wrong?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:12 AM
Guido Barosio
 
Posts: n/a
Default pgfoundry administration

Seems that the guys @ pgfoundry are in problems but they do use postgresql

An error occured in the logger. ERROR: could not extend relation
"activity_log": No space left on device HINT: Check free disk space.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 06:12 AM
Michael Fuhr
 
Posts: n/a
Default Re: statistics not shown up

On Sun, Sep 04, 2005 at 08:00:21PM -0400, huaxin zhang wrote:
> I start postgres using the -s parameter to track the number of hits to buffer.


I assume you're running postgres in single-user mode since that's
where the -s option means "print statistics." Is that what you're
doing?

> I also set both "stats_start_collector", "stats_block_level" to true
> in /usr/local/pgsql/data/postgresql.conf
>
> However, I get "(typeid = 700, len = 4, typmod = -1, byval = f)" after
> running each query. Apparently this is not manifesting buffer hit rate.


Try setting log_min_messages to debug1; that works for me in 8.0.3.

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 06:12 AM
Marc G. Fournier
 
Posts: n/a
Default Re: pgfoundry administration


Nope, just moved the database server(s) to a faster server, and didn't
realize that I hadn't cleared out enough disk space before doing so
Already fixed, and 20+Gig of free space (and growing) to play with now)
....



On Mon, 5 Sep 2005, Guido Barosio wrote:

> Seems that the guys @ pgfoundry are in problems but they do use postgresql
>
> An error occured in the logger. ERROR: could not extend relation
> "activity_log": No space left on device HINT: Check free disk space.
>
>


----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2008, 06:13 AM
huaxin zhang
 
Posts: n/a
Default how to change index cluster ratio?

I am using 8.0.3

One problem I found is that even if I specify to create a clustered index by
"cluster idx_name on table_name", I still can not tell the optimizer that the
index of "idx_name" is a clustered index with "index correlation" value as 1.0
(traced from the cost_index() in costsize.c)

so where is the "index correlation" information stored and how can i update it?

thanks
Huaxin

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

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 06:13 AM
Tom Lane
 
Posts: n/a
Default Re: how to change index cluster ratio?

huaxin zhang <uwcssa@gmail.com> writes:
> One problem I found is that even if I specify to create a clustered index by
> "cluster idx_name on table_name", I still can not tell the optimizer that the
> index of "idx_name" is a clustered index with "index correlation" value as 1.0
> (traced from the cost_index() in costsize.c)


The next ANALYZE should figure that out.

regards, tom lane

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

http://archives.postgresql.org

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 09:43 PM.


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