Revert a change accidentally got checked in during merge bbf2fec2. Regressions
authorPavan Deolasee <[email protected]>
Tue, 6 Sep 2016 05:29:55 +0000 (10:59 +0530)
committerPavan Deolasee <[email protected]>
Tue, 6 Sep 2016 05:29:55 +0000 (10:59 +0530)
show no additional failures.

Thanks Tomas Vondra for spotting this.

src/backend/utils/adt/datum.c

index 4b4974b5cadfd26f9ba97f55f99ee10ca8d478b0..e8af0304c0b3b998405db6b684a6fc830478b283 100644 (file)
@@ -136,9 +136,6 @@ datumCopy(Datum value, bool typByVal, int typLen)
                /* It is a varlena datatype */
                struct varlena *vl = (struct varlena *) DatumGetPointer(value);
 
-               if (!vl)
-                       return PointerGetDatum(NULL);
-
                if (VARATT_IS_EXTERNAL_EXPANDED(vl))
                {
                        /* Flatten into the caller's memory context */