*bitP |= bitmask;
}
- bitP = ((bits8 *) (rettuple + SizeOfBrinTuple)) - 1;
}
if (tuple->bt_placeholder)
blkno = root->blkno;
buffer = root->buffer;
- offset = InvalidOffsetNumber;
ptr = (GinBtreeStack *) palloc(sizeof(GinBtreeStack));
while (HeapTupleIsValid((tup = systable_getnext(scan))))
{
- Form_pg_depend depform = (Form_pg_depend) GETSTRUCT(tup);
+ Form_pg_depend depform;
/* make a modifiable copy */
tup = heap_copytuple(tup);
while (HeapTupleIsValid((tup = systable_getnext(scan))))
{
- Form_pg_depend depform = (Form_pg_depend) GETSTRUCT(tup);
-
if (newIsPinned)
CatalogTupleDelete(depRel, &tup->t_self);
else
{
+ Form_pg_depend depform;
+
/* make a modifiable copy */
tup = heap_copytuple(tup);
depform = (Form_pg_depend) GETSTRUCT(tup);
foreach(lc, input_rel->partial_pathlist)
{
Path *input_path = (Path *) lfirst(lc);
- Path *sorted_path = input_path;
+ Path *sorted_path;
bool is_sorted;
int presorted_keys;
double total_groups;
char *attname;
attname = get_attname(indrelid, attnum, false);
- keycoltype = get_atttype(indrelid, attnum);
iparam->name = attname;
iparam->expr = NULL;
return result;
}
- lower_or_start_datum = list_head(spec->lowerdatums);
- upper_or_start_datum = list_head(spec->upperdatums);
- num_or_arms = key->partnatts;
-
/*
* If it is the recursive call for default, we skip the get_range_nulltest
* to avoid accumulating the NullTest on the same keys for each partition.
foreach(lc, lstats)
{
StatExtEntry *stat = (StatExtEntry *) lfirst(lc);
- int stattarget = stat->stattarget;
+ int stattarget;
VacAttrStats **stats;
int nattrs = bms_num_members(stat->columns);
}
else
{
- int err;
pg_wchar *data;
size_t data_len;
int newword_len;
data = (pg_wchar *) palloc((newword_len + 1) * sizeof(pg_wchar));
data_len = pg_mb2wchar_with_len(newword, data, newword_len);
- if (!(err = pg_regexec(&(Affix->reg.regex), data, data_len, 0, NULL, 0, NULL, 0)))
+ if (pg_regexec(&(Affix->reg.regex), data, data_len,
+ 0, NULL, 0, NULL, 0) == REG_OKAY)
{
pfree(data);
return newword;