!3837 contrib目录下几个问题

Merge pull request !3837 from ytwx1993/ytwx1993_0726_01
This commit is contained in:
opengauss_bot
2023-07-26 11:48:00 +00:00
committed by Gitee
4 changed files with 6 additions and 6 deletions

View File

@ -163,8 +163,8 @@ static ForeignScan *gcGetForeignPlan(PlannerInfo *root,
Oid foreigntableid,
ForeignPath *best_path,
List *tlist,
List *scan_clauses/*,
Plan *outer_plan*/);
List *scan_clauses,
Plan *outer_plan);
static void gcBeginForeignScan(ForeignScanState* node, int eflags);
static TupleTableSlot* gcIterateForeignScan(ForeignScanState* node);
static VectorBatch* gcIterateVecForeignScan(VecForeignScanState* node);

View File

@ -135,7 +135,7 @@ typedef struct pgssEntry {
* Global shared state
*/
typedef struct pgssSharedState {
LWLockId lock; /* protects hashtable search/modification */
LWLock* lock; /* protects hashtable search/modification */
int query_size; /* max query length in bytes */
double cur_median_usage; /* current median usage in hashtable */
} pgssSharedState;

View File

@ -1435,9 +1435,9 @@ static bool compatCrosstabTupleDescs(TupleDesc ret_tupdesc, TupleDesc sql_tupdes
* attribute [2] of the sql tuple should match attributes [1] to [natts]
* of the return tuple
*/
sql_attr = sql_tupdesc->attrs[2];
sql_attr = &sql_tupdesc->attrs[2];
for (i = 1; i < ret_tupdesc->natts; i++) {
ret_attr = ret_tupdesc->attrs[i];
ret_attr = &ret_tupdesc->attrs[i];
if (ret_attr->atttypid != sql_attr->atttypid)
return false;

View File

@ -152,7 +152,7 @@ Datum triggered_change_notification(PG_FUNCTION_ARGS)
int colno = index->indkey.values[i];
appendStringInfoCharMacro(payload, ',');
strcpy_quoted(payload, NameStr((tupdesc->attrs[colno - 1])->attname), '"');
strcpy_quoted(payload, NameStr((tupdesc->attrs[colno - 1]).attname), '"');
appendStringInfoCharMacro(payload, '=');
strcpy_quoted(payload, SPI_getvalue(trigtuple, tupdesc, colno), '\'');
}