Skip to content

Commit 39efd76

Browse files
committed
pathman: formatting issues
1 parent 4d9c1ee commit 39efd76

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

contrib/pathman/init.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -190,36 +190,36 @@ load_check_constraints(Oid parent_oid)
190190
proc = SPI_processed;
191191

192192
if (ret > 0 && SPI_tuptable != NULL)
193-
{
194-
// TupleDesc tupdesc = SPI_tuptable->tupdesc;
195-
SPITupleTable *tuptable = SPI_tuptable;
196-
Oid *children;
197-
RangeEntry *ranges;
198-
Datum min;
199-
Datum max;
193+
{
194+
// TupleDesc tupdesc = SPI_tuptable->tupdesc;
195+
SPITupleTable *tuptable = SPI_tuptable;
196+
Oid *children;
197+
RangeEntry *ranges;
198+
Datum min;
199+
Datum max;
200200
int hash;
201201
HashRelation *hashrel;
202202

203-
alloc_dsm_array(&prel->children, sizeof(Oid), proc);
204-
children = (Oid *) dsm_array_get_pointer(&prel->children);
203+
alloc_dsm_array(&prel->children, sizeof(Oid), proc);
204+
children = (Oid *) dsm_array_get_pointer(&prel->children);
205205

206-
if (prel->parttype == PT_RANGE)
207-
{
206+
if (prel->parttype == PT_RANGE)
207+
{
208208
rangerel = (RangeRelation *)
209209
hash_search(range_restrictions, (void *) &parent_oid, HASH_ENTER, &found);
210210

211-
alloc_dsm_array(&rangerel->ranges, sizeof(RangeEntry), proc);
212-
ranges = (RangeEntry *) dsm_array_get_pointer(&rangerel->ranges);
213-
}
211+
alloc_dsm_array(&rangerel->ranges, sizeof(RangeEntry), proc);
212+
ranges = (RangeEntry *) dsm_array_get_pointer(&rangerel->ranges);
213+
}
214214

215-
for (i=0; i<proc; i++)
216-
{
215+
for (i=0; i<proc; i++)
216+
{
217217
RangeEntry re;
218-
HeapTuple tuple = tuptable->vals[i];
219-
bool isnull;
220-
Datum val;
221-
char *conbin;
222-
Expr *expr;
218+
HeapTuple tuple = tuptable->vals[i];
219+
bool isnull;
220+
Datum val;
221+
char *conbin;
222+
Expr *expr;
223223

224224
// HeapTuple reltuple;
225225
// Form_pg_class pg_class_tuple;
@@ -269,7 +269,7 @@ load_check_constraints(Oid parent_oid)
269269
}
270270

271271
/* TODO: check if some ranges overlap! */
272-
}
272+
}
273273
}
274274

275275

0 commit comments

Comments
 (0)