Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Boundaries validation on "create_range_partitions" call #144

Closed
Labels
@thamerlan

Description

Добрый день,

Problem description

При попытке вызвать create_range_partitions вылетает ошибка:

swdb=> SELECT create_range_partitions('audits', 'ts', Date_trunc('week', '2017-10-01'::DATE), INTERVAL '1 week', NULL, false);
ERROR: start value is greater than min value of "ts"
CONTEXT: SQL statement "SELECT public.check_boundaries('audits', 1,ドル '2017-09-25 00:00:00+00', '2017-12-11 00:00:00+00'::timestamp with time zone)"
PL/pgSQL function create_range_partitions(regclass,text,anyelement,interval,integer,boolean) line 52 at EXECUTE

Суть ошибки понятна, но в чём смысл этой проверки, если флаг "partition_data BOOLEAN" выставлен в false и все данные останутся в родительской таблице? Ведь создать дополнительные секции можно потом, во время вызова partition_table_concurrently.

Environment

 extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition 
--------------------+----------+--------------+----------------+------------+---------------+--------------
 pg_pathman | 10 | 2200 | f | 1.4 | {38473,38484} | {"",""}

PostgreSQL 9.5.10 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bit

get_pathman_lib_version

10409

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /