Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / catalog / toasting.h
blob0d89e2e9ad68168a1a177a8645b2a231a5513a22
1 /*-------------------------------------------------------------------------
3 * toasting.h
4 * This file provides some definitions to support creation of toast tables
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef TOASTING_H
15 #define TOASTING_H
18 * toasting.c prototypes
20 extern void AlterTableCreateToastTable(Oid relOid);
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.sh.
29 #define DECLARE_TOAST(name,toastoid,indexoid) extern int no_such_variable
33 * What follows are lines processed by genbki.sh 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.
42 /* normal catalogs */
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_statistic, 2840, 2841);
50 /* shared catalogs */
51 DECLARE_TOAST(pg_authid, 2842, 2843);
52 #define PgAuthidToastTable 2842
53 #define PgAuthidToastIndex 2843
54 DECLARE_TOAST(pg_database, 2844, 2845);
55 #define PgDatabaseToastTable 2844
56 #define PgDatabaseToastIndex 2845
57 DECLARE_TOAST(pg_shdescription, 2846, 2847);
58 #define PgShdescriptionToastTable 2846
59 #define PgShdescriptionToastIndex 2847
61 #endif /* TOASTING_H */