Skip to content

[Question]PolarDB创建表空间正常, 但是使用时报错, 如何解决?  #539

@digoal

Description

@digoal

PolarDB创建表空间正常, 但是使用时报错, 如何解决?

复现方法:

使用这个项目构建镜像并创建容器:

在共享数据目录中创建表空间目录

cd /var/polardb/shared_datadir/pg_tblspc
mkdir abc

创建表空间正常

create tablespace tbs location '/var/polardb/shared_datadir/pg_tblspc/abc';

使用该表空间建表时报错

postgres=# create table t (id int) tablespace tbs; 
ERROR:  could not create directory "file-dio:///var/polardb/shared_datadir/pg_tblspc/16388/PG_15_202209061/5": No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions