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