Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c4dd49

Browse files
committed
formatting, fix outdated comments
1 parent9e8bfc7 commit9c4dd49

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

‎src/include/init.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ simpify_mcxt_name(MemoryContext mcxt)
135135
*/
136136
#defineDisablePathman() \
137137
do { \
138-
pathman_init_state.pg_pathman_enable= false; \
139-
pathman_init_state.auto_partition= false; \
140-
pathman_init_state.override_copy= false; \
141-
pathman_init_state.initialization_needed= true; \
138+
pathman_init_state.pg_pathman_enable= false; \
139+
pathman_init_state.auto_partition= false; \
140+
pathman_init_state.override_copy= false; \
141+
pathman_init_state.initialization_needed= true; \
142142
} while (0)
143143

144144

‎src/partition_creation.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,14 @@ create_partitions_for_value_internal(Oid relid, Datum value, Oid value_type,
348348
/* Get both PartRelationInfo & PATHMAN_CONFIG contents for this relation */
349349
if (pathman_config_contains_relation(relid,values,isnull,NULL,NULL))
350350
{
351-
Oidbase_bound_type;/* base type of prel->atttype */
351+
Oidbase_bound_type;/* base type of prel->ev_type */
352352
Oidbase_value_type;/* base type of value_type */
353353

354354
/* Fetch PartRelationInfo by 'relid' */
355355
prel=get_pathman_relation_info_after_lock(relid, true,&lock_result);
356356
shout_if_prel_is_invalid(relid,prel,PT_RANGE);
357357

358-
/* Fetch base types of prel->atttype & value_type */
358+
/* Fetch base types of prel->ev_type & value_type */
359359
base_bound_type=getBaseType(prel->ev_type);
360360
base_value_type=getBaseType(value_type);
361361

@@ -467,19 +467,15 @@ create_partitions_for_value_internal(Oid relid, Datum value, Oid value_type,
467467

468468
/*
469469
* Append\prepend partitions if there's no partition to store 'value'.
470-
*
471-
* Used by create_partitions_for_value_internal().
472-
*
473-
* NB: 'value' type is not needed since we've already taken
474-
* it into account while searching for the 'cmp_proc'.
470+
* NOTE: Used by create_partitions_for_value_internal().
475471
*/
476472
staticOid
477473
spawn_partitions_val(Oidparent_relid,/* parent's Oid */
478474
constBound*range_bound_min,/* parent's MIN boundary */
479475
constBound*range_bound_max,/* parent's MAX boundary */
480476
Oidrange_bound_type,/* type of boundary's value */
481477
Datuminterval_binary,/* interval in binary form */
482-
Oidinterval_type,/* INTERVALOID or prel->atttype */
478+
Oidinterval_type,/* INTERVALOID or prel->ev_type */
483479
Datumvalue,/* value to be INSERTed */
484480
Oidvalue_type,/* type of value */
485481
Oidcollid)/* collation id */

‎src/utility_stmt_hooking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ is_pathman_related_alter_column_type(Node *parsetree,
231231
if (!bms_is_member(adjusted_attnum,prel->expr_atts))
232232
continue;
233233

234-
/* Return 'prel->attnum' */
234+
/* Return 'attr_number_out' if asked to */
235235
if (attr_number_out)*attr_number_out=attnum;
236236

237237
/* Success! */

‎src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ extract_binary_interval_from_text(Datum interval_text,/* interval as TEXT */
452452
elog(ERROR,"cannot find input function for type %u",part_atttype);
453453

454454
/*
455-
* Convert interval from CSTRING to 'prel->atttype'.
455+
* Convert interval from CSTRING to 'prel->ev_type'.
456456
*
457457
* Note: We pass 3 arguments in case
458458
* 'typein_proc' also takes Oid & typmod.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp