Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Problems wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 15481 of 16941
Post > Topic >>

Re: Problems with memory

by pgsql@[EMAIL PROTECTED] (Shane Ambler) May 9, 2008 at 01:32 AM

Richard Huxton wrote:
> Pau Marc Munoz Torres wrote:
>> Hi

To your initial question all configurable options can be found and 
adjusted in the postgresql.conf which can be found in the top of your 
data dir.

You can find more detail on what the options are for at
http://www.postgresql.org/docs/8.3/interactive/runtime-config.html

Although I doubt it will fix your problem you will most likely want to 
tune them to get the best performance from your db once it goes live.

>> maybe i should give you some more explanations of my problem.
>>
>> The reason for which i think that postgresql run out of memory is that:
I
>> have a relation with 6 fields, 29 indexes and 32000 registers, the 
>> registers

So how much ram does your machine have? have you looked at how much 
postgres is using while it is running the queries?

What CPU's and disks/raid controller?

>> when i do a query as:
>>
>> select * from precalc where idr(p1, p4, p6, p7, p9, 
>> 'HLA-DRB1*0101')<-2; it
>> works and return 128030 registers
>>
>> if i do
>>
>> select * from precalc where idr(p1, p4, p6, p7, p9,
'HLA-DRB1*0101')>-2;
>> 3071970 registers, it don't work
>> ERROR:  relation "pssms" does not exist
>> CONTEXT:  SQL statement "select score from PSSMS where AA= $1  and 
>> POS=1 and
>> MOLEC= $2 "
>> PL/pgSQL function "idr" line 11 at SQL statement

Start with the idr function - this is where the error comes from.
The error doesn't mention out of memory.

> 
>> if i ask for explanation for both queries works:

explain will show what the planner expects to do. explain analyse will 
actually run through the query and give exact row counts returned etc. 
and will hit the error that you get when running the query.

>>
>> If for that reason that i think that my machine runs out of memory, by 
>> the
>> way, this is not the biggest table that i have others have more than
>> 503000000 registers, so if I try to do a cross select between tables it
>> could be worse.

You may hear from people on this list that have db's storing many 
TeraBytes of data.



-- 

Shane Ambler
pgSQL (at) Sheeky (dot) Biz

Get Sheeky @[EMAIL PROTECTED]
 http://Sheeky.Biz

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 6 Posts in Topic:
Problems with memory
paumarc@[EMAIL PROTECTED]  2008-05-07 17:55:08 
Re: Problems with memory
dev@[EMAIL PROTECTED] (R  2008-05-07 17:09:20 
Re: Problems with memory
mmoncure@[EMAIL PROTECTED  2008-05-07 14:44:18 
Re: Problems with memory
paumarc@[EMAIL PROTECTED]  2008-05-08 11:54:14 
Re: Problems with memory
dev@[EMAIL PROTECTED] (R  2008-05-08 11:24:43 
Re: Problems with memory
pgsql@[EMAIL PROTECTED]   2008-05-09 01:32:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:22:24 CDT 2008.