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

« back to all changes in this revision

Viewing changes to contrib/pg_freespacemap/pg_freespacemap.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:
3
3
 * pg_freespacemap.c
4
4
 *        display contents of a free space map
5
5
 *
6
 
 *        $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.13 2009/04/07 17:57:50 tgl Exp $
 
6
 *        $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.14 2009/06/11 14:48:51 momjian Exp $
7
7
 *-------------------------------------------------------------------------
8
8
 */
9
9
#include "postgres.h"
27
27
Datum
28
28
pg_freespace(PG_FUNCTION_ARGS)
29
29
{
30
 
        Oid             relid = PG_GETARG_OID(0);
31
 
        int64   blkno = PG_GETARG_INT64(1);
32
 
        int16   freespace;
33
 
        Relation rel;
 
30
        Oid                     relid = PG_GETARG_OID(0);
 
31
        int64           blkno = PG_GETARG_INT64(1);
 
32
        int16           freespace;
 
33
        Relation        rel;
34
34
 
35
35
        rel = relation_open(relid, AccessShareLock);
36
36