Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoYy9-0004me-6V for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 13:27:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoYy8-0008UE-FJ for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 13:27:52 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoUuO-0007Fk-B0 for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:07:44 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoUuK-0008OR-EN for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:07:43 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoUuJ-000791-0O for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:07:40 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VoUuD-0004do-EJ for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:07:33 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8658: Errors during restore database To: pgsql-bugs@postgresql.org From: d.shumilov@404-group.com Message-Id: Date: Thu, 05 Dec 2013 09:07:33 +0000 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8658 Logged by: Denis Email address: d.shumilov@404-group.com PostgreSQL version: 9.3.1 Operating system: OS X 10.8.4 Description: Have a good day! I have got next trouble: when I trying to restore my database dump in Postgres 9.3.1 (created in Postgres 9.2.5 by pg_dump in custom format) I've got error: pg_restore: [archiver (db)] Error from TOC entry 2560; 1259 21581 INDEX page_full_url_idx informer pg_restore: [archiver (db)] could not execute query: ERROR: could not read block 0 in file "base/16395/18598": read only 0 of 8192 bytes CONTEXT: SQL function "full_url" during startup Command was: CREATE INDEX page_full_url_idx ON page USING btree (full_url(page.*)); File base/16395/18598 is empty and it has correct permissions, in Postgres 9.2.5 there are no problems during restoring. First of all I've been thinking that problem in a dump format so I've been created Plain SQL dump and... I'd got same problems. Problem becomes when I trying to create index on function after restoring whole my database: schema, data, constraints (there are no problems during creating index after creating schema only but I'd found that there are same problem when I trying to execute REINDEX command after filling database and adding constraints). -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs