By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| make_bi_temporal |
|---|
| app_period |
|---|
| ["2018-08-14 00:00:00+01",) |
| set_config |
|---|
| true |
| sys_time |
|---|
| 2018-08-14 00:00:00+01 |
| app_time |
|---|
| null |
| app_period |
|---|
| ["2018-08-14 00:00:00+01",) |
2 rows affected
| id | name | app_period |
|---|---|---|
| 1 | a | ["2018-08-14 00:00:00+01",) |
| 2 | b | ["2018-08-14 00:00:00+01",) |
| app_period |
|---|
| ["2015-01-01 00:00:00+00","2018-01-01 00:00:00+00") |
| app_period |
|---|
| ["2019-01-01 00:00:00+00","2020-01-01 00:00:00+00") |
| id | name | app_period |
|---|---|---|
| 1 | a | ["2018-08-14 00:00:00+01",) |
| 2 | b | ["2018-08-14 00:00:00+01",) |
| app_period |
|---|
| ["2018-08-20 00:00:00+01","2018-08-25 00:00:00+01") |
| app_period |
|---|
| ["2018-08-20 00:00:00+01","2018-08-25 00:00:00+01") |
| id | name | app_period |
|---|---|---|
| 1 | a | ["2018-08-14 00:00:00+01",) |
| app_period |
|---|
| null |
| id | name | app_period |
|---|---|---|
| 2 | b | ["2018-08-14 00:00:00+01",) |
| 1 | a | ["2018-08-14 00:00:00+01","2018-08-20 00:00:00+01") |
| 1 | a | ["2018-08-25 00:00:00+01",) |
| id | name | sid | app_period | sys_period |
|---|---|---|---|---|
| 2 | b | 2 | ["2018-08-14 00:00:00+01",) | ["2018-08-14 00:00:00+01",) |
| 1 | a | 1 | ["2018-08-14 00:00:00+01",) | ["2018-08-14 00:00:00+01","2018-08-15 00:00:00+01") |
| 1 | a | 3 | ["2018-08-14 00:00:00+01","2018-08-20 00:00:00+01") | ["2018-08-15 00:00:00+01",) |
| 1 | a | 4 | ["2018-08-25 00:00:00+01",) | ["2018-08-15 00:00:00+01",) |