PostgreSQL Source Code  git master
progress.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PROGRESS_VACUUM_PHASE   0
 
#define PROGRESS_VACUUM_TOTAL_HEAP_BLKS   1
 
#define PROGRESS_VACUUM_HEAP_BLKS_SCANNED   2
 
#define PROGRESS_VACUUM_HEAP_BLKS_VACUUMED   3
 
#define PROGRESS_VACUUM_NUM_INDEX_VACUUMS   4
 
#define PROGRESS_VACUUM_MAX_DEAD_TUPLES   5
 
#define PROGRESS_VACUUM_NUM_DEAD_TUPLES   6
 
#define PROGRESS_VACUUM_PHASE_SCAN_HEAP   1
 
#define PROGRESS_VACUUM_PHASE_VACUUM_INDEX   2
 
#define PROGRESS_VACUUM_PHASE_VACUUM_HEAP   3
 
#define PROGRESS_VACUUM_PHASE_INDEX_CLEANUP   4
 
#define PROGRESS_VACUUM_PHASE_TRUNCATE   5
 
#define PROGRESS_VACUUM_PHASE_FINAL_CLEANUP   6
 
#define PROGRESS_CLUSTER_COMMAND   0
 
#define PROGRESS_CLUSTER_PHASE   1
 
#define PROGRESS_CLUSTER_INDEX_RELID   2
 
#define PROGRESS_CLUSTER_HEAP_TUPLES_SCANNED   3
 
#define PROGRESS_CLUSTER_HEAP_TUPLES_WRITTEN   4
 
#define PROGRESS_CLUSTER_TOTAL_HEAP_BLKS   5
 
#define PROGRESS_CLUSTER_HEAP_BLKS_SCANNED   6
 
#define PROGRESS_CLUSTER_INDEX_REBUILD_COUNT   7
 
#define PROGRESS_CLUSTER_PHASE_SEQ_SCAN_HEAP   1
 
#define PROGRESS_CLUSTER_PHASE_INDEX_SCAN_HEAP   2
 
#define PROGRESS_CLUSTER_PHASE_SORT_TUPLES   3
 
#define PROGRESS_CLUSTER_PHASE_WRITE_NEW_HEAP   4
 
#define PROGRESS_CLUSTER_PHASE_SWAP_REL_FILES   5
 
#define PROGRESS_CLUSTER_PHASE_REBUILD_INDEX   6
 
#define PROGRESS_CLUSTER_PHASE_FINAL_CLEANUP   7
 
#define PROGRESS_CLUSTER_COMMAND_CLUSTER   1
 
#define PROGRESS_CLUSTER_COMMAND_VACUUM_FULL   2
 
#define PROGRESS_CREATEIDX_COMMAND   0
 
#define PROGRESS_CREATEIDX_INDEX_OID   6
 
#define PROGRESS_CREATEIDX_ACCESS_METHOD_OID   8
 
#define PROGRESS_CREATEIDX_PHASE   9 /* AM-agnostic phase # */
 
#define PROGRESS_CREATEIDX_SUBPHASE   10 /* phase # filled by AM */
 
#define PROGRESS_CREATEIDX_TUPLES_TOTAL   11
 
#define PROGRESS_CREATEIDX_TUPLES_DONE   12
 
#define PROGRESS_CREATEIDX_PARTITIONS_TOTAL   13
 
#define PROGRESS_CREATEIDX_PARTITIONS_DONE   14
 
#define PROGRESS_CREATEIDX_PHASE_WAIT_1   1
 
#define PROGRESS_CREATEIDX_PHASE_BUILD   2
 
#define PROGRESS_CREATEIDX_PHASE_WAIT_2   3
 
#define PROGRESS_CREATEIDX_PHASE_VALIDATE_IDXSCAN   4
 
#define PROGRESS_CREATEIDX_PHASE_VALIDATE_SORT   5
 
#define PROGRESS_CREATEIDX_PHASE_VALIDATE_TABLESCAN   6
 
#define PROGRESS_CREATEIDX_PHASE_WAIT_3   7
 
#define PROGRESS_CREATEIDX_PHASE_WAIT_4   8
 
#define PROGRESS_CREATEIDX_PHASE_WAIT_5   9
 
#define PROGRESS_CREATEIDX_SUBPHASE_INITIALIZE   1
 
