Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8849115

Browse files
committed
attempt to fix issue#153 (table is being partitioned now)
1 parent2ea90b3 commit8849115

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-
Datumvalue;
679-
boolisnull;
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(TransactionIdobj_xmin)
164164
{
165-
returnTransactionIdPrecedes(obj_xmin,GetCurrentTransactionId())||
166-
TransactionIdEquals(obj_xmin,FrozenTransactionId);
165+
returnTransactionIdEquals(obj_xmin,FrozenTransactionId)||
166+
TransactionIdPrecedes(obj_xmin,GetCurrentTransactionId());
167167
}
168168

169169
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp