Skip to content
Snippets Groups Projects
Commit bf22d270 authored by Alvaro Herrera's avatar Alvaro Herrera
Browse files

Silence warning in non-assert-enabled build

An OID return value was being used only for a (rather pointless) assert.
Silence by removing the variable and the assert.

Per note from Peter Geoghegan
parent 3200b15b
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,6 @@ ConversionCreate(const char *conname, Oid connamespace,
bool nulls[Natts_pg_conversion];
Datum values[Natts_pg_conversion];
NameData cname;
Oid oid;
ObjectAddress myself,
referenced;
......@@ -106,8 +105,7 @@ ConversionCreate(const char *conname, Oid connamespace,
tup = heap_form_tuple(tupDesc, values, nulls);
/* insert a new tuple */
oid = simple_heap_insert(rel, tup);
Assert(OidIsValid(oid));
simple_heap_insert(rel, tup);
/* update the index if any */
CatalogUpdateIndexes(rel, tup);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment