@@ -234,7 +234,7 @@ PL/pgSQL function prepare_for_partitioning(regclass,text,boolean) line 9 at PERF
234234SQL statement "SELECT public.prepare_for_partitioning(parent_relid,
235235 expression,
236236 partition_data)"
237- PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line4 at PERFORM
237+ PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line3 at PERFORM
238238/* Try using system attributes */
239239SELECT create_hash_partitions('test_exprs.hash_rel', 'xmin', 4);
240240ERROR: failed to analyze partitioning expression "xmin"
@@ -244,7 +244,7 @@ PL/pgSQL function prepare_for_partitioning(regclass,text,boolean) line 9 at PERF
244244SQL statement "SELECT public.prepare_for_partitioning(parent_relid,
245245 expression,
246246 partition_data)"
247- PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line4 at PERFORM
247+ PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line3 at PERFORM
248248/* Try using subqueries */
249249SELECT create_hash_partitions('test_exprs.hash_rel',
250250 'value, (select oid from pg_class limit 1)',
@@ -256,7 +256,7 @@ PL/pgSQL function prepare_for_partitioning(regclass,text,boolean) line 9 at PERF
256256SQL statement "SELECT public.prepare_for_partitioning(parent_relid,
257257 expression,
258258 partition_data)"
259- PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line4 at PERFORM
259+ PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line3 at PERFORM
260260/* Try using mutable expression */
261261SELECT create_hash_partitions('test_exprs.hash_rel', 'random()', 4);
262262ERROR: failed to analyze partitioning expression "random()"
@@ -266,7 +266,7 @@ PL/pgSQL function prepare_for_partitioning(regclass,text,boolean) line 9 at PERF
266266SQL statement "SELECT public.prepare_for_partitioning(parent_relid,
267267 expression,
268268 partition_data)"
269- PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line4 at PERFORM
269+ PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line3 at PERFORM
270270/* Try using broken parentheses */
271271SELECT create_hash_partitions('test_exprs.hash_rel', 'value * value2))', 4);
272272ERROR: failed to parse partitioning expression "value * value2))"
@@ -276,7 +276,7 @@ CONTEXT: PL/pgSQL function prepare_for_partitioning(regclass,text,boolean) line
276276SQL statement "SELECT public.prepare_for_partitioning(parent_relid,
277277 expression,
278278 partition_data)"
279- PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line4 at PERFORM
279+ PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line3 at PERFORM
280280/* Try using missing columns */
281281SELECT create_hash_partitions('test_exprs.hash_rel', 'value * value3', 4);
282282ERROR: failed to analyze partitioning expression "value * value3"
@@ -287,7 +287,7 @@ CONTEXT: PL/pgSQL function prepare_for_partitioning(regclass,text,boolean) line
287287SQL statement "SELECT public.prepare_for_partitioning(parent_relid,
288288 expression,
289289 partition_data)"
290- PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line4 at PERFORM
290+ PL/pgSQL function create_hash_partitions(regclass,text,integer,boolean,text[],text[]) line3 at PERFORM
291291/* Check that 'pathman_hooks_enabled' is true (1 partition in plan) */
292292EXPLAIN (COSTS OFF) INSERT INTO test_exprs.canary_copy
293293SELECT * FROM test_exprs.canary WHERE val = 1;