[YSQL] pg_partman: unknown transaction, could be recently aborted #13597
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-3172
Description
Ran into the following error while importing tests for pg_partman extension. The error appeared while porting over test-id-native.sql in pg_partman/test/test_native (after removing
CREATE UNLOGGED TABLE
andALTER TABLE ... ADD PRIMARY KEY
calls as they aren't supported).I believe the cause of the error is the DDL
ALTER TABLE ... ATTACH PARTITION
, which causes DMLs following it to fail. It is called in partman.create_partition_id, called by partman.create_parent to attach partitions to the parent.The following SQL code reproduces the error. In order to run, the pg_partman extension must be loaded, with the like clause enabled.
Note: the error may be slightly different from run to run (i.e. the DML that fails may change)
The text was updated successfully, but these errors were encountered: