PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/amapi.h"
#include "access/reloptions.h"
#include "catalog/index.h"
#include "commands/vacuum.h"
#include "nodes/pathnodes.h"
#include "utils/guc.h"
#include "utils/rel.h"
Go to the source code of this file.
Data Structures | |
struct | DummyIndexOptions |
Typedefs | |
typedef enum DummyAmEnum | DummyAmEnum |
typedef struct DummyIndexOptions | DummyIndexOptions |
Enumerations | |
enum | DummyAmEnum { DUMMY_AM_ENUM_ONE , DUMMY_AM_ENUM_TWO } |
Functions | |
PG_FUNCTION_INFO_V1 (dihandler) | |
static void | validate_string_option (const char *value) |
static void | create_reloptions_table (void) |
static IndexBuildResult * | dibuild (Relation heap, Relation index, IndexInfo *indexInfo) |
static void | dibuildempty (Relation index) |
static bool | diinsert (Relation index, Datum *values, bool *isnull, ItemPointer ht_ctid, Relation heapRel, IndexUniqueCheck checkUnique, bool indexUnchanged, IndexInfo *indexInfo) |
static IndexBulkDeleteResult * | dibulkdelete (IndexVacuumInfo *info, IndexBulkDeleteResult *stats, IndexBulkDeleteCallback callback, void *callback_state) |
static IndexBulkDeleteResult * | divacuumcleanup (IndexVacuumInfo *info, IndexBulkDeleteResult *stats) |
static void | dicostestimate (PlannerInfo *root, IndexPath *path, double loop_count, Cost *indexStartupCost, Cost *indexTotalCost, Selectivity *indexSelectivity, double *indexCorrelation, double *indexPages) |
static bytea * | dioptions (Datum reloptions, bool validate) |
static bool | divalidate (Oid opclassoid) |
static IndexScanDesc | dibeginscan (Relation r, int nkeys, int norderbys) |
static void | direscan (IndexScanDesc scan, ScanKey scankey, int nscankeys, ScanKey orderbys, int norderbys) |
static void | diendscan (IndexScanDesc scan) |
Datum | dihandler (PG_FUNCTION_ARGS) |
void | _PG_init (void) |
Variables | |
PG_MODULE_MAGIC | |
static relopt_parse_elt | di_relopt_tab [6] |
static relopt_kind | di_relopt_kind |
static relopt_enum_elt_def | dummyAmEnumValues [] |
typedef enum DummyAmEnum DummyAmEnum |
typedef struct DummyIndexOptions DummyIndexOptions |
enum DummyAmEnum |
void _PG_init | ( | void | ) |
|
static |
Definition at line 76 of file dummy_index_am.c.
References AccessExclusiveLock, add_bool_reloption(), add_enum_reloption(), add_int_reloption(), add_real_reloption(), add_reloption_kind(), add_string_reloption(), di_relopt_kind, di_relopt_tab, DUMMY_AM_ENUM_ONE, dummyAmEnumValues, relopt_parse_elt::offset, relopt_parse_elt::optname, relopt_parse_elt::opttype, RELOPT_TYPE_BOOL, RELOPT_TYPE_ENUM, RELOPT_TYPE_INT, RELOPT_TYPE_REAL, RELOPT_TYPE_STRING, and validate_string_option().
Referenced by _PG_init().
|
static |
Definition at line 246 of file dummy_index_am.c.
References RelationGetIndexScan().
Referenced by dihandler().
|
static |
Definition at line 139 of file dummy_index_am.c.
References IndexBuildResult::heap_tuples, IndexBuildResult::index_tuples, and palloc().
Referenced by dihandler().
|
static |
Definition at line 157 of file dummy_index_am.c.
Referenced by dihandler().
|
static |
|
static |
|
static |
Definition at line 269 of file dummy_index_am.c.
Referenced by dihandler().
Datum dihandler | ( | PG_FUNCTION_ARGS | ) |
Definition at line 279 of file dummy_index_am.c.
References IndexAmRoutine::ambeginscan, IndexAmRoutine::ambuild, IndexAmRoutine::ambuildempty, IndexAmRoutine::ambuildphasename, IndexAmRoutine::ambulkdelete, IndexAmRoutine::amcanbackward, IndexAmRoutine::amcanbuildparallel, IndexAmRoutine::amcaninclude, IndexAmRoutine::amcanmulticol, IndexAmRoutine::amcanorder, IndexAmRoutine::amcanorderbyop, IndexAmRoutine::amcanparallel, IndexAmRoutine::amcanreturn, IndexAmRoutine::amcanunique, IndexAmRoutine::amclusterable, IndexAmRoutine::amcostestimate, IndexAmRoutine::amendscan, IndexAmRoutine::amestimateparallelscan, IndexAmRoutine::amgetbitmap, IndexAmRoutine::amgettreeheight, IndexAmRoutine::amgettuple, IndexAmRoutine::aminitparallelscan, IndexAmRoutine::aminsert, IndexAmRoutine::amkeytype, IndexAmRoutine::ammarkpos, IndexAmRoutine::amoptionalkey, IndexAmRoutine::amoptions, IndexAmRoutine::amparallelrescan, IndexAmRoutine::amparallelvacuumoptions, IndexAmRoutine::ampredlocks, IndexAmRoutine::amproperty, IndexAmRoutine::amrescan, IndexAmRoutine::amrestrpos, IndexAmRoutine::amsearcharray, IndexAmRoutine::amsearchnulls, IndexAmRoutine::amstorage, IndexAmRoutine::amstrategies, IndexAmRoutine::amsummarizing, IndexAmRoutine::amsupport, IndexAmRoutine::amusemaintenanceworkmem, IndexAmRoutine::amvacuumcleanup, IndexAmRoutine::amvalidate, dibeginscan(), dibuild(), dibuildempty(), dibulkdelete(), dicostestimate(), diendscan(), diinsert(), dioptions(), direscan(), divacuumcleanup(), divalidate(), InvalidOid, makeNode, PG_RETURN_POINTER, and VACUUM_OPTION_NO_PARALLEL.
|
static |
Definition at line 166 of file dummy_index_am.c.
Referenced by dihandler().
Definition at line 224 of file dummy_index_am.c.
References build_reloptions(), di_relopt_kind, di_relopt_tab, and lengthof.
Referenced by dihandler().
|
static |
Definition at line 259 of file dummy_index_am.c.
Referenced by dihandler().
|
static |
Definition at line 194 of file dummy_index_am.c.
Referenced by dihandler().
Definition at line 236 of file dummy_index_am.c.
Referenced by dihandler().
PG_FUNCTION_INFO_V1 | ( | dihandler | ) |
|
static |
Definition at line 64 of file dummy_index_am.c.
References ereport, errmsg(), NOTICE, and value.
Referenced by create_reloptions_table().
|
static |
Definition at line 30 of file dummy_index_am.c.
Referenced by create_reloptions_table(), and dioptions().
|
static |
Definition at line 27 of file dummy_index_am.c.
Referenced by create_reloptions_table(), and dioptions().
|
static |
Definition at line 50 of file dummy_index_am.c.
Referenced by create_reloptions_table().
PG_MODULE_MAGIC |
Definition at line 24 of file dummy_index_am.c.