invalid memory alloc request

Forum with tips, support, etc, on using the PostgreSQL database with Poker Tracker. Please post any PostgreSQL questions here.

invalid memory alloc request

Postby fmny » Wed May 14, 2008 1:50 pm

I'm getting this error when I try to backup my PTO database: invalid memory alloc request size #####. Is there any fix for this? I'm posting it here because it looks like a postgre issue and this is the only postgre board I could find outside of PT3.

Also, I'm using postgre 8.2. Is an upgrade to 8.3 recommended?
fmny
 
Posts: 77
Joined: Sun Apr 13, 2008 1:55 pm

Re: invalid memory alloc request

Postby ptrack pat » Wed May 14, 2008 3:00 pm

Is it a huge database? I seem to remember there might be issues with backing up huge databases in PostgreSQL, once the backup reached a certain size. Do you remember what dot version of PG 8.2 this was? It is 8.2.6?
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: invalid memory alloc request

Postby fmny » Thu May 15, 2008 12:43 am

I am using version 8.2.6. I remember the problem with large databases. That happens when the backup file itself exceeded 2GB in size thus causing an error. That is not the case here as my backup file is well short of 2GB, and I believe that bug was fixed in 8.2.3 anyway.

This is a strange error because I was able to backup this database just as recently as last week. Since then I reimported all the hands fresh into an empty database to take advantage of the patch that makes separate levels for NL with cap and standard NL. So this database is the same size and is freshly created. The only thing I did to this one that I hadn't done to the original database for a while is the clustering of various indexes as described in a post you surely are familiar with. Maybe the clustering has someone screwed up the database. I guess the only way to know is to reimport all the hands again and then try to backup without clustering. I hate the thought of that as the database has 2.5 million hands and it took 3 days to import everything.

Googling this memory alloc request size error I find several hits but most of it is way to technical for me to follow. Here's one hit.
http://archives.postgresql.org/pgsql-ad ... g00117.php
fmny
 
Posts: 77
Joined: Sun Apr 13, 2008 1:55 pm

Re: invalid memory alloc request

Postby ptrack pat » Thu May 15, 2008 9:29 am

I would not know how to do what they are talking about in that link, I am not that familiar with the inner workings of PostgreSQL.

Unfortunately importing the hands again into a new db is probably what you'll need to do.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: invalid memory alloc request

Postby fmny » Thu May 15, 2008 7:35 pm

Right, I'll reimport everything. The moral of this story seems to be make a backup before doing any operations like clustering.
fmny
 
Posts: 77
Joined: Sun Apr 13, 2008 1:55 pm

Re: invalid memory alloc request

Postby ptrack pat » Thu May 15, 2008 7:46 pm

fmny wrote:Right, I'll reimport everything. The moral of this story seems to be make a backup before doing any operations like clustering.


Yes, that's a good idea.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm


Return to PostgreSQL Forum

Who is online

Users browsing this forum: MagPie Crawler and 21 guests

cron
highfalutin