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

Commite50f52a

Browse files
committed
pgindent run.
1 parentc91ceec commite50f52a

File tree

446 files changed

+15012
-13433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+15012
-13433
lines changed

‎contrib/btree_gist/btree_gist.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,12 @@ gts_compress(PG_FUNCTION_ARGS)
299299
if (entry->leafkey)
300300
{
301301
TSKEY*r= (TSKEY*)palloc(sizeof(TSKEY));
302+
302303
retval=palloc(sizeof(GISTENTRY));
303304
r->lower=r->upper=*(Timestamp*) (entry->key);
304305
gistentryinit(*retval,PointerGetDatum(r),
305-
entry->rel,entry->page,
306-
entry->offset,sizeof(TSKEY), FALSE);
306+
entry->rel,entry->page,
307+
entry->offset,sizeof(TSKEY), FALSE);
307308
}
308309
else
309310
retval=entry;
@@ -398,17 +399,17 @@ gts_penalty(PG_FUNCTION_ARGS)
398399

399400
intr=DatumGetIntervalP(DirectFunctionCall2(
400401
timestamp_mi,
401-
TimestampGetDatumFast(newentry->upper),
402-
TimestampGetDatumFast(origentry->upper)));
402+
TimestampGetDatumFast(newentry->upper),
403+
TimestampGetDatumFast(origentry->upper)));
403404

404405
/* see interval_larger */
405406
*result=Max(intr->time+intr->month* (30.0*86400),0);
406407
pfree(intr);
407408

408409
intr=DatumGetIntervalP(DirectFunctionCall2(
409410
timestamp_mi,
410-
TimestampGetDatumFast(origentry->lower),
411-
TimestampGetDatumFast(newentry->lower)));
411+
TimestampGetDatumFast(origentry->lower),
412+
TimestampGetDatumFast(newentry->lower)));
412413

413414
/* see interval_larger */
414415
*result+=Max(intr->time+intr->month* (30.0*86400),0);
@@ -473,8 +474,8 @@ tskey_cmp(const void *a, const void *b)
473474
returnDatumGetInt32(
474475
DirectFunctionCall2(
475476
timestamp_cmp,
476-
TimestampGetDatumFast(((TSKEY*) (((RIX*)a)->r))->lower),
477-
TimestampGetDatumFast(((TSKEY*) (((RIX*)b)->r))->lower)
477+
TimestampGetDatumFast(((TSKEY*) (((RIX*)a)->r))->lower),
478+
TimestampGetDatumFast(((TSKEY*) (((RIX*)b)->r))->lower)
478479
)
479480
);
480481
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp