Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B8C5DB5D91F for ; Mon, 31 Oct 2011 15:46:52 -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 70260-05 for ; Mon, 31 Oct 2011 18:46:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 599C0B5D803 for ; Mon, 31 Oct 2011 15:46:46 -0300 (ADT) Received: by faan17 with SMTP id n17so5796355faa.19 for ; Mon, 31 Oct 2011 11:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:reply-to:x-priority:message-id:to:subject:mime-version :content-type:content-transfer-encoding; bh=DBKdM1xyQbzn4gYkScLAEmc2sKr/fnB58a+wBoge4VU=; b=g28UxzM2wCFttOs46luHh3liD4iVyWbnJ5+Pjtdett9wP/nkBqqBpMiYl8ZTDd2A6+ LAFEZl9BPA+FSjW2kd8mevcuYMxHiFMRpvoZKrHcP1II5LcRr883mTrnFB6GLFJF1TdU E9DkSKW56QjzOA9hN5S2Do2MTuKWS/ZVVw5jM= Received: by 10.223.77.66 with SMTP id f2mr30978068fak.24.1320086805510; Mon, 31 Oct 2011 11:46:45 -0700 (PDT) Received: from im.adtech.de (gozzy.static.corbina.ru. [95.31.21.183]) by mx.google.com with ESMTPS id w27sm18130945fad.13.2011.10.31.11.46.43 (version=SSLv3 cipher=OTHER); Mon, 31 Oct 2011 11:46:43 -0700 (PDT) Date: Mon, 31 Oct 2011 22:46:42 +0400 From: Alexander Reply-To: Alexander X-Priority: 3 (Normal) Message-ID: <1843207079.20111031224642@gmail.com> To: pgsql-bugs@postgresql.org Subject: Hanging with pg_restore and large objects MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.799 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201111/2 X-Sequence-Number: 31597 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