forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
41 additions
and
9 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,24 @@ | ||
# Copyright Materialize, Inc. and contributors. All rights reserved. | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the LICENSE file at the root of this repository. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
|
||
$ set-regex match=(\d{13}|u\d{1,3}) replacement=<REDACTED> | ||
|
||
> CREATE TABLE t1 (a INT); | ||
|
||
> CREATE TABLE t2 (a INT); | ||
|
||
# Strict serializable doesn't look at every object in the same time domain | ||
> SET TRANSACTION_ISOLATION = 'STRICT SERIALIZABLE'; | ||
> EXPLAIN TIMESTAMP FOR SELECT * FROM t1 | ||
" timestamp: <REDACTED>\n since:[<REDACTED>]\n upper:[<REDACTED>]\n has table: true\n table read ts: <REDACTED>\n\nsource materialize.public.t1 (<REDACTED>, storage):\n read frontier:[<REDACTED>]\nwrite frontier:[<REDACTED>]\n" | ||
|
||
# Serializable does look at every object in the same time domain | ||
> SET TRANSACTION_ISOLATION = 'SERIALIZABLE'; | ||
> EXPLAIN TIMESTAMP FOR SELECT * FROM t1 | ||
" timestamp: <REDACTED>\n since:[<REDACTED>]\n upper:[<REDACTED>]\n has table: true\n table read ts: <REDACTED>\n\nsource materialize.public.t1 (<REDACTED>, storage):\n read frontier:[<REDACTED>]\nwrite frontier:[<REDACTED>]\n\nsource materialize.public.t2 (<REDACTED>, storage):\n read frontier:[<REDACTED>]\nwrite frontier:[<REDACTED>]\n" |