View Issue Details

IDProjectCategoryView StatusLast Update
0006882SymmetricDSNew Featurepublic2025-05-09 18:39
Reporterpbelov Assigned Topbelov  
Prioritynormal 
Status confirmedResolutionopen 
Product Version3.16.0 
Target Version3.16.3 
Summary0006882: Capture TRUNCATE table events in PostgreSQL database
DescriptionThe PostgreSQL database supports triggers for TRUNCATE table events.
Currently these events are not being captured by the existing DDL trigger feature.

The TRUNCATE table event in PostgreSQL is:
* A table-level event (not a row-level or schema-level event).
* Must be implemented via a function or procedure.

Steps To ReproduceSet up a node with PostgreSQL database as a source.
Set the parameter
trigger.capture.ddl.changes=true

Create a test table :
   CREATE TABLE demo_small(id int);

Configure new SymmetricDS trigger for the demo_small table.

Execute truncate statement:
   TRUNCATE TABLE demo_small;

Observe: No new sym_data records.
Additional InformationPostgreSQL docs:
Create Trigger https://www.postgresql.org/docs/17/sql-createtrigger.html
Trigger functions https://www.postgresql.org/docs/current/functions-event-triggers.html
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-05-09 18:18 pbelov New Issue
2025-05-09 18:18 pbelov Status new => assigned
2025-05-09 18:18 pbelov Assigned To => pbelov
2025-05-09 18:39 pbelov Status assigned => confirmed
2025-05-09 18:39 pbelov Description Updated View Revisions
2025-05-09 18:39 pbelov Steps to Reproduce Updated View Revisions
2025-05-09 18:39 pbelov Additional Information Updated View Revisions