Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit043cebc

Browse files
committed
More archive cleanup.
1 parent629e272 commit043cebc

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

‎src/backend/storage/large_object/inv_api.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.21 1997/11/2118:11:12 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.22 1997/11/2119:02:37 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -79,7 +79,7 @@ static int_inv_getsize(Relation hreln, TupleDesc hdesc, Relation ireln);
7979
*inv_create -- create a new large object.
8080
*
8181
*Arguments:
82-
* flags --storage manager to use,archive mode, etc.
82+
* flags --wasarchive, smgr
8383
*
8484
*Returns:
8585
* large object descriptor, appropriately filled in.
@@ -91,21 +91,12 @@ inv_create(int flags)
9191
LargeObjectDesc*retval;
9292
Relationr;
9393
Relationindr;
94-
intsmgr;
95-
chararchchar;
9694
TupleDesctupdesc;
9795
AttrNumberattNums[1];
9896
OidclassObjectId[1];
9997
charobjname[NAMEDATALEN];
10098
charindname[NAMEDATALEN];
10199

102-
/* parse flags */
103-
smgr=flags&INV_SMGRMASK;
104-
if (flags&INV_ARCHIVE)
105-
archchar='h';
106-
else
107-
archchar='n';
108-
109100
/*
110101
* add one here since the pg_class tuple created will have the next
111102
* oid and we want to have the relation name to correspond to the

‎src/backend/tcop/utility.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.29 1997/11/2118:11:16 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.30 1997/11/2119:02:42 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -391,7 +391,6 @@ ProcessUtility(Node * parsetree,
391391

392392
commandTag="CREATE";
393393
CHECK_IF_ABORTED();
394-
/* XXX no support for ARCHIVE indices, yet */
395394
DefineIndex(stmt->relname,/* relation name */
396395
stmt->idxname,/* index name */
397396
stmt->accessMethod,/* am name */

‎src/bin/pg_dump/common.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.18 1997/10/30 16:47:57 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.19 1997/11/21 19:02:50 momjian Exp $
1111
*
1212
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
1313
*
@@ -469,17 +469,6 @@ findFuncByName(FuncInfo *finfo, int numFuncs, const char *name)
469469
return-1;
470470
}
471471

472-
/*
473-
* isArchiveName
474-
*
475-
* returns true if the relation name is an archive name, false otherwise
476-
*/
477-
int
478-
isArchiveName(constchar*relname)
479-
{
480-
return (strlen(relname)>1&&relname[1]==',');
481-
}
482-
483472
/*
484473
* fmtId
485474
*

‎src/include/libpq/libpq-fs.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: libpq-fs.h,v 1.5 1997/09/0802:37:07 momjian Exp $
9+
* $Id: libpq-fs.h,v 1.6 1997/11/21 19:02:59 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -88,8 +88,6 @@ struct pgdirent
8888
*manager to be used, and the high sixteen bits for flags.
8989
*/
9090

91-
#defineINV_SMGRMASK0x0000ffff
92-
#defineINV_ARCHIVE0x00010000
9391
#defineINV_WRITE0x00020000
9492
#defineINV_READ0x00040000
9593

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp