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

Commit2ee5d31

Browse files
committed
build FDW in hardcore mode
1 parentb0eefc5 commit2ee5d31

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

‎run_tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,18 @@ if [ "$LEVEL" = "hardcore" ] || \
4545

4646
# enable additional options
4747
./configure \
48-
CFLAGS='-O0 -ggdb3 -fno-omit-frame-pointer' \
48+
CFLAGS='-Og -ggdb3 -fno-omit-frame-pointer' \
4949
--enable-cassert \
5050
--prefix=$CUSTOM_PG_BIN \
5151
--quiet
5252

53+
# build & install PG
5354
time make -s -j$(nproc)&& make -s install
5455

56+
# build & install FDW
57+
time make -s -C contrib/postgres_fdw -j$(nproc)&& \
58+
make -s -C contrib/postgres_fdw install
59+
5560
# override default PostgreSQL instance
5661
export PATH=$CUSTOM_PG_BIN/bin:$PATH
5762
export LD_LIBRARY_PATH=$CUSTOM_PG_BIN/lib

‎tests/python/partitioning_test.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def is_postgres_fdw_ready():
7676
select count(*) from pg_available_extensions where name = 'postgres_fdw'
7777
""")
7878

79-
ifresult[0][0]>0:
80-
returnTrue
81-
82-
returnFalse
79+
returnresult[0][0]>0
8380

8481

8582
classTests(unittest.TestCase):
@@ -334,7 +331,7 @@ def check_tablespace(node, tablename, tablespace):
334331
self.assertTrue(check_tablespace(node,'abc_added_2','pg_default'))
335332
self.assertTrue(check_tablespace(node,'abc_splitted_2','pg_default'))
336333

337-
@unittest.skipUnless(is_postgres_fdw_ready(),'might be missing')
334+
@unittest.skipUnless(is_postgres_fdw_ready(),'FDWmight be missing')
338335
deftest_foreign_table(self):
339336
""" Test foreign tables """
340337

@@ -427,7 +424,7 @@ def test_foreign_table(self):
427424
b'1|\n2|\n5|\n6|\n8|\n9|\n3|\n4|\n7|\n10|\n')
428425
master.safe_psql("select drop_partitions('hash_test')")
429426

430-
@unittest.skipUnless(is_postgres_fdw_ready(),'might be missing')
427+
@unittest.skipUnless(is_postgres_fdw_ready(),'FDWmight be missing')
431428
deftest_parallel_nodes(self):
432429
""" Test parallel queries under partitions """
433430

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp