~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/include/utils/rel.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-01 17:41:41 UTC
  • mfrom: (1.1.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090701174141-jfmn9tt8e69m950x
Tags: 8.4.0-1
* Final 8.4.0 release. Major enhancements:
  - Windowing Functions
  - Common Table Expressions and Recursive Queries
  - Default and variadic parameters for functions
  - Parallel Restore
  - Column Permissions
  - Per-database locale settings
  - Improved hash indexes
  - Improved join performance for EXISTS and NOT EXISTS queries
  - Easier-to-use Warm Standby
  - Automatic sizing of the Free Space Map
  - Visibility Map (greatly reduces vacuum overhead for slowly-changing
    tables)
  - Version-aware psql (backslash commands work against older servers)
  - Support SSL certificates for user authentication
  - Per-function runtime statistics
  - Easy editing of functions in psql
  - New contrib modules: pg_stat_statements, auto_explain, citext,
    btree_gin 
  Upload to unstable, 8.4 is the new default. 
* debian/control: Build the versionless metapackages and have them point to
  8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8
8
 * Portions Copyright (c) 1994, Regents of the University of California
9
9
 *
10
 
 * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.113 2009/03/31 22:12:48 tgl Exp $
 
10
 * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.114 2009/06/11 14:49:13 momjian Exp $
11
11
 *
12
12
 *-------------------------------------------------------------------------
13
13
 */
127
127
                                                                 * InvalidBlockNumber */
128
128
        int                     rd_refcnt;              /* reference count */
129
129
        bool            rd_istemp;              /* rel is a temporary relation */
130
 
        bool            rd_islocaltemp; /* rel is a temp rel of this session */
 
130
        bool            rd_islocaltemp; /* rel is a temp rel of this session */
131
131
        bool            rd_isnailed;    /* rel is nailed in cache */
132
132
        bool            rd_isvalid;             /* relcache entry is valid */
133
133
        char            rd_indexvalid;  /* state of rd_indexlist: 0 = not valid, 1 =
200
200
         * sizes of the free space and visibility map forks, or InvalidBlockNumber
201
201
         * if not known yet
202
202
         */
203
 
        BlockNumber     rd_fsm_nblocks;
204
 
        BlockNumber     rd_vm_nblocks;
 
203
        BlockNumber rd_fsm_nblocks;
 
204
        BlockNumber rd_vm_nblocks;
205
205
 
206
206
        /* use "struct" here to avoid needing to include pgstat.h: */
207
207
        struct PgStat_TableStatus *pgstat_info;         /* statistics collection area */
218
218
 /* autovacuum-related reloptions. */
219
219
typedef struct AutoVacOpts
220
220
{
221
 
        bool    enabled;
222
 
        int     vacuum_threshold;
223
 
        int     analyze_threshold;
224
 
        int     vacuum_cost_delay;
225
 
        int     vacuum_cost_limit;
226
 
        int     freeze_min_age;
227
 
        int     freeze_max_age;
228
 
        int             freeze_table_age;
229
 
        float8  vacuum_scale_factor;
230
 
        float8  analyze_scale_factor;
 
221
        bool            enabled;
 
222
        int                     vacuum_threshold;
 
223
        int                     analyze_threshold;
 
224
        int                     vacuum_cost_delay;
 
225
        int                     vacuum_cost_limit;
 
226
        int                     freeze_min_age;
 
227
        int                     freeze_max_age;
 
228
        int                     freeze_table_age;
 
229
        float8          vacuum_scale_factor;
 
230
        float8          analyze_scale_factor;
231
231
} AutoVacOpts;
232
232
 
233
233
typedef struct StdRdOptions
234
234
{
235
235
        int32           vl_len_;                /* varlena header (do not touch directly!) */
236
236
        int                     fillfactor;             /* page fill factor in percent (0..100) */
237
 
        AutoVacOpts autovacuum;     /* autovacuum-related options */
 
237
        AutoVacOpts autovacuum;         /* autovacuum-related options */
238
238
} StdRdOptions;
239
239
 
240
240
#define HEAP_MIN_FILLFACTOR                     10