|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | vacuumingOptions |
Macros | |
| #define | ANALYZE_NO_STAGE -1 |
| #define | ANALYZE_NUM_STAGES 3 |
| #define | OBJFILTER_ALL_DBS 0x01 /* --all */ |
| #define | OBJFILTER_DATABASE 0x02 /* --dbname */ |
| #define | OBJFILTER_TABLE 0x04 /* --table */ |
| #define | OBJFILTER_SCHEMA 0x08 /* --schema */ |
| #define | OBJFILTER_SCHEMA_EXCLUDE 0x10 /* --exclude-schema */ |
Typedefs | |
| typedef struct vacuumingOptions | vacuumingOptions |
Enumerations | |
| enum | RunMode { MODE_VACUUM , MODE_ANALYZE , MODE_ANALYZE_IN_STAGES } |
Functions | |
| int | vacuuming_main (ConnParams *cparams, const char *dbname, const char *maintenance_db, vacuumingOptions *vacopts, SimpleStringList *objects, unsigned int tbl_count, int concurrentCons, const char *progname, bool echo, bool quiet) |
| char * | escape_quotes (const char *src) |
| #define ANALYZE_NO_STAGE -1 |
Definition at line 28 of file vacuuming.h.
| #define ANALYZE_NUM_STAGES 3 |
Definition at line 29 of file vacuuming.h.
| #define OBJFILTER_ALL_DBS 0x01 /* --all */ |
Definition at line 57 of file vacuuming.h.
| #define OBJFILTER_DATABASE 0x02 /* --dbname */ |
Definition at line 58 of file vacuuming.h.
| #define OBJFILTER_SCHEMA 0x08 /* --schema */ |
Definition at line 60 of file vacuuming.h.
| #define OBJFILTER_SCHEMA_EXCLUDE 0x10 /* --exclude-schema */ |
Definition at line 61 of file vacuuming.h.
| #define OBJFILTER_TABLE 0x04 /* --table */ |
Definition at line 59 of file vacuuming.h.
| typedef struct vacuumingOptions vacuumingOptions |
| enum RunMode |
| Enumerator | |
|---|---|
| MODE_VACUUM | |
| MODE_ANALYZE | |
| MODE_ANALYZE_IN_STAGES | |
Definition at line 20 of file vacuuming.h.
| char * escape_quotes | ( | const char * | src | ) |
Definition at line 1034 of file vacuuming.c.
References escape_single_quotes_ascii(), and pg_fatal.
| int vacuuming_main | ( | ConnParams * | cparams, |
| const char * | dbname, | ||
| const char * | maintenance_db, | ||
| vacuumingOptions * | vacopts, | ||
| SimpleStringList * | objects, | ||
| unsigned int | tbl_count, | ||
| int | concurrentCons, | ||
| const char * | progname, | ||
| bool | echo, | ||
| bool | quiet | ||
| ) |
Definition at line 55 of file vacuuming.c.
References ANALYZE_NO_STAGE, ANALYZE_NUM_STAGES, dbname, _connParams::dbname, EXIT_SUCCESS, free_retrieved_objects(), get_user_name_or_exit(), vacuumingOptions::missing_stats_only, vacuumingOptions::mode, MODE_ANALYZE_IN_STAGES, vacuumingOptions::objfilter, OBJFILTER_ALL_DBS, progname, setup_cancel_handler(), vacuum_all_databases(), and vacuum_one_database().
Referenced by main().