mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Minor refactoring of btree_gist code.
The gbt_var_key_copy function was doing two different things depending on the boolean argument. Seems cleaner to have two separate functions. Remove unused argument from gbt_num_compress.
This commit is contained in:
@ -170,7 +170,7 @@ gbt_numeric_penalty(PG_FUNCTION_ARGS)
|
||||
uk;
|
||||
|
||||
rk = gbt_var_key_readable(org);
|
||||
uni = PointerGetDatum(gbt_var_key_copy(&rk, TRUE));
|
||||
uni = PointerGetDatum(gbt_var_key_copy(&rk));
|
||||
gbt_var_bin_union(&uni, newe, PG_GET_COLLATION(), &tinfo);
|
||||
ok = gbt_var_key_readable(org);
|
||||
uk = gbt_var_key_readable((GBT_VARKEY *) DatumGetPointer(uni));
|
||||
|
Reference in New Issue
Block a user