mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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
This commit is contained in:
parent
3200b15b20
commit
bf22d2707a
@ -50,7 +50,6 @@ ConversionCreate(const char *conname, Oid connamespace,
|
|||||||
bool nulls[Natts_pg_conversion];
|
bool nulls[Natts_pg_conversion];
|
||||||
Datum values[Natts_pg_conversion];
|
Datum values[Natts_pg_conversion];
|
||||||
NameData cname;
|
NameData cname;
|
||||||
Oid oid;
|
|
||||||
ObjectAddress myself,
|
ObjectAddress myself,
|
||||||
referenced;
|
referenced;
|
||||||
|
|
||||||
@ -106,8 +105,7 @@ ConversionCreate(const char *conname, Oid connamespace,
|
|||||||
tup = heap_form_tuple(tupDesc, values, nulls);
|
tup = heap_form_tuple(tupDesc, values, nulls);
|
||||||
|
|
||||||
/* insert a new tuple */
|
/* insert a new tuple */
|
||||||
oid = simple_heap_insert(rel, tup);
|
simple_heap_insert(rel, tup);
|
||||||
Assert(OidIsValid(oid));
|
|
||||||
|
|
||||||
/* update the index if any */
|
/* update the index if any */
|
||||||
CatalogUpdateIndexes(rel, tup);
|
CatalogUpdateIndexes(rel, tup);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user