Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 68C1BB5DC42 for ; Tue, 1 Nov 2011 01:43:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 47244-02 for ; Tue, 1 Nov 2011 04:43:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 36A6BB5DC4B for ; Tue, 1 Nov 2011 01:43:35 -0300 (ADT) Received: by gyb13 with SMTP id 13so6648615gyb.19 for ; Mon, 31 Oct 2011 21:43:34 -0700 (PDT) Received: by 10.151.20.5 with SMTP id x5mr192593ybi.108.1320122614828; Mon, 31 Oct 2011 21:43:34 -0700 (PDT) Received: from ?IPv6:2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f? (2001-44b8-6109-9f00-02a0-c9ff-fe6e-ed8f.static.ipv6.internode.on.net. [2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f]) by mx.google.com with ESMTPS id f32sm58213755ani.20.2011.10.31.21.43.32 (version=SSLv3 cipher=OTHER); Mon, 31 Oct 2011 21:43:34 -0700 (PDT) Message-ID: <4EAF78E1.5050307@ringerc.id.au> Date: Tue, 01 Nov 2011 12:43:13 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Alexander CC: pgsql-bugs@postgresql.org Subject: Re: Hanging with pg_restore and large objects References: <1843207079.20111031224642@gmail.com> In-Reply-To: <1843207079.20111031224642@gmail.com> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/6 X-Sequence-Number: 31601 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