Skip to content

unrecognized node type: 375 #241

Closed
Closed
@Guzya

Description

@Guzya

Problem description

Выполняю пример из доки по диапазонному секционированию и получаю ошибку.

CREATE TABLE journal (
id SERIAL,
dt TIMESTAMP NOT NULL,
level INTEGER,
msg TEXT);

-- добавление в таблицу некоторых данных
INSERT INTO journal (dt, level, msg)
SELECT g, random() * 6, md5(g::text)
FROM generate_series('2015-01-01'::date, '2015-12-31'::date, '1 minute') as g;

-- секционирование таблицы по диапазонам
SELECT create_range_partitions('journal', 'dt', '2015-01-01'::date, '1 month'::interval);

ERROR: unrecognized node type: 375
КОНТЕКСТ: PL/pgSQL function create_range_partitions(regclass,text,anyelement,interval,integer,boolean) line 63 at assignment

Environment

partitions=# SELECT * FROM pg_extension;
extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
------------+----------+--------------+----------------+------------+-----------------+--------------
plpgsql | 10 | 11 | f | 1.0 | |
pg_pathman | 10 | 2200 | f | 1.5 | {860666,860677} | {"",""}

                                                  version                                                       

PostgreSQL 11.11 (Debian 11.11-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
(1 строка)

partitions=# SELECT get_pathman_lib_version();
ERROR: function get_pathman_lib_version() does not exist
СТРОКА 1: SELECT get_pathman_lib_version();
^
ПОДСКАЗКА: No function matches the given name and argument types. You might need to add explicit type casts.

partitions=# \df pathm
Список функций
Схема | Имя | Тип данных результата | Типы данных аргументов | Тип
--------+------------------------------------+-----------------------+-------------------------------------------------------------+-------
public | add_to_pathman_config | boolean | parent_relid regclass, expression text | функ.
public | add_to_pathman_config | boolean | parent_relid regclass, expression text, range_interval text | функ.
public | disable_pathman_for | void | parent_relid regclass | функ.
public | pathman_config_params_trigger_func | trigger | | функ.
public | pathman_ddl_trigger_func | event_trigger | | функ.
public | pathman_set_param | void | relation regclass, param text, value anyelement | функ.
public | pathman_version | cstring | | функ.
(7 строк)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions