]> granicus.if.org Git - postgresql/commit
Use ExecPrepareExpr in place of ExecPrepareCheck where appropriate.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Mar 2017 22:14:03 +0000 (18:14 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Mar 2017 22:14:03 +0000 (18:14 -0400)
commit9b95f2fa1e2684fa209a3594db2254b8841bf380
tree06fc122b56fbe559ef5540a86b7dca4388e0cefb
parent5459cfd3ad52b87a1e2ed293ae55e733c6964715
Use ExecPrepareExpr in place of ExecPrepareCheck where appropriate.

Change one more place where ExecInitCheck/ExecPrepareCheck's insistence
on getting implicit-AND-format quals wasn't really helpful, because the
caller had to do make_ands_implicit() for no reason that it cared about.
Using ExecPrepareExpr directly simplifies the code and saves cycles.

The only remaining use of these functions is to process
resultRelInfo->ri_PartitionCheck quals.  However, implicit-AND format
does seem to be what we want for that, so leave it alone.
src/backend/catalog/partition.c
src/backend/commands/tablecmds.c