Abu Mushayeed | 1 Apr 2007 15:59
Picon
Favicon

max_fsm_pages

PG DB: 8.1.3
12 DB in the cluster
 
When I do a full vacuum of the database cluster, at the end I am getting the message as follows:
 
psql:dba_task.sql:1: INFO:  free space map contains 8033993 pages in 1023 relations
DETAIL:  A total of 8000000 page slots are in use (including overhead).
8201952 page slots are required to track all free space.
Current limits are:  8000000 page slots, 32768 relations, using 49054 KB.
psql:dba_task.sql:1: NOTICE:  number of page slots needed (8201952) exceeds max_fsm_pages (8000000)
HINT:  Consider increasing the configuration parameter "max_fsm_pages" to a value over 8201952.
 
My questions are:
 
1. With out increasing the max_fsm_pages, can I bring down the need for fsm_pages by deleting unnecessary tables?
2. As, the database grows the need for max_fsm_pages grows too, what is the best practice?
3. As a new postgres DBA, how should one manage this parameter?
 
Thanks
Abu Mushayeed

It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
MicazMAK | 2 Apr 2007 00:30
Picon
Favicon

Cross compile of Postgresql

Hi

I want to cross compile postgresql for ARM processor. I am using the linux enviroment to do this cross compile.

I do this

 ./configure CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc

but its not working can someone tell me how to do this cross compile.


Regards
Moazzam

No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
MicazMAK | 2 Apr 2007 01:47
Picon
Favicon

Cross Compile

Hi
 
I am trying to cross compile postgresql for ARM platform. I am configure it on my linux enironment. Configure is done without any errors but when I make it gives me error like cannot execute binary file.
 
Can someone guide me how to cross compile postgres.
 
Regards

MAk

It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
Tom Lane | 2 Apr 2007 06:23
Picon

Re: Cross Compile

MicazMAK <emoazzam <at> yahoo.com> writes:
>   I am trying to cross compile postgresql for ARM platform. I am configure it on my linux enironment.
Configure is done without any errors but when I make it gives me error like cannot execute binary file.

Offhand I'd think that "make" should work but "make install" would have
a problem because it tries to run "zic" which will have been built for
the target platform.  The easiest solution might be to copy over zic
and the timezone data files, and do that step on the target.  Or you
could recompile zic for the source platform (it doesn't need to get
installed).

If that's not it, you need to provide more details.

			regards, tom lane

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

Sorin N. Ciolofan | 2 Apr 2007 11:28
Picon

Increasing the shared memory

 

 Hello!

 

 I’d like to ask you if there is any Postgre configuration parameter (like the ones defined in postgresql.conf file) that could be used for increasing the shared memory for Postgre?

 

Thank you very much

With best regards,

Sorin

Marius ROMAN | 2 Apr 2007 11:32
Picon

Re: Increasing the shared memory

http://www.postgresql.org/docs/8.1/interactive/kernel-resources.html

On 4/2/07, Sorin N. Ciolofan <ciolofan <at> ics.forth.gr> wrote:
>
>
>
>
>
>
>  Hello!
>
>
>
>  I'd like to ask you if there is any Postgre configuration parameter (like
> the ones defined in postgresql.conf file) that could be used for increasing
> the shared memory for Postgre?
>
>
>
> Thank you very much
>
> With best regards,
>
> Sorin

--

-- 
marius <at> {bsd.com.ro, joy2share.com, vrajamarii.net, ispot.ro}

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

Marc Cousin | 2 Apr 2007 11:39
Picon

Re: SSL broken pipe

It seems to be what occurred : the windows client crashed ...
Still, it's a bit of a problem to have a filesystem full in a matter of 
minutes just because a client machine crashed while having an SSL connection 
opened on the postgresql server...

On Thursday 29 March 2007 19:40:18 Peter Koczan wrote:
> I saw this on one of my servers a few weeks ago (it was running
> postgres 7.4under linux, and I believe the users in question were just
> running psql). I
> talked to someone more knowledgeable about SSL about this, and he said that
> these errors are usually due to some abrupt disconnection somewhere (in any
> application, not just postgres). My best guess is that the connection was
> broken while data was trying to be fed, causing the server to say "Hey,
> where'd you go?...Here's your data again...Hey where'd you go?..." ad
> infinitum.
>
> Other than that, I have no idea what would cause this or how to fix it
> short of restarting the postgres server or rebooting the machine.
>
> That being said, I don't know a whole lot about SSL, and people with more
> knowledge are more than welcome to weigh in.
>
> Peter
>

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate

Shoaib Mir | 2 Apr 2007 11:55
Picon

Re: max_fsm_pages

First of all run the VACUUM FULL ANALYZE and that should hopefully help you get rid of this problem without changing the max_fsm_pages. Other then this I will recommend you to have the autovacuuming process in place for proper database maintenance.

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 4/1/07, Abu Mushayeed < abumushayeed <at> yahoo.com> wrote:
PG DB: 8.1.3
12 DB in the cluster
 
When I do a full vacuum of the database cluster, at the end I am getting the message as follows:
 
psql:dba_task.sql:1: INFO:  free space map contains 8033993 pages in 1023 relations
DETAIL:  A total of 8000000 page slots are in use (including overhead).
8201952 page slots are required to track all free space.
Current limits are:  8000000 page slots, 32768 relations, using 49054 KB.
psql:dba_task.sql:1: NOTICE:  number of page slots needed (8201952) exceeds max_fsm_pages (8000000)
HINT:  Consider increasing the configuration parameter "max_fsm_pages" to a value over 8201952.
 
My questions are:
 
1. With out increasing the max_fsm_pages, can I bring down the need for fsm_pages by deleting unnecessary tables?
2. As, the database grows the need for max_fsm_pages grows too, what is the best practice?
3. As a new postgres DBA, how should one manage this parameter?
 
Thanks
Abu Mushayeed

It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.


Shoaib Mir | 2 Apr 2007 12:00
Picon

Re: Increasing the shared memory

I guess shared_buffers (in postgresql.conf file) will help you here if you have properly setup your kernel.SHMMAX value.

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com )

On 4/2/07, Sorin N. Ciolofan <ciolofan <at> ics.forth.gr> wrote:

 

 Hello!

 

 I'd like to ask you if there is any Postgre configuration parameter (like the ones defined in postgresql.conf file) that could be used for increasing the shared memory for Postgre?

 

Thank you very much

With best regards,

Sorin


Rickard Sjöström | 2 Apr 2007 13:26
Favicon

PG does not use my index

Hi!
This post is related to the post "Performance of views" but this is another problem now. 

Problem: PostgreSQL seems to not use my index.

My postgres is 7.4.

I started all over again and got my query really fast on one database (~40 seconds became 150 ms). BUT when
trying on another db (same postgres server but with approx. 4 times as much data) it was really slow again
(say 10 seconds). 

Then I run the EXPLAIN ANALYSE of a sub-query of my query which I realize was the problem. 

It seems that it does not make use of the index in the slower database!?

fast db:
-------------------------
 ->  Index Scan using testcase_b_bid_index on testcase  (cost=0.00..1656.82 rows=426 width=38) (never executed)"
-------------------------

slow db:
-------------------------
->  Seq Scan on testcase  (cost=0.00..2896.42 rows=33242 width=64) (actual time=77.027..791.014
rows=37093 loops=1)"
-------------------------

rows=37093 is all of the existing rows of table testcase!
(why does it say "never executed"?)

Any ideas why it does not use my index??? How can I convince it to do so?

/Rickard

Citerar Tom Lane <tgl <at> sss.pgh.pa.us>:

> Rickard =?iso-8859-1?b?U2r2c3Ry9m0=?=
> <rickard.sjostrom <at> bluebottle.com> writes:
> > I have a view that is really slow and I ca easily work around the
> slowness by bypassing the view and query the real table directly.
> 
> Let's see the exact definition of the view and EXPLAIN ANALYZE
> results
> for doing it both ways.  Also, what PG version is this?
> 
> 			regards, tom lane
>

----------------------------------------------------------------------
Need cash? Click to get an emergency loan, bad credit ok
http://tags.bluebottle.com/fc/CAaCMPJe8z3dVmZgRfajsIJMkopwDwDI/

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate


Gmane