/*------------------------------------------------------------------------- * * heapam_handler.c * heap table access method code * * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * src/backend/access/heap/heapam_handler.c * * * NOTES * This files wires up the lower level heapam.c et routines with the * tableam abstraction. * *------------------------------------------------------------------------- */ #include "postgres.h" #include "access/tableam.h" #include "utils/builtins.h" static const TableAmRoutine heapam_methods; static const TableAmRoutine heapam_methods = { .type = T_TableAmRoutine, }; const TableAmRoutine * GetHeapamTableAmRoutine(void) { return &heapam_methods; } Datum heap_tableam_handler(PG_FUNCTION_ARGS) { PG_RETURN_POINTER(&heapam_methods); }