Unix Technical Forum

Postgresql.conf - which param for in memory keys and tables?

This is a discussion on Postgresql.conf - which param for in memory keys and tables? within the pgsql Novice forums, part of the PostgreSQL category; --> Hello, Which param will I need to increase when I want postgresql to store the most requested keys, maximum ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:55 PM
Christian Hofmann
 
Posts: n/a
Default Postgresql.conf - which param for in memory keys and tables?

Hello,

Which param will I need to increase when I want postgresql to store the most
requested keys, maximum 500 MB, in memory and to store the mos requested
datasets, maximum 750 MB, in memory.

So when there is a select statement the memory will be consumed instead of
the slow disks.

I would guess these are parameters like work_mem or maintenance_work_mem,
but I am not sure.

Thank you,

Christian



---------------------------(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
  #2 (permalink)  
Old 04-17-2008, 09:55 PM
Tom Lane
 
Posts: n/a
Default Re: Postgresql.conf - which param for in memory keys and tables?

"Christian Hofmann" <christian.hofmann@gmx.de> writes:
> Which param will I need to increase when I want postgresql to store the most
> requested keys, maximum 500 MB, in memory and to store the mos requested
> datasets, maximum 750 MB, in memory.
> So when there is a select statement the memory will be consumed instead of
> the slow disks.


This happens automatically because of kernel disk caching; you shouldn't
have to worry about it, assuming that you do actually have enough
memory.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 09:55 PM
Christian Hofmann
 
Posts: n/a
Default Re: Postgresql.conf - which param for in memory keys and tables?

Hello Tom,

> This happens automatically because of kernel disk caching;
> you shouldn't
> have to worry about it, assuming that you do actually have enough
> memory.


Thank you for your answer. Will this also be done automaticly on a windows
server 2003 server?

When I am looking at the task manager postgresql is only consuming 10MB and
there are 2GB Free of memory.
I have enought data that postgresql could load into the memory.

On the other hand I think as it is a disk caching issue I won't see anything
in the task-manager.
Maybe windows does not have such a disk caching or I haven't found it?

Thank you,

Christian



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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 11:05 AM.


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