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

Commita4a2ec3

Browse files
committed
Create pg_query_state extension in the case of TPC-DS test
1 parent02049e1 commita4a2ec3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎tests/pg_qs_test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def teardown(con):
8383
defmain(config):
8484
''' Main test function '''
8585
conn_params= {
86-
key:config.__dict__[key]forkeyin ('host','port','user','database','password')
86+
key:config.__dict__[key]forkeyin ('host','port','user','database','password')
8787
}
8888

8989
ifconfig.use_tpcds:

‎tests/test_cases.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,14 +526,17 @@ def test_timing_buffers_conflicts(config):
526526
classDataLoadException(Exception):pass
527527
classStressTestException(Exception):pass
528528

529-
defload_tpcds_data(config):
530-
print('LoadingTPC-DSdata...')
529+
defsetup_tpcds(config):
530+
print('Setting upTPC-DStest...')
531531
subprocess.call(['./tests/prepare_stress.sh'])
532532

533533
try:
534534
conn=psycopg2.connect(**config)
535535
cur=conn.cursor()
536536

537+
# Create pg_query_state extension
538+
cur.execute('CREATE EXTENSION IF NOT EXISTS pg_query_state')
539+
537540
# Create tables
538541
withopen('tmp_stress/tpcds-kit/tools/tpcds.sql','r')asf:
539542
cur.execute(f.read())
@@ -561,7 +564,7 @@ def test_tpc_ds(config):
561564
globalstress_in_progress
562565

563566
stress_in_progress=True
564-
load_tpcds_data(config)
567+
setup_tpcds(config)
565568

566569
print('Preparing TPC-DS queries...')
567570
# # Execute query in separate thread

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp