]> granicus.if.org Git - postgresql/commitdiff
Try to convince gcc that TupleQueueRemap never falls off the end.
authorRobert Haas <rhaas@postgresql.org>
Sat, 7 Nov 2015 04:04:21 +0000 (23:04 -0500)
committerRobert Haas <rhaas@postgresql.org>
Sat, 7 Nov 2015 04:04:21 +0000 (23:04 -0500)
Without this, MacOS gcc version 4.2.1 isn't convinced.

src/backend/executor/tqueue.c

index f465b1db8bc611df8617ebcab51c5df6a0048752..206894df1bd5c5823873f49c765b7bca82475f7c 100644 (file)
@@ -661,6 +661,8 @@ TupleQueueRemap(TupleQueueReader *reader, RemapClass remapclass, Datum value)
                case TQUEUE_REMAP_RECORD:
                        return TupleQueueRemapRecord(reader, value);
        }
+
+       elog(ERROR, "unknown remap class: %d", (int) remapclass);
 }
 
 /*