mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Make more use of castNode()
This commit is contained in:
@ -6087,14 +6087,13 @@ deconstruct_indexquals(IndexPath *path)
|
||||
|
||||
forboth(lcc, path->indexquals, lci, path->indexqualcols)
|
||||
{
|
||||
RestrictInfo *rinfo = (RestrictInfo *) lfirst(lcc);
|
||||
RestrictInfo *rinfo = castNode(RestrictInfo, lfirst(lcc));
|
||||
int indexcol = lfirst_int(lci);
|
||||
Expr *clause;
|
||||
Node *leftop,
|
||||
*rightop;
|
||||
IndexQualInfo *qinfo;
|
||||
|
||||
Assert(IsA(rinfo, RestrictInfo));
|
||||
clause = rinfo->clause;
|
||||
|
||||
qinfo = (IndexQualInfo *) palloc(sizeof(IndexQualInfo));
|
||||
|
Reference in New Issue
Block a user