Go to the source code of this file.
Defines |
#define | DECLARE_TOAST(name, toastoid, indexoid) extern int no_such_variable |
#define | PgShdescriptionToastTable 2846 |
#define | PgShdescriptionToastIndex 2847 |
#define | PgDbRoleSettingToastTable 2966 |
#define | PgDbRoleSettingToastIndex 2967 |
Functions |
void | AlterTableCreateToastTable (Oid relOid, Datum reloptions) |
void | BootstrapToastTable (char *relName, Oid toastOid, Oid toastIndexOid) |
| DECLARE_TOAST (pg_attrdef, 2830, 2831) |
| DECLARE_TOAST (pg_constraint, 2832, 2833) |
| DECLARE_TOAST (pg_description, 2834, 2835) |
| DECLARE_TOAST (pg_proc, 2836, 2837) |
| DECLARE_TOAST (pg_rewrite, 2838, 2839) |
| DECLARE_TOAST (pg_seclabel, 3598, 3599) |
| DECLARE_TOAST (pg_statistic, 2840, 2841) |
| DECLARE_TOAST (pg_trigger, 2336, 2337) |
| DECLARE_TOAST (pg_shdescription, 2846, 2847) |
| DECLARE_TOAST (pg_db_role_setting, 2966, 2967) |
Define Documentation
#define DECLARE_TOAST |
( |
|
name, |
|
|
|
toastoid, |
|
|
|
indexoid | |
|
) |
| | extern int no_such_variable |
#define PgDbRoleSettingToastIndex 2967 |
#define PgDbRoleSettingToastTable 2966 |
#define PgShdescriptionToastIndex 2847 |
#define PgShdescriptionToastTable 2846 |
Function Documentation
void AlterTableCreateToastTable |
( |
Oid |
relOid, |
|
|
Datum |
reloptions | |
|
) |
| | |
void BootstrapToastTable |
( |
char * |
relName, |
|
|
Oid |
toastOid, |
|
|
Oid |
toastIndexOid | |
|
) |
| | |
Definition at line 81 of file toasting.c.
References AccessExclusiveLock, create_toast_table(), elog, ereport, errcode(), errmsg(), ERROR, heap_close, heap_openrv(), makeRangeVar(), NoLock, NULL, RelationData::rd_rel, RELKIND_MATVIEW, and RELKIND_RELATION.
{
Relation rel;
rel = heap_openrv(makeRangeVar(NULL, relName, -1), AccessExclusiveLock);
if (rel->rd_rel->relkind != RELKIND_RELATION &&
rel->rd_rel->relkind != RELKIND_MATVIEW)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is not a table or materialized view",
relName)));
if (!create_toast_table(rel, toastOid, toastIndexOid, (Datum) 0))
elog(ERROR, "\"%s\" does not require a toast table",
relName);
heap_close(rel, NoLock);
}
DECLARE_TOAST |
( |
pg_shdescription |
, |
|
|
2846 |
, |
|
|
2847 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_trigger |
, |
|
|
2336 |
, |
|
|
2337 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_statistic |
, |
|
|
2840 |
, |
|
|
2841 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_seclabel |
, |
|
|
3598 |
, |
|
|
3599 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_rewrite |
, |
|
|
2838 |
, |
|
|
2839 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_proc |
, |
|
|
2836 |
, |
|
|
2837 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_description |
, |
|
|
2834 |
, |
|
|
2835 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_constraint |
, |
|
|
2832 |
, |
|
|
2833 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_attrdef |
, |
|
|
2830 |
, |
|
|
2831 |
| |
|
) |
| | |
DECLARE_TOAST |
( |
pg_db_role_setting |
, |
|
|
2966 |
, |
|
|
2967 |
| |
|
) |
| | |