From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: ????? <474416133@qq.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: a error happends when create a table in postgresql10.ubuntu 18.04
Date: Thu, 31 Oct 2019 15:41:19 +0100
Message-ID: <20191031144119.kctc46tw5rif5lqy@development> (raw)
In-Reply-To: <tencent_E61FD44C56A6DAA3E7EC7ADCCEA636BA8609@qq.com>
References: <tencent_E61FD44C56A6DAA3E7EC7ADCCEA636BA8609@qq.com>
On Thu, Oct 31, 2019 at 04:12:28PM +0800, ????? wrote:
>OS: UBUNTU 18.04
>POSTGRESQL: 10
>STEP INSTANLL POSTGRESQL REF: https://www.postgresql.org/download/linux/ubuntu/
>THEN:
>
>- sudo -s
>- su postgres
>- psql
>- alter user postgres with password 'xxx';
>- create database xxx;
>- create table test ....
>error: 无法打开文件 "base/465796/827" hanpends
>
This seems like some sort of data corruption, because 827 is an index on
a system catalog, namely pg_default_acl_role_nsp_obj_index.
I don't have an Ubuntu system around, but I've tried on debian 9.6 and
it works just fine. I very much doubt Ubuntu is broken.
My guess the system lost the file for whatever reason (admin error,
filesystem bug, power-loss/crash, ...).
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, 474416133@qq.com
Subject: Re: a error happends when create a table in postgresql10.ubuntu 18.04
In-Reply-To: <20191031144119.kctc46tw5rif5lqy@development>
References: <tencent_E61FD44C56A6DAA3E7EC7ADCCEA636BA8609@qq.com> <20191031144119.kctc46tw5rif5lqy@development>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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