OSDN Git Service

Change assertion according to change of behavior of the function
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 4 Jun 2014 04:03:03 +0000 (13:03 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Fri, 6 Jun 2014 07:03:29 +0000 (16:03 +0900)
pg_dbms_stats.c

index cbf0805..f289f0d 100644 (file)
@@ -1155,8 +1155,7 @@ column_cache_enter(Oid relid, int32 attnum, HeapTuple tuple)
        StatsRelationEntry *entry;
        bool                    found;
 
-       Assert(tuple != NULL);
-       Assert(!heap_attisnull(tuple, 1));
+       Assert(tuple == NULL || !heap_attisnull(tuple, 1));
 
        entry = hash_search(rel_stats, &relid, HASH_ENTER, &found);
        if (!found)