#define PROGRESS_CREATEIDX_COMMAND_CREATE   1
 
#define PROGRESS_CREATEIDX_COMMAND_CREATE_CONCURRENTLY   2
 
#define PROGRESS_CREATEIDX_COMMAND_REINDEX   3
 
#define PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY   4
 
#define PROGRESS_WAITFOR_TOTAL   3
 
#define PROGRESS_WAITFOR_DONE   4
 
#define PROGRESS_WAITFOR_CURRENT_PID   5
 
#define PROGRESS_SCAN_BLOCKS_TOTAL   15
 
#define PROGRESS_SCAN_BLOCKS_DONE   16
 

Macro Definition Documentation

◆ PROGRESS_CLUSTER_COMMAND

#define PROGRESS_CLUSTER_COMMAND   0

Definition at line 38 of file progress.h.

Referenced by cluster_rel().

◆ PROGRESS_CLUSTER_COMMAND_CLUSTER

#define PROGRESS_CLUSTER_COMMAND_CLUSTER   1

Definition at line 57 of file progress.h.

Referenced by cluster_rel().

◆ PROGRESS_CLUSTER_COMMAND_VACUUM_FULL

#define PROGRESS_CLUSTER_COMMAND_VACUUM_FULL   2

Definition at line 58 of file progress.h.

Referenced by cluster_rel().

◆ PROGRESS_CLUSTER_HEAP_BLKS_SCANNED

#define PROGRESS_CLUSTER_HEAP_BLKS_SCANNED   6

Definition at line 44 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_HEAP_TUPLES_SCANNED

#define PROGRESS_CLUSTER_HEAP_TUPLES_SCANNED   3

Definition at line 41 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_HEAP_TUPLES_WRITTEN

#define PROGRESS_CLUSTER_HEAP_TUPLES_WRITTEN   4

Definition at line 42 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_INDEX_REBUILD_COUNT

#define PROGRESS_CLUSTER_INDEX_REBUILD_COUNT   7

Definition at line 45 of file progress.h.

Referenced by reindex_relation().

◆ PROGRESS_CLUSTER_INDEX_RELID

#define PROGRESS_CLUSTER_INDEX_RELID   2

Definition at line 40 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_PHASE

#define PROGRESS_CLUSTER_PHASE   1

Definition at line 39 of file progress.h.

Referenced by finish_heap_swap(), and heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_PHASE_FINAL_CLEANUP

#define PROGRESS_CLUSTER_PHASE_FINAL_CLEANUP   7

Definition at line 54 of file progress.h.

Referenced by finish_heap_swap().

◆ PROGRESS_CLUSTER_PHASE_INDEX_SCAN_HEAP

#define PROGRESS_CLUSTER_PHASE_INDEX_SCAN_HEAP   2

Definition at line 49 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_PHASE_REBUILD_INDEX

#define PROGRESS_CLUSTER_PHASE_REBUILD_INDEX   6

Definition at line 53 of file progress.h.

Referenced by finish_heap_swap().

◆ PROGRESS_CLUSTER_PHASE_SEQ_SCAN_HEAP

#define PROGRESS_CLUSTER_PHASE_SEQ_SCAN_HEAP   1

Definition at line 48 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_PHASE_SORT_TUPLES

#define PROGRESS_CLUSTER_PHASE_SORT_TUPLES   3

Definition at line 50 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_PHASE_SWAP_REL_FILES

#define PROGRESS_CLUSTER_PHASE_SWAP_REL_FILES   5

Definition at line 52 of file progress.h.

Referenced by finish_heap_swap().

◆ PROGRESS_CLUSTER_PHASE_WRITE_NEW_HEAP

#define PROGRESS_CLUSTER_PHASE_WRITE_NEW_HEAP   4

Definition at line 51 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CLUSTER_TOTAL_HEAP_BLKS

#define PROGRESS_CLUSTER_TOTAL_HEAP_BLKS   5

Definition at line 43 of file progress.h.

Referenced by heapam_relation_copy_for_cluster().

◆ PROGRESS_CREATEIDX_ACCESS_METHOD_OID

#define PROGRESS_CREATEIDX_ACCESS_METHOD_OID   8

Definition at line 64 of file progress.h.

