mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Change pg_*_relation_stats() functions to return type to void.
These functions will either raise an ERROR or run to normal completion, so no return value is necessary. Bump catalog version. Author: Corey Huinker Discussion: https://postgr.es/m/CADkLM=cBF8rnphuTyHFi3KYzB9ByDgx57HwK9Rz2yp7S+Om87w@mail.gmail.com
This commit is contained in:
@@ -188,7 +188,8 @@ relation_statistics_update(FunctionCallInfo fcinfo, int elevel)
|
||||
Datum
|
||||
pg_set_relation_stats(PG_FUNCTION_ARGS)
|
||||
{
|
||||
PG_RETURN_BOOL(relation_statistics_update(fcinfo, ERROR));
|
||||
relation_statistics_update(fcinfo, ERROR);
|
||||
PG_RETURN_VOID();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -211,5 +212,6 @@ pg_clear_relation_stats(PG_FUNCTION_ARGS)
|
||||
newfcinfo->args[3].value = DEFAULT_RELALLVISIBLE;
|
||||
newfcinfo->args[3].isnull = false;
|
||||
|
||||
PG_RETURN_BOOL(relation_statistics_update(newfcinfo, ERROR));
|
||||
relation_statistics_update(newfcinfo, ERROR);
|
||||
PG_RETURN_VOID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user