mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Improve style of two code paths
In execGrouping.c, execTuplesMatchPrepare() was doing a memory allocation that was not necessary when the number of columns was 0. In foreign.c, pg_options_to_table() was assigning twice a variable to the same value. Author: Ranier Vilela Discussion: https://postgr.es/m/CAEudQAqup0agbSzMjSLSTn=OANyCzxENF1+HrSYnr3WyZib7=Q@mail.gmail.com
This commit is contained in:
@@ -524,7 +524,7 @@ pg_options_to_table(PG_FUNCTION_ARGS)
|
||||
Datum array = PG_GETARG_DATUM(0);
|
||||
ListCell *cell;
|
||||
List *options;
|
||||
ReturnSetInfo *rsinfo = (ReturnSetInfo *) fcinfo->resultinfo;
|
||||
ReturnSetInfo *rsinfo;
|
||||
|
||||
options = untransformRelOptions(array);
|
||||
rsinfo = (ReturnSetInfo *) fcinfo->resultinfo;
|
||||
|
||||
Reference in New Issue
Block a user