Referenced by DefineIndex(), reindex_index(), and ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_COMMAND

#define PROGRESS_CREATEIDX_COMMAND   0

Definition at line 62 of file progress.h.

Referenced by DefineIndex(), reindex_index(), and ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_COMMAND_CREATE

#define PROGRESS_CREATEIDX_COMMAND_CREATE   1

Definition at line 91 of file progress.h.

Referenced by DefineIndex().

◆ PROGRESS_CREATEIDX_COMMAND_CREATE_CONCURRENTLY

#define PROGRESS_CREATEIDX_COMMAND_CREATE_CONCURRENTLY   2

Definition at line 92 of file progress.h.

Referenced by DefineIndex().

◆ PROGRESS_CREATEIDX_COMMAND_REINDEX

#define PROGRESS_CREATEIDX_COMMAND_REINDEX   3

Definition at line 93 of file progress.h.

Referenced by reindex_index().

◆ PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY

#define PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY   4

Definition at line 94 of file progress.h.

Referenced by ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_INDEX_OID

#define PROGRESS_CREATEIDX_INDEX_OID   6

Definition at line 63 of file progress.h.

Referenced by DefineIndex(), reindex_index(), and ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_PARTITIONS_DONE

#define PROGRESS_CREATEIDX_PARTITIONS_DONE   14

Definition at line 70 of file progress.h.

Referenced by DefineIndex().

◆ PROGRESS_CREATEIDX_PARTITIONS_TOTAL

#define PROGRESS_CREATEIDX_PARTITIONS_TOTAL   13

Definition at line 69 of file progress.h.

Referenced by DefineIndex().

◆ PROGRESS_CREATEIDX_PHASE

#define PROGRESS_CREATEIDX_PHASE   9 /* AM-agnostic phase # */

Definition at line 65 of file progress.h.

Referenced by DefineIndex(), index_build(), ReindexRelationConcurrently(), and validate_index().

◆ PROGRESS_CREATEIDX_PHASE_BUILD

#define PROGRESS_CREATEIDX_PHASE_BUILD   2

Definition at line 75 of file progress.h.

Referenced by index_build().

◆ PROGRESS_CREATEIDX_PHASE_VALIDATE_IDXSCAN

#define PROGRESS_CREATEIDX_PHASE_VALIDATE_IDXSCAN   4

Definition at line 77 of file progress.h.

Referenced by validate_index().

◆ PROGRESS_CREATEIDX_PHASE_VALIDATE_SORT

#define PROGRESS_CREATEIDX_PHASE_VALIDATE_SORT   5

Definition at line 78 of file progress.h.

Referenced by validate_index().

◆ PROGRESS_CREATEIDX_PHASE_VALIDATE_TABLESCAN

#define PROGRESS_CREATEIDX_PHASE_VALIDATE_TABLESCAN   6

Definition at line 79 of file progress.h.

Referenced by validate_index().

◆ PROGRESS_CREATEIDX_PHASE_WAIT_1

#define PROGRESS_CREATEIDX_PHASE_WAIT_1   1

Definition at line 74 of file progress.h.

Referenced by DefineIndex(), and ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_PHASE_WAIT_2

#define PROGRESS_CREATEIDX_PHASE_WAIT_2   3

Definition at line 76 of file progress.h.

Referenced by DefineIndex(), and ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_PHASE_WAIT_3

#define PROGRESS_CREATEIDX_PHASE_WAIT_3   7

Definition at line 80 of file progress.h.

Referenced by DefineIndex(), and ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_PHASE_WAIT_4

#define PROGRESS_CREATEIDX_PHASE_WAIT_4   8

Definition at line 81 of file progress.h.

Referenced by ReindexRelationConcurrently().

◆ PROGRESS_CREATEIDX_PHASE_WAIT_5

#define PROGRESS_CREATEIDX_PHASE_WAIT_5   9

Definition at line 82 of file progress.h.

◆ PROGRESS_CREATEIDX_SUBPHASE

#define PROGRESS_CREATEIDX_SUBPHASE   10 /* phase # filled by AM */

Definition at line 66 of file progress.h.

Referenced by _bt_leafbuild(), _bt_spools_heapscan(), and index_build().

◆ PROGRESS_CREATEIDX_SUBPHASE_INITIALIZE

