~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/backend/libpq/be-fsstubs.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:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/libpq/be-fsstubs.c,v 1.90 2009/01/01 17:23:42 momjian Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/libpq/be-fsstubs.c,v 1.91 2009/06/11 14:48:58 momjian Exp $
12
12
 *
13
13
 * NOTES
14
14
 *        This should be moved to a more appropriate place.  It is here
80
80
 
81
81
static int      newLOfd(LargeObjectDesc *lobjCookie);
82
82
static void deleteLOfd(int fd);
83
 
static Oid lo_import_internal(text *filename, Oid lobjOid);
 
83
static Oid      lo_import_internal(text *filename, Oid lobjOid);
84
84
 
85
85
 
86
86
/*****************************************************************************
334
334
lo_import_with_oid(PG_FUNCTION_ARGS)
335
335
{
336
336
        text       *filename = PG_GETARG_TEXT_PP(0);
337
 
        Oid                oid = PG_GETARG_OID(1);
 
337
        Oid                     oid = PG_GETARG_OID(1);
338
338
 
339
339
        PG_RETURN_OID(lo_import_internal(filename, oid));
340
340
}
348
348
        char            buf[BUFSIZE];
349
349
        char            fnamebuf[MAXPGPATH];
350
350
        LargeObjectDesc *lobj;
351
 
        Oid     oid;
352
 
        
 
351
        Oid                     oid;
 
352
 
353
353
#ifndef ALLOW_DANGEROUS_LO_FUNCTIONS
354
354
        if (!superuser())
355
355
                ereport(ERROR,