Fix different input order of func apply_new_delta_with_count‘s declaration and definition

- declaration: apply_new_delta_with_count(... StringInfo target_list, StringInfo aggs_set, ...)
- definition: apply_new_delta_with_count(... StringInfo aggs_set, StringInfo target_list, ...)

the input order is different.
This commit is contained in:
Yongtao Huang 2025-01-02 14:52:28 +08:00 committed by GitHub
parent cd2ba93f3d
commit 5aaededb91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2063,7 +2063,7 @@ apply_delta(Oid matviewOid, Tuplestorestate *old_tuplestores, Tuplestorestate *n
/* apply new delta */
if (use_count)
apply_new_delta_with_count(matviewname, NEW_DELTA_ENRNAME,
keys, aggs_set_new, &target_list_buf, count_colname,
keys, &target_list_buf, aggs_set_new, count_colname,
query->distinctClause != NULL);
else
apply_new_delta(matviewname, NEW_DELTA_ENRNAME, &target_list_buf);
@ -2547,7 +2547,7 @@ apply_old_delta(const char *matviewname, const char *deltaname_old,
*/
static void
apply_new_delta_with_count(const char *matviewname, const char* deltaname_new,
List *keys, StringInfo aggs_set, StringInfo target_list,
List *keys, StringInfo target_list, StringInfo aggs_set,
const char* count_colname, bool distinct)
{
StringInfoData querybuf;