-
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 e8bcf7b
Showing
5 changed files
with
299 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
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,29 @@ | ||
-- SPDX-License-Identifier: MPL-2.0 | ||
-- | ||
-- This Source Code Form is subject to the terms of the Mozilla Public | ||
-- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
-- file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
-- | ||
-- Copyright 2024 MonetDB Foundation | ||
|
||
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.