@@ -468,7 +468,11 @@ pglogical_write_prepare(StringInfo out, PGLogicalOutputData *data,
468468 /* send fixed fields */
469469 pq_sendint64 (out , lsn );
470470 pq_sendint64 (out , txn -> end_lsn );
471+ #if PG_VERSION_NUM < 150000
472+ pq_sendint64 (out , txn -> commit_time );
473+ #else
471474 pq_sendint64 (out , txn -> xact_time .commit_time );
475+ #endif
472476
473477 send_node_id (out , txn , hooks_data );
474478 pq_sendint64 (out , txn -> origin_lsn );
@@ -499,7 +503,11 @@ pglogical_write_commit_prepared(StringInfo out, PGLogicalOutputData *data,
499503 /* send fixed fields */
500504 pq_sendint64 (out , lsn );
501505 pq_sendint64 (out , txn -> end_lsn );
506+ #if PG_VERSION_NUM < 150000
507+ pq_sendint64 (out , txn -> commit_time );
508+ #else
502509 pq_sendint64 (out , txn -> xact_time .commit_time );
510+ #endif
503511
504512 send_node_id (out , txn , hooks_data );
505513 pq_sendint64 (out , txn -> origin_lsn );
@@ -532,7 +540,11 @@ pglogical_write_abort_prepared(StringInfo out, PGLogicalOutputData *data,
532540 /* send fixed fields */
533541 pq_sendint64 (out , lsn );
534542 pq_sendint64 (out , txn -> end_lsn );
543+ #if PG_VERSION_NUM < 150000
544+ pq_sendint64 (out , txn -> commit_time );
545+ #else
535546 pq_sendint64 (out , txn -> xact_time .commit_time );
547+ #endif
536548
537549 send_node_id (out , txn , hooks_data );
538550 pq_sendint64 (out , txn -> origin_lsn );
@@ -560,7 +572,11 @@ pglogical_write_commit(StringInfo out, PGLogicalOutputData *data,
560572 /* send fixed fields */
561573 pq_sendint64 (out , lsn );
562574 pq_sendint64 (out , txn -> end_lsn );
575+ #if PG_VERSION_NUM < 150000
576+ pq_sendint64 (out , txn -> commit_time );
577+ #else
563578 pq_sendint64 (out , txn -> xact_time .commit_time );
579+ #endif
564580
565581 send_node_id (out , txn , hooks_data );
566582 pq_sendint64 (out , txn -> origin_lsn );
@@ -583,7 +599,11 @@ pglogical_write_abort(StringInfo out, PGLogicalOutputData *data,
583599 /* send fixed fields */
584600 pq_sendint64 (out , lsn );
585601 pq_sendint64 (out , txn -> end_lsn );
602+ #if PG_VERSION_NUM < 150000
603+ pq_sendint64 (out , txn -> commit_time );
604+ #else
586605 pq_sendint64 (out , txn -> xact_time .commit_time );
606+ #endif
587607
588608 send_node_id (out , txn , hooks_data );
589609 pq_sendint64 (out , txn -> origin_lsn );
0 commit comments