~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to contrib/pageinspect/fsmfuncs.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 * Copyright (c) 2007-2009, PostgreSQL Global Development Group
13
13
 *
14
14
 * IDENTIFICATION
15
 
 *        $PostgreSQL: pgsql/contrib/pageinspect/fsmfuncs.c,v 1.2 2009/01/01 17:23:32 momjian Exp $
 
15
 *        $PostgreSQL: pgsql/contrib/pageinspect/fsmfuncs.c,v 1.3 2009/06/11 14:48:51 momjian Exp $
16
16
 *
17
17
 *-------------------------------------------------------------------------
18
18
 */
24
24
#include "miscadmin.h"
25
25
#include "funcapi.h"
26
26
 
27
 
Datum fsm_page_contents(PG_FUNCTION_ARGS);
 
27
Datum           fsm_page_contents(PG_FUNCTION_ARGS);
28
28
 
29
29
/*
30
30
 * Dumps the contents of a FSM page.
50
50
 
51
51
        initStringInfo(&sinfo);
52
52
 
53
 
        for(i=0; i < NodesPerPage; i++)
 
53
        for (i = 0; i < NodesPerPage; i++)
54
54
        {
55
55
                if (fsmpage->fp_nodes[i] != 0)
56
56
                        appendStringInfo(&sinfo, "%d: %d\n", i, fsmpage->fp_nodes[i]);