1 /*-------------------------------------------------------------------------
4 * This file provides some definitions to support creation of toast tables
7 * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/catalog/toasting.h
12 *-------------------------------------------------------------------------
18 * toasting.c prototypes
20 extern void AlterTableCreateToastTable(Oid relOid, Datum reloptions);
21 extern void BootstrapToastTable(char *relName,
22 Oid toastOid, Oid toastIndexOid);
26 * This macro is just to keep the C compiler from spitting up on the
27 * upcoming commands for genbki.pl.
29 #define DECLARE_TOAST(name,toastoid,indexoid) extern int no_such_variable
33 * What follows are lines processed by genbki.pl to create the statements
34 * the bootstrap parser will turn into BootstrapToastTable commands.
35 * Each line specifies the system catalog that needs a toast table,
36 * the OID to assign to the toast table, and the OID to assign to the
37 * toast table's index. The reason we hard-wire these OIDs is that we
38 * need stable OIDs for shared relations, and that includes toast tables
39 * of shared relations.
43 DECLARE_TOAST(pg_attrdef, 2830, 2831);
44 DECLARE_TOAST(pg_constraint, 2832, 2833);
45 DECLARE_TOAST(pg_description, 2834, 2835);
46 DECLARE_TOAST(pg_proc, 2836, 2837);
47 DECLARE_TOAST(pg_rewrite, 2838, 2839);
48 DECLARE_TOAST(pg_seclabel, 3039, 3040);
49 DECLARE_TOAST(pg_statistic, 2840, 2841);
50 DECLARE_TOAST(pg_trigger, 2336, 2337);
53 DECLARE_TOAST(pg_database, 2844, 2845);
54 #define PgDatabaseToastTable 2844
55 #define PgDatabaseToastIndex 2845
56 DECLARE_TOAST(pg_shdescription, 2846, 2847);
57 #define PgShdescriptionToastTable 2846
58 #define PgShdescriptionToastIndex 2847
59 DECLARE_TOAST(pg_db_role_setting, 2966, 2967);
60 #define PgDbRoleSettingToastTable 2966
61 #define PgDbRoleSettingToastIndex 2967
63 #endif /* TOASTING_H */