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
ac443d10
Commit
ac443d10
authored
Dec 28, 2015
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document brin_summarize_new_pages
Pointer out by Jeff Janes
parent
54aaafe9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
0 deletions
+62
-0
doc/src/sgml/brin.sgml
doc/src/sgml/brin.sgml
+20
-0
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+42
-0
No files found.
doc/src/sgml/brin.sgml
View file @
ac443d10
...
@@ -58,6 +58,26 @@
...
@@ -58,6 +58,26 @@
store more index entries), but at the same time the summary data stored can
store more index entries), but at the same time the summary data stored can
be more precise and more data blocks can be skipped during an index scan.
be more precise and more data blocks can be skipped during an index scan.
</para>
</para>
<sect2 id="brin-operation">
<title>Index Maintenance</title>
<para>
At the time of creation, all existing index pages are scanned and a
summary index tuple is created for each range, including the
possibly-incomplete range at the end.
As new pages are filled with data, page ranges that are already
summarized will cause the summary information to be updated with data
from the new tuples.
When a new page is created that does not fall within the last
summarized range, that range does not automatically acquire a summary
tuple; those tuples remain unsummarized until a summarization run is
invoked later, creating initial summaries.
This process can be invoked manually using the
<function>brin_summarize_new_pages(regclass)</function> function,
or automatically when <command>VACUUM</command> processes the table.
</para>
</sect2>
</sect1>
</sect1>
<sect1 id="brin-builtin-opclasses">
<sect1 id="brin-builtin-opclasses">
...
...
doc/src/sgml/func.sgml
View file @
ac443d10
...
@@ -17912,6 +17912,48 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
...
@@ -17912,6 +17912,48 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
</sect2>
</sect2>
<sect2
id=
"functions-admin-index"
>
<title>
Index Maintenance Functions
</title>
<indexterm>
<primary>
brin_summarize_new_values
</primary>
</indexterm>
<para>
<xref
linkend=
"functions-admin-index-table"
>
shows the functions
available for index maintenance tasks.
</para>
<table
id=
"functions-admin-index-table"
>
<title>
Index Maintenance Functions
</title>
<tgroup
cols=
"3"
>
<thead>
<row><entry>
Name
</entry>
<entry>
Return Type
</entry>
<entry>
Description
</entry></row>
</thead>
<tbody>
<row>
<entry>
<literal><function>
brin_summarize_new_values(
<parameter>
index_oid
</>
<type>
regclass
</>
)
</function></literal>
</entry>
<entry><type>
integer
</type></entry>
<entry>
summarize page ranges not already summarized
</entry>
</row>
</tbody>
</tgroup>
</table>
<para>
<function>
brin_summarize_new_values
</>
receives a BRIN index OID as
argument and inspects the index to find page ranges in the base table
that are not currently summarized by the index; for any such range
it creates a new summary index tuple by scanning the table pages.
It returns the number of new page range summaries that were inserted
into the index.
</para>
</sect2>
<sect2
id=
"functions-admin-genfile"
>
<sect2
id=
"functions-admin-genfile"
>
<title>
Generic File Access Functions
</title>
<title>
Generic File Access Functions
</title>
...
...
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