[MDEV-29055] There is no data on PERIOD FOR in information schema Created: 2022-07-07  Updated: 2022-07-11  Resolved: 2022-07-11

Status: Closed
Project: MariaDB Server
Component/s: Information Schema, Versioned Tables
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Remy Fox Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-22597 Add views for periods in information_... In Testing

 Description   

The PERIOD FOR syntax registers a special constraint on a table. There can be only one period per table and it can be designated to be part of a unique index 'without overlaps'. However, it seems that it is impossible to track periods in the information schema:

  • The PERIOD FOR constraint translates to a CHECK constraint that just gets the same name as the period name (unless that name is already occupied in the table, in which case a new name gets generated). The CHECK constraint appears to be defined in CHECK_CONSTRAINTS as 'from_time_column < to_time_column', but there is no mention of this being a PERIOD in any of the information schema tables.
  • It is possible to register a unique index using the period 'WITHOUT OVERLAPS'. We will find the period's two columns to be part of the unique index in STATISTICS, but there is no mention of the WITHOUT OVERLAPS modifier.


 Comments   
Comment by Sergei Golubchik [ 2022-07-11 ]

Let's consider it a duplicate of MDEV-22597

Generated at Thu Feb 08 10:05:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.