From: keithf4 (@keithf4) <noreply+keithf4@github.com>
To: pgpartman/pg_partman <noreply+pgpartman-pg_partman@github.com>
Subject: Re: [pgpartman/pg_partman] PR #879: fix: partition_data_time() compares the control column in its own type
Date: Fri, 23 Oct 2026 19:27:37 +0000
Message-ID: <gh-pgpartman-pg_partman-879-c6373026999@github.com> (raw)
In-Reply-To: <gh-pgpartman-pg_partman-879@github.com>
References: <gh-pgpartman-pg_partman-879@github.com>
@AlexeyShalaev So I've gotten this merged in but still getting failure with the new tap test. I'll continue looking into it, but if you have a chance to look too that would be great.
```
keith@Keiths-MacBook-Pro pg_partman % pg_prove -ovf test/test-time-monthly-boundary.sql
test/test-time-monthly-boundary.sql ..
partman, public
1..12
t
psql:test/test-time-monthly-boundary.sql:33: ERROR: updated partition constraint for default partition "time_taptest_table_default" would be violated by some row
CONTEXT: SQL statement "ALTER TABLE partman_test.time_taptest_table ATTACH PARTITION partman_test.time_taptest_table_p20260701 FOR VALUES FROM ('2026-07-01 00:00:00-04') TO ('2026-08-01 00:00:00-04')"
PL/pgSQL function create_partition_time(text,timestamp with time zone[],text) line 202 at EXECUTE
PL/pgSQL function partition_data_time(text,integer,interval,numeric,text,boolean,text,text[],boolean,boolean) line 340 at assignment
PL/pgSQL function results_eq(refcursor,refcursor,text) line 12 at FETCH
PL/pgSQL function results_eq(text,anyarray,text) line 10 at assignment
DETAIL:
HINT:
CONTEXT: PL/pgSQL function create_partition_time(text,timestamp with time zone[],text) line 412 at RAISE
PL/pgSQL function partition_data_time(text,integer,interval,numeric,text,boolean,text,text[],boolean,boolean) line 340 at assignment
PL/pgSQL function results_eq(refcursor,refcursor,text) line 12 at FETCH
PL/pgSQL function results_eq(text,anyarray,text) line 10 at assignment
Dubious, test returned 3 (wstat 768, 0x300)
Failed 12/12 subtests
Test Summary Report
-------------------
test/test-time-monthly-boundary.sql (Wstat: 768 Tests: 0 Failed: 0)
Non-zero exit status: 3
Parse errors: Bad plan. You planned 12 tests but ran 0.
```