citusdata / citusdata/citus

`IMPORT FOREIGN SCHEMA` doesn't add to metadata when use_citus_managed_tables is on

Open
#5,603 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
12.8k
Forks
794
Avg merge
2d 14h
Merged PRs (30d)
31

Description

We add newly created tables to Citus metadata when `citus.use_citus_managed_tables` is set to `on`. See https://github.com/citusdata/citus/pull/5440

This works for foreign tables as well. (See https://github.com/citusdata/citus/pull/5461)

But Citus doesn't add foreign tables that are imported from a schema to metadata, probably because of the
```c
if (context == PROCESS_UTILITY_TOPLEVEL &&
```
check in `utility_hook.c`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.