Обсуждение: pg_dump problem

Поиск
Список
Период
Сортировка

pg_dump problem

От
"Tatiana Motova"
Дата:
Hi all,
 
i have a problem dumping the database containing blobs.
 
The database has pdf files stored in one of the tables and when there are let say 10 files in it, pg_dump works perfectly, but when about 400Mb of files are loaded into db, pg_dump fails with the following message:
 
pg_dump -a -b -Ft -f bdata_030321.tar -v mydb
...
pg_dump: [tar archiver] could not write to tar member (wrote 872, attempted 8191)
 
It's not a matter of available disk space, there's plenty of it.
 
Help, please!
 
T.

Re: pg_dump problem

От
Robert Treat
Дата:
On Fri, 2003-03-21 at 13:15, Tatiana Motova wrote:
> Hi all,
>
> i have a problem dumping the database containing blobs.
>
> The database has pdf files stored in one of the tables and when there
> are let say 10 files in it, pg_dump works perfectly, but when about
> 400Mb of files are loaded into db, pg_dump fails with the following
> message:
>
> pg_dump -a -b -Ft -f bdata_030321.tar -v mydb
> ...
> pg_dump: [tar archiver] could not write to tar member (wrote 872,
> attempted 8191)
>
> It's not a matter of available disk space, there's plenty of it.
>

Haven't seen any other response on this one.... This bug used to exist
in the 7.1.x versions, but I think it was fixed in one of the 7.2.x
releases. Can you post your version info? In the meantime you might be
able to work around it by using the -Fc instead.

Robert Treat


Re: pg_dump problem

От
"Tatiana Motova"
Дата:
Version 7.2.2, i had same problems when using version 7.1.3 as well.

----- Original Message -----
From: "Robert Treat" <xzilla@users.sourceforge.net>
To: "Tatiana Motova" <t.motova@inform-link.co.uk>
Cc: <pgsql-admin@postgresql.org>
Sent: Monday, March 24, 2003 7:11 PM
Subject: Re: [ADMIN] pg_dump problem


> On Fri, 2003-03-21 at 13:15, Tatiana Motova wrote:
> > Hi all,
> >
> > i have a problem dumping the database containing blobs.
> >
> > The database has pdf files stored in one of the tables and when there
> > are let say 10 files in it, pg_dump works perfectly, but when about
> > 400Mb of files are loaded into db, pg_dump fails with the following
> > message:
> >
> > pg_dump -a -b -Ft -f bdata_030321.tar -v mydb
> > ...
> > pg_dump: [tar archiver] could not write to tar member (wrote 872,
> > attempted 8191)
> >
> > It's not a matter of available disk space, there's plenty of it.
> >
>
> Haven't seen any other response on this one.... This bug used to exist
> in the 7.1.x versions, but I think it was fixed in one of the 7.2.x
> releases. Can you post your version info? In the meantime you might be
> able to work around it by using the -Fc instead.
>
> Robert Treat
>


Re: pg_dump problem

От
Robert Treat
Дата:
Did the -Fc workaround work?  I tried to do a little digging to find out
the heart of the problem but didn't come up with much. You might want to
post to -bugs, or better yet try upgrading to 7.3

Robert Treat

On Mon, 2003-03-24 at 14:17, Tatiana Motova wrote:
> Version 7.2.2, i had same problems when using version 7.1.3 as well.
>
> ----- Original Message -----
> From: "Robert Treat" <xzilla@users.sourceforge.net>
> To: "Tatiana Motova" <t.motova@inform-link.co.uk>
> Cc: <pgsql-admin@postgresql.org>
> Sent: Monday, March 24, 2003 7:11 PM
> Subject: Re: [ADMIN] pg_dump problem
>
>
> > On Fri, 2003-03-21 at 13:15, Tatiana Motova wrote:
> > > Hi all,
> > >
> > > i have a problem dumping the database containing blobs.
> > >
> > > The database has pdf files stored in one of the tables and when there
> > > are let say 10 files in it, pg_dump works perfectly, but when about
> > > 400Mb of files are loaded into db, pg_dump fails with the following
> > > message:
> > >
> > > pg_dump -a -b -Ft -f bdata_030321.tar -v mydb
> > > ...
> > > pg_dump: [tar archiver] could not write to tar member (wrote 872,
> > > attempted 8191)
> > >
> > > It's not a matter of available disk space, there's plenty of it.
> > >
> >
> > Haven't seen any other response on this one.... This bug used to exist
> > in the 7.1.x versions, but I think it was fixed in one of the 7.2.x
> > releases. Can you post your version info? In the meantime you might be
> > able to work around it by using the -Fc instead.
> >
> > Robert Treat


Re: pg_dump problem

От
"Tatiana Motova"
Дата:
Unfortunately not.
pg_dump makes it's work without reporting any errors with -Fc but pg_restore
fails:
pg_restore: [archiver (db)] error returned by PQputline
I could try upgrading to 7.3 but i need to keep the database data anyway.

Tatiana.

----- Original Message -----
From: "Robert Treat" <xzilla@users.sourceforge.net>
To: "Tatiana Motova" <t.motova@inform-link.co.uk>
Cc: <pgsql-admin@postgresql.org>
Sent: Thursday, March 27, 2003 8:13 PM
Subject: Re: [ADMIN] pg_dump problem


> Did the -Fc workaround work?  I tried to do a little digging to find out
> the heart of the problem but didn't come up with much. You might want to
> post to -bugs, or better yet try upgrading to 7.3
>
> Robert Treat
>
> On Mon, 2003-03-24 at 14:17, Tatiana Motova wrote:
> > Version 7.2.2, i had same problems when using version 7.1.3 as well.
> >
> > ----- Original Message -----
> > From: "Robert Treat" <xzilla@users.sourceforge.net>
> > To: "Tatiana Motova" <t.motova@inform-link.co.uk>
> > Cc: <pgsql-admin@postgresql.org>
> > Sent: Monday, March 24, 2003 7:11 PM
> > Subject: Re: [ADMIN] pg_dump problem
> >
> >
> > > On Fri, 2003-03-21 at 13:15, Tatiana Motova wrote:
> > > > Hi all,
> > > >
> > > > i have a problem dumping the database containing blobs.
> > > >
> > > > The database has pdf files stored in one of the tables and when
there
> > > > are let say 10 files in it, pg_dump works perfectly, but when about
> > > > 400Mb of files are loaded into db, pg_dump fails with the following
> > > > message:
> > > >
> > > > pg_dump -a -b -Ft -f bdata_030321.tar -v mydb
> > > > ...
> > > > pg_dump: [tar archiver] could not write to tar member (wrote 872,
> > > > attempted 8191)
> > > >
> > > > It's not a matter of available disk space, there's plenty of it.
> > > >
> > >
> > > Haven't seen any other response on this one.... This bug used to exist
> > > in the 7.1.x versions, but I think it was fixed in one of the 7.2.x
> > > releases. Can you post your version info? In the meantime you might be
> > > able to work around it by using the -Fc instead.
> > >
> > > Robert Treat
>
>


Re: pg_dump problem

От
"lists"
Дата:
I'm getting the same error... Is there any work around?

TIA
Ricardo.

----- Original Message -----
> Unfortunately not.
> pg_dump makes it's work without reporting any errors with -Fc but
pg_restore
> fails:
> pg_restore: [archiver (db)] error returned by PQputline
> I could try upgrading to 7.3 but i need to keep the database data anyway.
>
> Tatiana.


directing stdout to log file

От
Kris Kiger
Дата:
How do I direct logging output from stdout to a file?  I'm using PG
7.3.4.  Thanks for the help!