Skip to content

Commit 000130d

Browse files
committed
more tests for create_hash_partitions_internal()
1 parent da06245 commit 000130d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

expected/pathman_calamity.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ SHOW pg_pathman.enable;
295295

296296
/* check function create_hash_partitions_internal() (called for the 2nd time) */
297297
CREATE TABLE calamity.hash_two_times(val serial);
298+
SELECT create_hash_partitions_internal('calamity.hash_two_times', 'val', 2);
299+
ERROR: table "hash_two_times" is not partitioned
298300
SELECT create_hash_partitions('calamity.hash_two_times', 'val', 2);
299301
create_hash_partitions
300302
------------------------

sql/pathman_calamity.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SHOW pg_pathman.enable;
111111

112112
/* check function create_hash_partitions_internal() (called for the 2nd time) */
113113
CREATE TABLE calamity.hash_two_times(val serial);
114+
SELECT create_hash_partitions_internal('calamity.hash_two_times', 'val', 2);
114115
SELECT create_hash_partitions('calamity.hash_two_times', 'val', 2);
115116
SELECT create_hash_partitions_internal('calamity.hash_two_times', 'val', 2);
116117

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy