diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-23 23:06:38 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-23 23:06:38 +0000 |
commit | 7326e78c4249393359edce09f555aaa049be2a80 (patch) | |
tree | d1fc53198588ee98884524a28b13105a6b296952 /src/backend/access/common/heaptuple.c | |
parent | 29ec29ffac53b50870a55b88f96b462835e9042a (diff) | |
download | postgresql-7326e78c4249393359edce09f555aaa049be2a80.tar.gz postgresql-7326e78c4249393359edce09f555aaa049be2a80.zip |
Ensure that all TransactionId comparisons are encapsulated in macros
(TransactionIdPrecedes, TransactionIdFollows, etc). First step on the
way to transaction ID wrap solution ...
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r-- | src/backend/access/common/heaptuple.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c index faaf33c5096..ef6cedd92d2 100644 --- a/src/backend/access/common/heaptuple.c +++ b/src/backend/access/common/heaptuple.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.72 2001/06/12 05:55:49 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.73 2001/08/23 23:06:37 tgl Exp $ * * NOTES * The old interface functions have been converted to macros @@ -441,20 +441,16 @@ heap_getsysattr(HeapTuple tup, int attnum, bool *isnull) result = ObjectIdGetDatum(tup->t_data->t_oid); break; case MinTransactionIdAttributeNumber: - /* XXX should have a TransactionIdGetDatum macro */ - result = (Datum) (tup->t_data->t_xmin); + result = TransactionIdGetDatum(tup->t_data->t_xmin); break; case MinCommandIdAttributeNumber: - /* XXX should have a CommandIdGetDatum macro */ - result = (Datum) (tup->t_data->t_cmin); + result = CommandIdGetDatum(tup->t_data->t_cmin); break; case MaxTransactionIdAttributeNumber: - /* XXX should have a TransactionIdGetDatum macro */ - result = (Datum) (tup->t_data->t_xmax); + result = TransactionIdGetDatum(tup->t_data->t_xmax); break; case MaxCommandIdAttributeNumber: - /* XXX should have a CommandIdGetDatum macro */ - result = (Datum) (tup->t_data->t_cmax); + result = CommandIdGetDatum(tup->t_data->t_cmax); break; case TableOidAttributeNumber: result = ObjectIdGetDatum(tup->t_tableOid); |