|
7 | 7 | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $Id: rel.h,v 1.34 2000/01/31 04:35:57 tgl Exp $ |
| 10 | + * $Id: rel.h,v 1.35 2000/02/27 07:31:00 tgl Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -149,7 +149,9 @@ typedef Relation *RelationPtr; |
149 | 149 | * RelationDecrementReferenceCount |
150 | 150 | *Decrements relation reference count. |
151 | 151 | */ |
152 | | -#defineRelationDecrementReferenceCount(relation) ((relation)->rd_refcnt -= 1) |
| 152 | +#defineRelationDecrementReferenceCount(relation) \ |
| 153 | +(AssertMacro((relation)->rd_refcnt > 0), \ |
| 154 | + (relation)->rd_refcnt -= 1) |
153 | 155 |
|
154 | 156 | /* |
155 | 157 | * RelationGetForm |
|