-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f568a
commit 863cc86
Showing
4 changed files
with
290 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
START TRANSACTION; | ||
|
||
DROP TABLE IF EXISTS temporal; | ||
CREATE TABLE temporal( | ||
i INT, | ||
tsz TIMESTAMPTZ | ||
); | ||
|
||
-- The interval 87_654 seconds was chosen to get a nice variation | ||
-- in seconds, minutes, hours, days, etc. | ||
-- 1000 * 1000 goes back to about year -748. | ||
INSERT INTO temporal | ||
SELECT | ||
value AS i, | ||
NOW - value * value * INTERVAL '87654' SECOND | ||
FROM | ||
sys.generate_series(0, 1000) | ||
; | ||
-- SELECT * FROM temporal; | ||
|
||
COMMIT; |
Oops, something went wrong.