levinsv / pgadmin3

PgAdmin3 с поддержкой PostgreSQL 16
60 stars 10 forks source link

Child tables are not dispayed #6

Closed glushakov closed 4 years ago

glushakov commented 4 years ago

Hi. With inherit partititioning, child tables are not display in tree. In parent table (partitions sub menu) there are also not. Checked on pg 10

levinsv commented 4 years ago

Hi. In my test case, everything is Ok.

CREATE TABLE cities (
    name            text,
    population      float,
    altitude        int     -- в футах
);

CREATE TABLE capitals (
    state           char(2)
) INHERITS (cities);

What are your SQL commands?

glushakov commented 4 years ago

it looks like problem appear when child table placed in different schema then parent table. My case:

CREATE TABLE public.history ( itemid bigint NOT NULL, clock integer NOT NULL DEFAULT 0, value numeric(16,4) NOT NULL DEFAULT 0.0000, ns integer NOT NULL DEFAULT 0 );

CREATE TABLE partitions.history_p2020_04_09 (

CONSTRAINT history_p2020_04_09_clock_check CHECK (clock >= 1586379600 AND clock < 1586466000) ) INHERITS (public.history) WITH ( OIDS=FALSE );

glushakov commented 4 years ago

with declarative partitioning the situation is similar