Unix Technical Forum

Can't make backup (again)

This is a discussion on Can't make backup (again) within the Pgsql General forums, part of the PostgreSQL category; --> Hi, Some days ago we were having problems running pg_dump (v. 8.2.5.7260) from Windows XP SP2 to a database ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:18 AM
=?iso-8859-1?q?Sebasti=E1n=20Baioni?=
 
Posts: n/a
Default Can't make backup (again)

Hi,
Some days ago we were having problems running pg_dump (v. 8.2.5.7260) from Windows XP SP2 to a database in a sever PostgreSQL 8.2.5 on amd64-portbld-freebsd6.2.
We thought the problem was solved but we are having problems again.
Now we got an error:
"cannot allocate memory for input buffer"
The command was: "COPY public.sipat00 (sipasede, ... ) TO stdout;

¿Is this a memory problem? ¿From server (FreeBSD) or from client PC (Windows XP)?

Thanks
Sebastián


Sebastián Baioni
http://www.acomplejados.com.ar
http://www.extremista.com.ar
http://www.coolartists.com.ar


---------------------------------

Yahoo! Encuentros
Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros.
Visitá http://yahoo.cupidovirtual.com/servlet/NewRegistration
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:18 AM
Richard Huxton
 
Posts: n/a
Default Re: Can't make backup (again)

Sebastián Baioni wrote:
> Hi,
> Some days ago we were having problems running pg_dump (v. 8.2.5.7260) from Windows XP SP2 to a database in a sever PostgreSQL 8.2.5 on amd64-portbld-freebsd6.2.
> We thought the problem was solved but we are having problems again.
> Now we got an error:
> "cannot allocate memory for input buffer"
> The command was: "COPY public.sipat00 (sipasede, ... ) TO stdout;
>
> ¿Is this a memory problem?


Well, yes you can't allocate memory.

> ¿From server (FreeBSD) or from client PC (Windows XP)?


Did you see the error on the client PC or the server?
What do the server logs show?
What was the memory usage on the client when this happened?

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:18 AM
=?iso-8859-1?q?Sebasti=E1n=20Baioni?=
 
Posts: n/a
Default Re: Can't make backup (again)


--- Richard Huxton <dev@archonet.com> escribió:

> Sebastián Baioni wrote:
> > Hi,
> > Some days ago we were having problems running pg_dump (v. 8.2.5.7260) from Windows XP SP2 to a

> database in a sever PostgreSQL 8.2.5 on amd64-portbld-freebsd6.2.
> > We thought the problem was solved but we are having problems again.
> > Now we got an error:
> > "cannot allocate memory for input buffer"
> > The command was: "COPY public.sipat00 (sipasede, ... ) TO stdout;
> >
> > ¿Is this a memory problem?

>
> Well, yes you can't allocate memory.
>
> > ¿From server (FreeBSD) or from client PC (Windows XP)?

>
> Did you see the error on the client PC or the server?
> What do the server logs show?
> What was the memory usage on the client when this happened?
>
> --
> Richard Huxton
> Archonet Ltd


The error was in the client PC, the command we used in a command line was: "C:\Program
files\pgAdmin III\1.8\pg_dump.exe" -h mihost -p 5432 -U miuser -F c -v -b -f "C:\back\db.backup"
db
I contacted the Admin and told me there was no erros nor in the postgresql log nor in the server
log.
I don't know the memory usage on the client, I'll try to repeat the error and check it.

Thank you
Sebastián



Yahoo! Encuentros.

Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros http://yahoo.cupidovirtual.com/servlet/NewRegistration

---------------------------(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, 12:18 AM
=?iso-8859-1?q?Sebasti=E1n=20Baioni?=
 
Posts: n/a
Default Re: Can't make backup (again)


--- Sebastián Baioni <sebaioni-postgresql@yahoo.com.ar> escribió:

>
> --- Richard Huxton <dev@archonet.com> escribió:
>
> > Sebastián Baioni wrote:
> > > Hi,
> > > Some days ago we were having problems running pg_dump (v. 8.2.5.7260) from Windows XP SP2 to

> a
> > database in a sever PostgreSQL 8.2.5 on amd64-portbld-freebsd6.2.
> > > We thought the problem was solved but we are having problems again.
> > > Now we got an error:
> > > "cannot allocate memory for input buffer"
> > > The command was: "COPY public.sipat00 (sipasede, ... ) TO stdout;
> > >
> > > ¿Is this a memory problem?

> >
> > Well, yes you can't allocate memory.
> >
> > > ¿From server (FreeBSD) or from client PC (Windows XP)?

> >
> > Did you see the error on the client PC or the server?
> > What do the server logs show?
> > What was the memory usage on the client when this happened?
> >
> > --
> > Richard Huxton
> > Archonet Ltd

>
> The error was in the client PC, the command we used in a command line was: "C:\Program
> files\pgAdmin III\1.8\pg_dump.exe" -h mihost -p 5432 -U miuser -F c -v -b -f "C:\back\db.backup"
> db
> I contacted the Admin and told me there was no erros nor in the postgresql log nor in the server
> log.
> I don't know the memory usage on the client, I'll try to repeat the error and check it.
>
> Thank you
> Sebastián
>

I forgot to tell that the error was seen on the client but it was a response from the server:
pg_dump: Mensaje de error del servidor: cannot allocate memory for input buffer
pg_dump: El comando es: COPY public.sipat00 (sipasede, ...) TO stdout;
pg_dump: *** se abort¾ por un error

*Mensaje de error del servidor = Server's Error Message
*El comando es: The command is
*se abortó por un error: it was aborted because an error.


Los referentes más importantes en compra/ venta de autos se juntaron:
Demotores y Yahoo!
Ahora comprar o vender tu auto es más fácil. Vistá ar.autos.yahoo.com/

---------------------------(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
  #5 (permalink)  
Old 04-10-2008, 12:18 AM
Richard Huxton
 
Posts: n/a
Default Re: Can't make backup (again)

Sebastián Baioni wrote:
>> I contacted the Admin and told me there was no erros nor in the
>> postgresql log nor in the server log.


> I forgot to tell that the error was seen on the client but it was a
> response from the server: pg_dump: Mensaje de error del servidor:
> cannot allocate memory for input buffer pg_dump: El comando es: COPY
> public.sipat00 (sipasede, ...) TO stdout; pg_dump: *** se abort¾ por
> un error
>
> *Mensaje de error del servidor = Server's Error Message *El comando
> es: The command is *se abortó por un error: it was aborted because an
> error.


If it is something server-side then there should be something in your
server logs.

However, if you're taking a backup, I would expect the input buffer to
be growing on the client rather than the server.

I think the Server's error message is "abortó por un error", the error
being out-of-memory on your client.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 12:18 AM
Tom Lane
 
Posts: n/a
Default Re: Can't make backup (again)

=?iso-8859-1?q?Sebasti=E1n=20Baioni?= <sebaioni-postgresql@yahoo.com.ar> writes:
> I forgot to tell that the error was seen on the client but it was a response from the server:
> pg_dump: Mensaje de error del servidor: cannot allocate memory for input buffer
> pg_dump: El comando es: COPY public.sipat00 (sipasede, ...) TO stdout;
> pg_dump: *** se abort¾ por un error


No, that error text only appears in libpq, so it's happening on the
client side --- pg_dump just doesn't know the difference between an
error sent from the server and one generated within libpq.

My guess is that there's some extremely wide row(s) in your database.
The client-side libpq has to be able to buffer the widest row during
a COPY, and your client machine doesn't seem to be up to the task...

regards, tom lane

---------------------------(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
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 10:19 AM.


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