|
71 | 71 | <entry>backend memory contexts</entry> |
72 | 72 | </row> |
73 | 73 |
|
| 74 | + <row> |
| 75 | + <entry><link linkend="view-pg-buffer-lookup-table"><structname>pg_buffer_lookup_table</structname></link></entry> |
| 76 | + <entry>shared buffer lookup table</entry> |
| 77 | + </row> |
| 78 | + |
74 | 79 | <row> |
75 | 80 | <entry><link linkend="view-pg-config"><structname>pg_config</structname></link></entry> |
76 | 81 | <entry>compile-time configuration parameters</entry> |
@@ -896,6 +901,90 @@ AND c1.path[c2.level] = c2.path[c2.level]; |
896 | 901 | </para> |
897 | 902 | </sect1> |
898 | 903 |
|
| 904 | + <sect1 id="view-pg-buffer-lookup-table"> |
| 905 | + <title><structname>pg_buffer_lookup_table</structname></title> |
| 906 | + <indexterm> |
| 907 | + <primary>pg_buffer_lookup_table</primary> |
| 908 | + </indexterm> |
| 909 | + <para> |
| 910 | + The <structname>pg_buffer_lookup_table</structname> view exposes the current |
| 911 | + contents of the shared buffer lookup table. Each row represents an entry in |
| 912 | + the lookup table mapping a relation page to the ID of buffer in which it is |
| 913 | + cached. The shared buffer lookup table is locked for a short duration while |
| 914 | + reading so as to ensure consistency. This may affect performance if this view |
| 915 | + is queried very frequently. |
| 916 | + </para> |
| 917 | + <table id="pg-buffer-lookup-table-view" xreflabel="pg_buffer_lookup_table"> |
| 918 | + <title><structname>pg_buffer_lookup_table</structname> View</title> |
| 919 | + <tgroup cols="1"> |
| 920 | + <thead> |
| 921 | + <row> |
| 922 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 923 | + Column Type |
| 924 | + </para> |
| 925 | + <para> |
| 926 | + Description |
| 927 | + </para></entry> |
| 928 | + </row> |
| 929 | + </thead> |
| 930 | + <tbody> |
| 931 | + <row> |
| 932 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 933 | + <structfield>tablespace</structfield> <type>oid</type> |
| 934 | + </para> |
| 935 | + <para> |
| 936 | + OID of the tablespace containing the relation |
| 937 | + </para></entry> |
| 938 | + </row> |
| 939 | + <row> |
| 940 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 941 | + <structfield>database</structfield> <type>oid</type> |
| 942 | + </para> |
| 943 | + <para> |
| 944 | + OID of the database containing the relation (zero for shared relations) |
| 945 | + </para></entry> |
| 946 | + </row> |
| 947 | + <row> |
| 948 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 949 | + <structfield>relfilenode</structfield> <type>oid</type> |
| 950 | + </para> |
| 951 | + <para> |
| 952 | + relfilenode identifying the relation |
| 953 | + </para></entry> |
| 954 | + </row> |
| 955 | + <row> |
| 956 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 957 | + <structfield>forknum</structfield> <type>int2</type> |
| 958 | + </para> |
| 959 | + <para> |
| 960 | + Fork number within the relation (see <xref linkend="storage-file-layout"/>) |
| 961 | + </para></entry> |
| 962 | + </row> |
| 963 | + <row> |
| 964 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 965 | + <structfield>blocknum</structfield> <type>int8</type> |
| 966 | + </para> |
| 967 | + <para> |
| 968 | + Block number within the relation |
| 969 | + </para></entry> |
| 970 | + </row> |
| 971 | + <row> |
| 972 | + <entry role="catalog_table_entry"><para role="column_definition"> |
| 973 | + <structfield>bufferid</structfield> <type>int4</type> |
| 974 | + </para> |
| 975 | + <para> |
| 976 | + ID of the buffer caching the page |
| 977 | + </para></entry> |
| 978 | + </row> |
| 979 | + </tbody> |
| 980 | + </tgroup> |
| 981 | + </table> |
| 982 | + <para> |
| 983 | + Access to this view is restricted to members of the |
| 984 | + <literal>pg_read_all_stats</literal> role by default. |
| 985 | + </para> |
| 986 | + </sect1> |
| 987 | + |
899 | 988 | <sect1 id="view-pg-config"> |
900 | 989 | <title><structname>pg_config</structname></title> |
901 | 990 |
|
|
0 commit comments