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

Commitf8726be

Browse files
committed
add missing pathman_basic.out fixes
1 parentafbb3c1 commitf8726be

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

‎expected/pathman_basic.out

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ SELECT count(*) FROM test.insert_into_select_copy;
320320

321321
DROP TABLE test.insert_into_select_copy, test.insert_into_select CASCADE;
322322
NOTICE: drop cascades to 5 other objects
323-
/*test special case: ONLY statement with not-ONLY for partitioned table */
323+
/*Test special case: ONLY statement with not-ONLY for partitioned table */
324324
CREATE TABLE test.from_only_test(val INT NOT NULL);
325325
INSERT INTO test.from_only_test SELECT generate_series(1, 20);
326326
SELECT pathman.create_range_partitions('test.from_only_test', 'val', 1, 2);
@@ -1818,6 +1818,41 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt = '2015-12-15';
18181818
Filter: (dt = 'Tue Dec 15 00:00:00 2015'::timestamp without time zone)
18191819
(3 rows)
18201820

1821+
/* Test NOT operator */
1822+
CREATE TABLE bool_test(a INT NOT NULL, b BOOLEAN);
1823+
SELECT create_hash_partitions('bool_test', 'a', 3);
1824+
create_hash_partitions
1825+
------------------------
1826+
3
1827+
(1 row)
1828+
1829+
INSERT INTO bool_test SELECT g, (g % 4) = 0 FROM generate_series(1, 100) AS g;
1830+
SELECT count(*) FROM bool_test;
1831+
count
1832+
-------
1833+
100
1834+
(1 row)
1835+
1836+
SELECT count(*) FROM bool_test WHERE (b = true AND b = false);
1837+
count
1838+
-------
1839+
0
1840+
(1 row)
1841+
1842+
SELECT count(*) FROM bool_test WHERE b = false;/* 75 values */
1843+
count
1844+
-------
1845+
75
1846+
(1 row)
1847+
1848+
SELECT count(*) FROM bool_test WHERE b = true;/* 25 values */
1849+
count
1850+
-------
1851+
25
1852+
(1 row)
1853+
1854+
DROP TABLE bool_test CASCADE;
1855+
NOTICE: drop cascades to 3 other objects
18211856
/* Test foreign keys */
18221857
CREATE TABLE test.messages(id SERIAL PRIMARY KEY, msg TEXT);
18231858
CREATE TABLE test.replies(id SERIAL PRIMARY KEY, message_id INTEGER REFERENCES test.messages(id), msg TEXT);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp