Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDQZU-0008Ei-OV for pgsql-hackers@postgresql.org; Mon, 17 Sep 2012 01:56:24 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDQZQ-0000r4-Md for pgsql-hackers@postgresql.org; Mon, 17 Sep 2012 01:56:23 +0000 Received: by pbbrr13 with SMTP id rr13so8292390pbb.19 for ; Sun, 16 Sep 2012 18:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cSs/mzFKPjtPnAhU1F86b0p3lGozeKYxamm2ddwAa+k=; b=q8g00KywSqtFH/pvc+8gohCkyzpcjtwQCy2e+/yPGvZN4P4W8sZi9xwYm+3DW9LXQz CQmsmFWx/cdWuzxCDoQzvtEqEpayBDq6d845zc5RD71esd1s/Xg6cIzwq+bi7Yf+nPTf 4w6pov7P/j5/atwbUZ0G7qJLYGJyZ29NEPZzKPnu+NrMfNHWLabJom/JWaku4gtYNtTO TVe/VKPx6gI/VTTcoeE5ztK2BiZaxGY4PHZKeig2emd1han3V0fIMwjFDSsReqymP/Ow 4enzXB8mzNPsnP9C7Hy5+CzKDPRXPxv7gSnzt+V4FeMXYeWMleoGM3eKciUDhMUYiSc1 dlSg== Received: by 10.68.221.168 with SMTP id qf8mr19316916pbc.37.1347846979053; Sun, 16 Sep 2012 18:56:19 -0700 (PDT) Received: from [192.168.1.7] ([116.226.32.153]) by mx.google.com with ESMTPS id gv1sm6082977pbc.38.2012.09.16.18.56.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Sep 2012 18:56:18 -0700 (PDT) Message-ID: <5056833D.7030908@gmail.com> Date: Mon, 17 Sep 2012 09:56:13 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Tom Lane CC: Bruce Momjian , PostgreSQL-development Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed References: <5052C402.8020003@gmail.com> <20120914142616.GA11265@momjian.us> <50535302.8080000@gmail.com> <20120914183915.GA5933@momjian.us> <5053F896.60005@gmail.com> <20120915180603.GA20907@momjian.us> <505557CD.8090304@gmail.com> <20120916171746.GA24907@momjian.us> <50567E60.2000005@gmail.com> <2932.1347846538@sss.pgh.pa.us> In-Reply-To: <2932.1347846538@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201209/626 X-Sequence-Number: 213654 于2012年9月17日 9:48:58,Tom Lane写到: > Rural Hunter writes: >> # select oid, * from pg_class WHERE reltoastrelid = 16439148; >> oid | relname | relnamespace | reltype | reloftype | >> relowner | relam | relfilenode | reltablespace | relpages | reltuples | >> reltoastrelid | reltoastidxid | relhasindex | relisshared | >> relpersistence | relkind | relnatts | relchecks | relhasoids | >> relhaspkey | relhasrules | relhastriggers | relhassubclass | >> relfrozenxid | relacl | reloptions >> ----------+--------------+--------------+----------+-----------+----------+-------+-------------+---------------+----------+-----------+---------------+---------------+-------------+-------------+----------------+---------+----------+-----------+------------+------------+-------------+----------------+----------------+--------------+-----------------------------------------+------------ >> 16439145 | sql_features | 16438995 | 16439147 | 0 | >> 10 | 0 | 16439145 | 0 | 0 | 0 | >> 16439148 | 0 | f | f | p | >> r | 7 | 0 | f | f | f >> | f | f | 630449585 | >> {postgres=arwdDxt/postgres,=r/postgres} | >> (1 row) > > Well, that's even stranger, because (1) information_schema.sql_features > ought to have a toast table in either version, and (2) neither pg_dump > nor pg_upgrade ought to be attempting to dump or transfer that table. > > I wonder whether you dropped and recreated the information_schema in > the lifetime of this database? We have recommended doing that in the > past, IIRC. Could such a thing have confused pg_dump? > > regards, tom lane > No, I have never manually re-created the table. This is the first time I see the name. But I'm not sure other things I installed before recreated it or not, such as pg_buffercache etc. One more thing, is this a hidden table? I can see it with '\d information_schema.sql_features' but it's not in the list of '\d'.