Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8d290c8e
Commit
8d290c8e
authored
Jan 17, 2016
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-pgindent a few files.
In preparation for landing index AM interface changes.
parent
57ce9acc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
src/backend/catalog/index.c
src/backend/catalog/index.c
+10
-10
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/costsize.c
+3
-3
src/include/access/gist_private.h
src/include/access/gist_private.h
+4
-4
No files found.
src/backend/catalog/index.c
View file @
8d290c8e
...
@@ -2381,8 +2381,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
...
@@ -2381,8 +2381,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
case
HEAPTUPLE_INSERT_IN_PROGRESS
:
case
HEAPTUPLE_INSERT_IN_PROGRESS
:
/*
/*
* In "anyvisible" mode, this tuple is visible and we
don't
* In "anyvisible" mode, this tuple is visible and we
* need any further checks.
*
don't
need any further checks.
*/
*/
if
(
anyvisible
)
if
(
anyvisible
)
{
{
...
@@ -2437,8 +2437,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
...
@@ -2437,8 +2437,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
/*
/*
* As with INSERT_IN_PROGRESS case, this is unexpected
* As with INSERT_IN_PROGRESS case, this is unexpected
* unless it's our own deletion or a system catalog;
* unless it's our own deletion or a system catalog;
but
*
but
in anyvisible mode, this tuple is visible.
* in anyvisible mode, this tuple is visible.
*/
*/
if
(
anyvisible
)
if
(
anyvisible
)
{
{
...
@@ -2892,9 +2892,9 @@ validate_index(Oid heapId, Oid indexId, Snapshot snapshot)
...
@@ -2892,9 +2892,9 @@ validate_index(Oid heapId, Oid indexId, Snapshot snapshot)
static
inline
int64
static
inline
int64
itemptr_encode
(
ItemPointer
itemptr
)
itemptr_encode
(
ItemPointer
itemptr
)
{
{
BlockNumber
block
=
ItemPointerGetBlockNumber
(
itemptr
);
BlockNumber
block
=
ItemPointerGetBlockNumber
(
itemptr
);
OffsetNumber
offset
=
ItemPointerGetOffsetNumber
(
itemptr
);
OffsetNumber
offset
=
ItemPointerGetOffsetNumber
(
itemptr
);
int64
encoded
;
int64
encoded
;
/*
/*
* Use the 16 least significant bits for the offset. 32 adjacent bits are
* Use the 16 least significant bits for the offset. 32 adjacent bits are
...
@@ -2913,8 +2913,8 @@ itemptr_encode(ItemPointer itemptr)
...
@@ -2913,8 +2913,8 @@ itemptr_encode(ItemPointer itemptr)
static
inline
void
static
inline
void
itemptr_decode
(
ItemPointer
itemptr
,
int64
encoded
)
itemptr_decode
(
ItemPointer
itemptr
,
int64
encoded
)
{
{
BlockNumber
block
=
(
BlockNumber
)
(
encoded
>>
16
);
BlockNumber
block
=
(
BlockNumber
)
(
encoded
>>
16
);
OffsetNumber
offset
=
(
OffsetNumber
)
(
encoded
&
0xFFFF
);
OffsetNumber
offset
=
(
OffsetNumber
)
(
encoded
&
0xFFFF
);
ItemPointerSet
(
itemptr
,
block
,
offset
);
ItemPointerSet
(
itemptr
,
block
,
offset
);
}
}
...
@@ -2960,7 +2960,7 @@ validate_index_heapscan(Relation heapRelation,
...
@@ -2960,7 +2960,7 @@ validate_index_heapscan(Relation heapRelation,
/* state variables for the merge */
/* state variables for the merge */
ItemPointer
indexcursor
=
NULL
;
ItemPointer
indexcursor
=
NULL
;
ItemPointerData
decoded
;
ItemPointerData
decoded
;
bool
tuplesort_empty
=
false
;
bool
tuplesort_empty
=
false
;
/*
/*
...
...
src/backend/optimizer/path/costsize.c
View file @
8d290c8e
...
@@ -228,9 +228,9 @@ cost_seqscan(Path *path, PlannerInfo *root,
...
@@ -228,9 +228,9 @@ cost_seqscan(Path *path, PlannerInfo *root,
/*
/*
* Primitive parallel cost model. Assume the leader will do half as much
* Primitive parallel cost model. Assume the leader will do half as much
* work as a regular worker, because it will also need to read the tuples
* work as a regular worker, because it will also need to read the tuples
* returned by the workers when they percolate up to the gather n
doe.
* returned by the workers when they percolate up to the gather n
ode. This
*
This is almost certainly not exactly the right way to model this, so
*
is almost certainly not exactly the right way to model this, so this
*
this
will probably need to be changed at some point...
* will probably need to be changed at some point...
*/
*/
if
(
nworkers
>
0
)
if
(
nworkers
>
0
)
run_cost
=
run_cost
/
(
nworkers
+
0
.
5
);
run_cost
=
run_cost
/
(
nworkers
+
0
.
5
);
...
...
src/include/access/gist_private.h
View file @
8d290c8e
...
@@ -122,10 +122,10 @@ typedef struct GISTSearchHeapItem
...
@@ -122,10 +122,10 @@ typedef struct GISTSearchHeapItem
{
{
ItemPointerData
heapPtr
;
ItemPointerData
heapPtr
;
bool
recheck
;
/* T if quals must be rechecked */
bool
recheck
;
/* T if quals must be rechecked */
bool
recheckDistances
;
/* T if distances must be rechecked */
bool
recheckDistances
;
/* T if distances must be rechecked */
IndexTuple
ftup
;
/* data fetched back from the index, used in
IndexTuple
ftup
;
/* data fetched back from the index, used in
* index-only scans */
* index-only scans */
OffsetNumber
offnum
;
/* track offset in page to mark tuple as
OffsetNumber
offnum
;
/* track offset in page to mark tuple as
* LP_DEAD */
* LP_DEAD */
}
GISTSearchHeapItem
;
}
GISTSearchHeapItem
;
...
@@ -165,10 +165,10 @@ typedef struct GISTScanOpaqueData
...
@@ -165,10 +165,10 @@ typedef struct GISTScanOpaqueData
double
*
distances
;
/* output area for gistindex_keytest */
double
*
distances
;
/* output area for gistindex_keytest */
/* info about killed items if any (killedItems is NULL if never used) */
/* info about killed items if any (killedItems is NULL if never used) */
OffsetNumber
*
killedItems
;
/* offset numbers of killed items */
OffsetNumber
*
killedItems
;
/* offset numbers of killed items */
int
numKilled
;
/* number of currently stored items */
int
numKilled
;
/* number of currently stored items */
BlockNumber
curBlkno
;
/* current number of block */
BlockNumber
curBlkno
;
/* current number of block */
GistNSN
curPageLSN
;
/* pos in the WAL stream when page was read */
GistNSN
curPageLSN
;
/* pos in the WAL stream when page was read */
/* In a non-ordered search, returnable heap items are stored here: */
/* In a non-ordered search, returnable heap items are stored here: */
GISTSearchHeapItem
pageData
[
BLCKSZ
/
sizeof
(
IndexTupleData
)];
GISTSearchHeapItem
pageData
[
BLCKSZ
/
sizeof
(
IndexTupleData
)];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment