mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Fix assorted inconsistencies.
There were a number of issues in the recent commits which include typos, code and comments mismatch, leftover function declarations. Fix them. Reported-by: Alexander Lakhin Author: Alexander Lakhin, Amit Kapila and Amit Langote Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/ef0c0232-0c1d-3a35-63d4-0ebd06e31387@gmail.com
This commit is contained in:
@ -1867,7 +1867,7 @@ void
|
||||
slot_getsomeattrs_int(TupleTableSlot *slot, int attnum)
|
||||
{
|
||||
/* Check for caller errors */
|
||||
Assert(slot->tts_nvalid < attnum); /* slot_getsomeattr checked */
|
||||
Assert(slot->tts_nvalid < attnum); /* checked in slot_getsomeattrs */
|
||||
Assert(attnum > 0);
|
||||
|
||||
if (unlikely(attnum > slot->tts_tupleDescriptor->natts))
|
||||
|
@ -2316,7 +2316,9 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
|
||||
* verify that the proposed target relations are valid and open their
|
||||
* indexes for insertion of new index entries. Note we *must* set
|
||||
* estate->es_result_relation_info correctly while we initialize each
|
||||
* sub-plan; ExecContextForcesOids depends on that!
|
||||
* sub-plan; external modules such as FDWs may depend on that (see
|
||||
* contrib/postgres_fdw/postgres_fdw.c: postgresBeginDirectModify()
|
||||
* as one example).
|
||||
*/
|
||||
saved_resultRelInfo = estate->es_result_relation_info;
|
||||
|
||||
|
Reference in New Issue
Block a user