#define PROGRESS_CREATEIDX_SUBPHASE_INITIALIZE   1

Definition at line 87 of file progress.h.

Referenced by btbuildphasename(), and index_build().

◆ PROGRESS_CREATEIDX_TUPLES_DONE

#define PROGRESS_CREATEIDX_TUPLES_DONE   12

Definition at line 68 of file progress.h.

Referenced by _bt_load(), _h_indexbuild(), index_build(), and validate_index().

◆ PROGRESS_CREATEIDX_TUPLES_TOTAL

#define PROGRESS_CREATEIDX_TUPLES_TOTAL   11

Definition at line 67 of file progress.h.

Referenced by _bt_spools_heapscan(), hashbuild(), index_build(), and validate_index().

◆ PROGRESS_SCAN_BLOCKS_DONE

#define PROGRESS_SCAN_BLOCKS_DONE   16

◆ PROGRESS_SCAN_BLOCKS_TOTAL

#define PROGRESS_SCAN_BLOCKS_TOTAL   15

◆ PROGRESS_VACUUM_HEAP_BLKS_SCANNED

#define PROGRESS_VACUUM_HEAP_BLKS_SCANNED   2

Definition at line 23 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_HEAP_BLKS_VACUUMED

#define PROGRESS_VACUUM_HEAP_BLKS_VACUUMED   3

Definition at line 24 of file progress.h.

Referenced by lazy_scan_heap(), and lazy_vacuum_page().

◆ PROGRESS_VACUUM_MAX_DEAD_TUPLES

#define PROGRESS_VACUUM_MAX_DEAD_TUPLES   5

Definition at line 26 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_NUM_DEAD_TUPLES

#define PROGRESS_VACUUM_NUM_DEAD_TUPLES   6

Definition at line 27 of file progress.h.

Referenced by lazy_record_dead_tuple().

◆ PROGRESS_VACUUM_NUM_INDEX_VACUUMS

#define PROGRESS_VACUUM_NUM_INDEX_VACUUMS   4

Definition at line 25 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_PHASE

#define PROGRESS_VACUUM_PHASE   0

Definition at line 21 of file progress.h.

Referenced by heap_vacuum_rel(), lazy_scan_heap(), and lazy_truncate_heap().

◆ PROGRESS_VACUUM_PHASE_FINAL_CLEANUP

#define PROGRESS_VACUUM_PHASE_FINAL_CLEANUP   6

Definition at line 35 of file progress.h.

Referenced by heap_vacuum_rel().

◆ PROGRESS_VACUUM_PHASE_INDEX_CLEANUP

#define PROGRESS_VACUUM_PHASE_INDEX_CLEANUP   4

Definition at line 33 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_PHASE_SCAN_HEAP

#define PROGRESS_VACUUM_PHASE_SCAN_HEAP   1

Definition at line 30 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_PHASE_TRUNCATE

#define PROGRESS_VACUUM_PHASE_TRUNCATE   5

Definition at line 34 of file progress.h.

Referenced by lazy_truncate_heap().

◆ PROGRESS_VACUUM_PHASE_VACUUM_HEAP

#define PROGRESS_VACUUM_PHASE_VACUUM_HEAP   3

Definition at line 32 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_PHASE_VACUUM_INDEX

#define PROGRESS_VACUUM_PHASE_VACUUM_INDEX   2

Definition at line 31 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_VACUUM_TOTAL_HEAP_BLKS

#define PROGRESS_VACUUM_TOTAL_HEAP_BLKS   1

Definition at line 22 of file progress.h.

Referenced by lazy_scan_heap().

◆ PROGRESS_WAITFOR_CURRENT_PID

#define PROGRESS_WAITFOR_CURRENT_PID   5

Definition at line 99 of file progress.h.

Referenced by WaitForLockersMultiple(), and WaitForOlderSnapshots().

◆ PROGRESS_WAITFOR_DONE

#define PROGRESS_WAITFOR_DONE   4

Definition at line 98 of file progress.h.

Referenced by WaitForLockersMultiple(), and WaitForOlderSnapshots().

◆ PROGRESS_WAITFOR_TOTAL

#define PROGRESS_WAITFOR_TOTAL   3

Definition at line 97 of file progress.h.

Referenced by WaitForLockersMultiple(), and WaitForOlderSnapshots().