Commit 043cebce authored by Bruce Momjian's avatar Bruce Momjian

More archive cleanup.

parent 629e2728
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.21 1997/11/21 18:11:12 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.22 1997/11/21 19:02:37 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -79,7 +79,7 @@ static int _inv_getsize(Relation hreln, TupleDesc hdesc, Relation ireln); ...@@ -79,7 +79,7 @@ static int _inv_getsize(Relation hreln, TupleDesc hdesc, Relation ireln);
* inv_create -- create a new large object. * inv_create -- create a new large object.
* *
* Arguments: * Arguments:
* flags -- storage manager to use, archive mode, etc. * flags -- was archive, smgr
* *
* Returns: * Returns:
* large object descriptor, appropriately filled in. * large object descriptor, appropriately filled in.
...@@ -91,21 +91,12 @@ inv_create(int flags) ...@@ -91,21 +91,12 @@ inv_create(int flags)
LargeObjectDesc *retval; LargeObjectDesc *retval;
Relation r; Relation r;
Relation indr; Relation indr;
int smgr;
char archchar;
TupleDesc tupdesc; TupleDesc tupdesc;
AttrNumber attNums[1]; AttrNumber attNums[1];
Oid classObjectId[1]; Oid classObjectId[1];
char objname[NAMEDATALEN]; char objname[NAMEDATALEN];
char indname[NAMEDATALEN]; char indname[NAMEDATALEN];
/* parse flags */
smgr = flags & INV_SMGRMASK;
if (flags & INV_ARCHIVE)
archchar = 'h';
else
archchar = 'n';
/* /*
* add one here since the pg_class tuple created will have the next * add one here since the pg_class tuple created will have the next
* oid and we want to have the relation name to correspond to the * oid and we want to have the relation name to correspond to the
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.29 1997/11/21 18:11:16 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.30 1997/11/21 19:02:42 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -391,7 +391,6 @@ ProcessUtility(Node * parsetree, ...@@ -391,7 +391,6 @@ ProcessUtility(Node * parsetree,
commandTag = "CREATE"; commandTag = "CREATE";
CHECK_IF_ABORTED(); CHECK_IF_ABORTED();
/* XXX no support for ARCHIVE indices, yet */
DefineIndex(stmt->relname, /* relation name */ DefineIndex(stmt->relname, /* relation name */
stmt->idxname, /* index name */ stmt->idxname, /* index name */
stmt->accessMethod, /* am name */ stmt->accessMethod, /* am name */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.18 1997/10/30 16:47:57 thomas Exp $ * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.19 1997/11/21 19:02:50 momjian Exp $
* *
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2 * Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
* *
...@@ -469,17 +469,6 @@ findFuncByName(FuncInfo *finfo, int numFuncs, const char *name) ...@@ -469,17 +469,6 @@ findFuncByName(FuncInfo *finfo, int numFuncs, const char *name)
return -1; return -1;
} }
/*
* isArchiveName
*
* returns true if the relation name is an archive name, false otherwise
*/
int
isArchiveName(const char *relname)
{
return (strlen(relname) > 1 && relname[1] == ',');
}
/* /*
* fmtId * fmtId
* *
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: libpq-fs.h,v 1.5 1997/09/08 02:37:07 momjian Exp $ * $Id: libpq-fs.h,v 1.6 1997/11/21 19:02:59 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -88,8 +88,6 @@ struct pgdirent ...@@ -88,8 +88,6 @@ struct pgdirent
* manager to be used, and the high sixteen bits for flags. * manager to be used, and the high sixteen bits for flags.
*/ */
#define INV_SMGRMASK 0x0000ffff
#define INV_ARCHIVE 0x00010000
#define INV_WRITE 0x00020000 #define INV_WRITE 0x00020000
#define INV_READ 0x00040000 #define INV_READ 0x00040000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment