|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.196 2009/02/07 19:27:25 momjian Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.197 2009/02/09 20:57:59 alvherre Exp $ --> |
2 | 2 | <!--
|
3 | 3 | Documentation of the system catalogs, directed toward PostgreSQL developers
|
4 | 4 | -->
|
|
88 | 88 | <entry>authorization identifier membership relationships</entry>
|
89 | 89 | </row>
|
90 | 90 |
|
91 |
| - <row> |
92 |
| - <entry><link linkend="catalog-pg-autovacuum"><structname>pg_autovacuum</structname></link></entry> |
93 |
| - <entry>per-relation autovacuum configuration parameters</entry> |
94 |
| - </row> |
95 |
| - |
96 | 91 | <row>
|
97 | 92 | <entry><link linkend="catalog-pg-cast"><structname>pg_cast</structname></link></entry>
|
98 | 93 | <entry>casts (data type conversions)</entry>
|
|
1256 | 1251 | </sect1>
|
1257 | 1252 |
|
1258 | 1253 |
|
1259 |
| - <sect1 id="catalog-pg-autovacuum"> |
1260 |
| - <title><structname>pg_autovacuum</structname></title> |
1261 |
| - |
1262 |
| - <indexterm zone="catalog-pg-autovacuum"> |
1263 |
| - <primary>pg_autovacuum</primary> |
1264 |
| - </indexterm> |
1265 |
| - |
1266 |
| - <indexterm zone="catalog-pg-autovacuum"> |
1267 |
| - <primary>autovacuum</primary> |
1268 |
| - <secondary>table-specific configuration</secondary> |
1269 |
| - </indexterm> |
1270 |
| - |
1271 |
| - <para> |
1272 |
| - The catalog <structname>pg_autovacuum</structname> stores optional |
1273 |
| - per-relation configuration parameters for the autovacuum daemon. |
1274 |
| - If there is an entry here for a particular relation, the given |
1275 |
| - parameters will be used for autovacuuming that table. If no entry |
1276 |
| - is present, the system-wide defaults will be used. For more information |
1277 |
| - about the autovacuum daemon, see <xref linkend="autovacuum">. |
1278 |
| - </para> |
1279 |
| - |
1280 |
| - <note> |
1281 |
| - <para> |
1282 |
| - It is likely that <structname>pg_autovacuum</structname> will disappear |
1283 |
| - in a future release, with the information instead being kept in |
1284 |
| - <structname>pg_class</>.<structfield>reloptions</> entries. |
1285 |
| - </para> |
1286 |
| - </note> |
1287 |
| - |
1288 |
| - <table> |
1289 |
| - <title><structname>pg_autovacuum</> Columns</title> |
1290 |
| - |
1291 |
| - <tgroup cols="4"> |
1292 |
| - <thead> |
1293 |
| - <row> |
1294 |
| - <entry>Name</entry> |
1295 |
| - <entry>Type</entry> |
1296 |
| - <entry>References</entry> |
1297 |
| - <entry>Description</entry> |
1298 |
| - </row> |
1299 |
| - </thead> |
1300 |
| - |
1301 |
| - <tbody> |
1302 |
| - <row> |
1303 |
| - <entry><structfield>vacrelid</structfield></entry> |
1304 |
| - <entry><type>oid</type></entry> |
1305 |
| - <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry> |
1306 |
| - <entry>The table this entry is for</entry> |
1307 |
| - </row> |
1308 |
| - |
1309 |
| - <row> |
1310 |
| - <entry><structfield>enabled</structfield></entry> |
1311 |
| - <entry><type>bool</type></entry> |
1312 |
| - <entry></entry> |
1313 |
| - <entry>If false, this table will not be autovacuumed, except |
1314 |
| - to prevent transaction ID wraparound</entry> |
1315 |
| - </row> |
1316 |
| - |
1317 |
| - <row> |
1318 |
| - <entry><structfield>vac_base_thresh</structfield></entry> |
1319 |
| - <entry><type>integer</type></entry> |
1320 |
| - <entry></entry> |
1321 |
| - <entry>Minimum number of modified tuples before vacuum</entry> |
1322 |
| - </row> |
1323 |
| - |
1324 |
| - <row> |
1325 |
| - <entry><structfield>vac_scale_factor</structfield></entry> |
1326 |
| - <entry><type>float4</type></entry> |
1327 |
| - <entry></entry> |
1328 |
| - <entry>Multiplier for <structfield>reltuples</> to add to |
1329 |
| - <structfield>vac_base_thresh</></entry> |
1330 |
| - </row> |
1331 |
| - |
1332 |
| - <row> |
1333 |
| - <entry><structfield>anl_base_thresh</structfield></entry> |
1334 |
| - <entry><type>integer</type></entry> |
1335 |
| - <entry></entry> |
1336 |
| - <entry>Minimum number of modified tuples before analyze</entry> |
1337 |
| - </row> |
1338 |
| - |
1339 |
| - <row> |
1340 |
| - <entry><structfield>anl_scale_factor</structfield></entry> |
1341 |
| - <entry><type>float4</type></entry> |
1342 |
| - <entry></entry> |
1343 |
| - <entry>Multiplier for <structfield>reltuples</> to add to |
1344 |
| - <structfield>anl_base_thresh</></entry> |
1345 |
| - </row> |
1346 |
| - |
1347 |
| - <row> |
1348 |
| - <entry><structfield>vac_cost_delay</structfield></entry> |
1349 |
| - <entry><type>integer</type></entry> |
1350 |
| - <entry></entry> |
1351 |
| - <entry>Custom <varname>vacuum_cost_delay</> parameter</entry> |
1352 |
| - </row> |
1353 |
| - |
1354 |
| - <row> |
1355 |
| - <entry><structfield>vac_cost_limit</structfield></entry> |
1356 |
| - <entry><type>integer</type></entry> |
1357 |
| - <entry></entry> |
1358 |
| - <entry>Custom <varname>vacuum_cost_limit</> parameter</entry> |
1359 |
| - </row> |
1360 |
| - |
1361 |
| - <row> |
1362 |
| - <entry><structfield>freeze_min_age</structfield></entry> |
1363 |
| - <entry><type>integer</type></entry> |
1364 |
| - <entry></entry> |
1365 |
| - <entry>Custom <varname>vacuum_freeze_min_age</> parameter</entry> |
1366 |
| - </row> |
1367 |
| - |
1368 |
| - <row> |
1369 |
| - <entry><structfield>freeze_max_age</structfield></entry> |
1370 |
| - <entry><type>integer</type></entry> |
1371 |
| - <entry></entry> |
1372 |
| - <entry>Custom <varname>autovacuum_freeze_max_age</> parameter</entry> |
1373 |
| - </row> |
1374 |
| - |
1375 |
| - <row> |
1376 |
| - <entry><structfield>freeze_table_age</structfield></entry> |
1377 |
| - <entry><type>integer</type></entry> |
1378 |
| - <entry></entry> |
1379 |
| - <entry>Custom <varname>vacuum_freeze_table_age</> parameter</entry> |
1380 |
| - </row> |
1381 |
| - </tbody> |
1382 |
| - </tgroup> |
1383 |
| - </table> |
1384 |
| - |
1385 |
| - <para> |
1386 |
| - The autovacuum daemon will initiate a <command>VACUUM</> operation |
1387 |
| - on a particular table when the number of updated or deleted tuples |
1388 |
| - exceeds <structfield>vac_base_thresh</structfield> plus |
1389 |
| - <structfield>vac_scale_factor</structfield> times the number of |
1390 |
| - live tuples currently estimated to be in the relation. |
1391 |
| - Similarly, it will initiate an <command>ANALYZE</> operation |
1392 |
| - when the number of inserted, updated or deleted tuples |
1393 |
| - exceeds <structfield>anl_base_thresh</structfield> plus |
1394 |
| - <structfield>anl_scale_factor</structfield> times the number of |
1395 |
| - live tuples currently estimated to be in the relation. |
1396 |
| - </para> |
1397 |
| - |
1398 |
| - <para> |
1399 |
| - Also, the autovacuum daemon will perform a <command>VACUUM</> operation |
1400 |
| - to prevent transaction ID wraparound if the table's |
1401 |
| - <structname>pg_class</>.<structfield>relfrozenxid</> field attains an age |
1402 |
| - of more than <structfield>freeze_max_age</> transactions, whether the table |
1403 |
| - has been changed or not, even if |
1404 |
| - <structname>pg_autovacuum</>.<structfield>enabled</> is set to |
1405 |
| - <literal>false</> for it. The system will launch autovacuum to perform |
1406 |
| - such <command>VACUUM</>s even if autovacuum is otherwise disabled. |
1407 |
| - See <xref linkend="vacuum-for-wraparound"> for more about wraparound |
1408 |
| - prevention. |
1409 |
| - </para> |
1410 |
| - |
1411 |
| - <para> |
1412 |
| - Any of the numerical fields can contain <literal>-1</> (or indeed |
1413 |
| - any negative value) to indicate that the system-wide default should |
1414 |
| - be used for this particular value. Observe that the |
1415 |
| - <structfield>vac_cost_delay</> variable inherits its default value from the |
1416 |
| - <xref linkend="guc-autovacuum-vacuum-cost-delay"> configuration parameter, |
1417 |
| - or from <xref linkend="guc-vacuum-cost-delay"> if the former is set to a |
1418 |
| - negative value. The same applies to <structfield>vac_cost_limit</>. |
1419 |
| - Also, autovacuum will ignore attempts to set a per-table |
1420 |
| - <structfield>freeze_max_age</> larger than the system-wide setting (it can |
1421 |
| - only be set smaller), and the <structfield>freeze_min_age</> value will be |
1422 |
| - limited to half the system-wide <xref |
1423 |
| - linkend="guc-autovacuum-freeze-max-age"> setting. Note that while you |
1424 |
| - can set <structfield>freeze_max_age</> very small, or even zero, this |
1425 |
| - is usually unwise since it will force frequent vacuuming. |
1426 |
| - </para> |
1427 |
| - |
1428 |
| - </sect1> |
1429 |
| - |
1430 |
| - |
1431 | 1254 | <sect1 id="catalog-pg-cast">
|
1432 | 1255 | <title><structname>pg_cast</structname></title>
|
1433 | 1256 |
|
|
0 commit comments