mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Fix inconsistencies in the code
This addresses a couple of issues in the code: - Typos and inconsistencies in comments and function declarations. - Removal of unreferenced function declarations. - Removal of unnecessary compile flags. - A cleanup error in regressplans.sh. Author: Alexander Lakhin Discussion: https://postgr.es/m/0c991fdf-2670-1997-c027-772a420c4604@gmail.com
This commit is contained in:
@ -60,10 +60,10 @@ typedef struct PartitionPruneContext
|
||||
} PartitionPruneContext;
|
||||
|
||||
/*
|
||||
* PruneCxtStateIdx() computes the correct index into the stepcmpfuncs[],
|
||||
* exprstates[] and exprhasexecparam[] arrays for step step_id and
|
||||
* partition key column keyno. (Note: there is code that assumes the
|
||||
* entries for a given step are sequential, so this is not chosen freely.)
|
||||
* PruneCxtStateIdx() computes the correct index into the stepcmpfuncs[]
|
||||
* and exprstates[] arrays for step step_id and partition key column keyno.
|
||||
* (Note: there is code that assumes the entries for a given step are
|
||||
* sequential, so this is not chosen freely.)
|
||||
*/
|
||||
#define PruneCxtStateIdx(partnatts, step_id, keyno) \
|
||||
((partnatts) * (step_id) + (keyno))
|
||||
|
Reference in New Issue
Block a user