Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b3dbb9

Browse files
committed
more tests for RowMarks
1 parent51f39ab commit1b3dbb9

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

‎expected/pathman_rowmarks.out

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,21 @@ FOR UPDATE;
216216
10
217217
(10 rows)
218218

219+
/* ONLY (plan) */
220+
EXPLAIN (COSTS OFF)
221+
SELECT * FROM ONLY rowmarks.first FOR SHARE;
222+
QUERY PLAN
223+
-------------------------
224+
LockRows
225+
-> Seq Scan on first
226+
(2 rows)
227+
228+
/* ONLY (execution) */
229+
SELECT * FROM ONLY rowmarks.first FOR SHARE;
230+
id
231+
----
232+
(0 rows)
233+
219234
/* Check updates (plan) */
220235
SET enable_hashjoin = f;/* Hash Semi Join on 10 vs Hash Join on 9.6 */
221236
SET enable_mergejoin = f;/* Merge Semi Join on 10 vs Merge Join on 9.6 */

‎expected/pathman_rowmarks_1.out

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,21 @@ FOR UPDATE;
221221
10
222222
(10 rows)
223223

224+
/* ONLY (plan) */
225+
EXPLAIN (COSTS OFF)
226+
SELECT * FROM ONLY rowmarks.first FOR SHARE;
227+
QUERY PLAN
228+
-------------------------
229+
LockRows
230+
-> Seq Scan on first
231+
(2 rows)
232+
233+
/* ONLY (execution) */
234+
SELECT * FROM ONLY rowmarks.first FOR SHARE;
235+
id
236+
----
237+
(0 rows)
238+
224239
/* Check updates (plan) */
225240
SET enable_hashjoin = f;/* Hash Semi Join on 10 vs Hash Join on 9.6 */
226241
SET enable_mergejoin = f;/* Merge Semi Join on 10 vs Merge Join on 9.6 */

‎sql/pathman_rowmarks.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ JOIN rowmarks.second USING(id)
8181
ORDER BY id
8282
FORUPDATE;
8383

84+
/* ONLY (plan)*/
85+
EXPLAIN (COSTS OFF)
86+
SELECT*FROM ONLYrowmarks.first FOR SHARE;
87+
88+
/* ONLY (execution)*/
89+
SELECT*FROM ONLYrowmarks.first FOR SHARE;
90+
8491
/* Check updates (plan)*/
8592
SET enable_hashjoin= f;/* Hash Semi Join on 10 vs Hash Join on 9.6*/
8693
SET enable_mergejoin= f;/* Merge Semi Join on 10 vs Merge Join on 9.6*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp