pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedHanging with pg_restore and large objects
3+ messages / 2 participants
[nested] [flat]
* Hanging with pg_restore and large objects
@ 2011-10-31 18:46 Alexander <goal81@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Alexander @ 2011-10-31 18:46 UTC (permalink / raw)
To: pgsql-bugs
Hi all.
I've encountered the following problem: pg_restore hangs while
restoring LOBs. The situation is as follows:
1) TARed dump, created by pg_dump 8.3.6
2) pg_restore from Postgresql 9.1.1
3) pg_restore restores schema and most of LOBs, but hangs on one of
them (the same LOB every time). 'ps' shows 'R+' state for
pg_restore, and GDB (attached to pg_restore) gives the following:
(gdb) bt
#0 0x0000003ec6ec6750 in __read_nocancel () from /lib64/libc.so.6
#1 0x0000003ec6e6cd57 in _IO_new_file_underflow () from /lib64/libc.so.6
#2 0x0000003ec6e6ba4e in _IO_file_xsgetn_internal () from /lib64/libc.so.6
#3 0x0000003ec6e61dd2 in fread () from /lib64/libc.so.6
#4 0x000000000040d0e2 in PQconnectdbParams ()
#5 0x000000000040d7fd in PQconnectdbParams ()
#6 0x000000000040e78a in PQconnectdbParams ()
#7 0x0000000000408035 in PQconnectdbParams ()
#8 0x0000000000409116 in PQconnectdbParams ()
#9 0x0000000000403b91 in PQconnectdbParams ()
#10 0x0000003ec6e1d994 in __libc_start_main () from /lib64/libc.so.6
#11 0x0000000000402f99 in PQconnectdbParams ()
#12 0x00007fff51ae6188 in ?? ()
#13 0x0000000000000000 in ?? ()
Does anyone know, what can be wrong?
--
С уважением,
Alexander mailto:goal81@gmail.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Hanging with pg_restore and large objects
@ 2011-11-01 04:43 Craig Ringer <ringerc@ringerc.id.au>
parent: Alexander <goal81@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Craig Ringer @ 2011-11-01 04:43 UTC (permalink / raw)
To: Alexander <goal81@gmail.com>; +Cc: pgsql-bugs
On 01/11/11 02:46, Alexander wrote:
> Hi all.
>
> I've encountered the following problem: pg_restore hangs while
> restoring LOBs. The situation is as follows:
> 1) TARed dump, created by pg_dump 8.3.6
> 2) pg_restore from Postgresql 9.1.1
> 3) pg_restore restores schema and most of LOBs, but hangs on one of
> them (the same LOB every time). 'ps' shows 'R+' state for
> pg_restore, and GDB (attached to pg_restore) gives the following:
>
> (gdb) bt
> #0 0x0000003ec6ec6750 in __read_nocancel () from /lib64/libc.so.6
> #1 0x0000003ec6e6cd57 in _IO_new_file_underflow () from /lib64/libc.so.6
> #2 0x0000003ec6e6ba4e in _IO_file_xsgetn_internal () from /lib64/libc.so.6
> #3 0x0000003ec6e61dd2 in fread () from /lib64/libc.so.6
> #4 0x000000000040d0e2 in PQconnectdbParams ()
> #5 0x000000000040d7fd in PQconnectdbParams ()
> #6 0x000000000040e78a in PQconnectdbParams ()
> #7 0x0000000000408035 in PQconnectdbParams ()
> #8 0x0000000000409116 in PQconnectdbParams ()
> #9 0x0000000000403b91 in PQconnectdbParams ()
> #10 0x0000003ec6e1d994 in __libc_start_main () from /lib64/libc.so.6
> #11 0x0000000000402f99 in PQconnectdbParams ()
> #12 0x00007fff51ae6188 in ?? ()
> #13 0x0000000000000000 in ?? ()
>
> Does anyone know, what can be wrong?
Disk issues? Have you checked dmesg, the SMART status of your disks, and
syslog?
Can you copy the dump with the "cp" command?
Can you use "pg_restore" to produce a .sql dump from it?
--
Craig Ringer
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Hanging with pg_restore and large objects
@ 2011-11-01 06:15 Alexander <goal81@gmail.com>
parent: Craig Ringer <ringerc@ringerc.id.au>
0 siblings, 0 replies; 3+ messages in thread
From: Alexander @ 2011-11-01 06:15 UTC (permalink / raw)
To: Craig Ringer <ringerc@ringerc.id.au>; +Cc: pgsql-bugs
It does not look like a disk issue - syslog doesn't report any problems,
postgresql also seems to work fine.
I'll try to make an SQL dump from backup file, but before that I'll try
another backup file - probably the one I try
to restore is broken due to some reasons (it was transfered over the
network).
1 ноября 2011 г. 8:43 пользователь Craig Ringer <ringerc@ringerc.id.au>написал:
> On 01/11/11 02:46, Alexander wrote:
> > Hi all.
> >
> > I've encountered the following problem: pg_restore hangs while
> > restoring LOBs. The situation is as follows:
> > 1) TARed dump, created by pg_dump 8.3.6
> > 2) pg_restore from Postgresql 9.1.1
> > 3) pg_restore restores schema and most of LOBs, but hangs on one of
> > them (the same LOB every time). 'ps' shows 'R+' state for
> > pg_restore, and GDB (attached to pg_restore) gives the following:
> >
> > (gdb) bt
> > #0 0x0000003ec6ec6750 in __read_nocancel () from /lib64/libc.so.6
> > #1 0x0000003ec6e6cd57 in _IO_new_file_underflow () from /lib64/libc.so.6
> > #2 0x0000003ec6e6ba4e in _IO_file_xsgetn_internal () from
> /lib64/libc.so.6
> > #3 0x0000003ec6e61dd2 in fread () from /lib64/libc.so.6
> > #4 0x000000000040d0e2 in PQconnectdbParams ()
> > #5 0x000000000040d7fd in PQconnectdbParams ()
> > #6 0x000000000040e78a in PQconnectdbParams ()
> > #7 0x0000000000408035 in PQconnectdbParams ()
> > #8 0x0000000000409116 in PQconnectdbParams ()
> > #9 0x0000000000403b91 in PQconnectdbParams ()
> > #10 0x0000003ec6e1d994 in __libc_start_main () from /lib64/libc.so.6
> > #11 0x0000000000402f99 in PQconnectdbParams ()
> > #12 0x00007fff51ae6188 in ?? ()
> > #13 0x0000000000000000 in ?? ()
> >
> > Does anyone know, what can be wrong?
>
> Disk issues? Have you checked dmesg, the SMART status of your disks, and
> syslog?
>
> Can you copy the dump with the "cp" command?
>
> Can you use "pg_restore" to produce a .sql dump from it?
>
> --
> Craig Ringer
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-11-01 06:15 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-10-31 18:46 Hanging with pg_restore and large objects Alexander <goal81@gmail.com>
2011-11-01 04:43 ` Craig Ringer <ringerc@ringerc.id.au>
2011-11-01 06:15 ` Alexander <goal81@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox