Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8849115

Browse files
committed
attempt to fix issue #153 (table is being partitioned now)
1 parent 2ea90b3 commit 8849115

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

src/init.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -674,18 +674,7 @@ pathman_config_contains_relation(Oid relid, Datum *values, bool *isnull,
674674

675675
/* Set xmin if necessary */
676676
if (xmin)
677-
{
678-
Datum value;
679-
bool isnull;
680-
681-
value = heap_getsysattr(htup,
682-
MinTransactionIdAttributeNumber,
683-
RelationGetDescr(rel),
684-
&isnull);
685-
686-
Assert(!isnull);
687-
*xmin = DatumGetTransactionId(value);
688-
}
677+
*xmin = HeapTupleHeaderGetXmin(htup->t_data);
689678

690679
/* Set ItemPointer if necessary */
691680
if (iptr)

src/xact_handling.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ xact_is_alter_pathman_stmt(Node *stmt)
162162
bool
163163
xact_object_is_visible(TransactionId obj_xmin)
164164
{
165-
return TransactionIdPrecedes(obj_xmin, GetCurrentTransactionId()) ||
166-
TransactionIdEquals(obj_xmin, FrozenTransactionId);
165+
return TransactionIdEquals(obj_xmin, FrozenTransactionId) ||
166+
TransactionIdPrecedes(obj_xmin, GetCurrentTransactionId());
167167
}
168168

169169
/*

0 commit comments

Comments
 (0)