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

Commit25a7a7f

Browse files
committed
Clean up grotty references to CacheCxt (externs inside functions,
duplicate global declarations, no points for style at all!)
1 parentaa38705 commit25a7a7f

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

‎src/backend/catalog/heap.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.126 2000/05/19 03:22:31 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.127 2000/05/20 23:11:29 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -62,6 +62,7 @@
6262
#include"storage/smgr.h"
6363
#include"tcop/tcopprot.h"
6464
#include"utils/builtins.h"
65+
#include"utils/catcache.h"
6566
#include"utils/portal.h"
6667
#include"utils/relcache.h"
6768
#include"utils/syscache.h"
@@ -184,18 +185,16 @@ heap_create(char *relname,
184185
boolistemp,
185186
boolstorage_create)
186187
{
188+
staticunsignedintuniqueId=0;
189+
187190
inti;
188191
Oidrelid;
189192
Relationrel;
190193
intlen;
191194
boolnailme= false;
192195
intnatts=tupDesc->natts;
193-
staticunsignedintuniqueId=0;
194-
195-
externGlobalMemoryCacheCxt;
196196
MemoryContextoldcxt;
197197

198-
199198
/* ----------------
200199
*sanity checks
201200
* ----------------

‎src/backend/catalog/index.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.109 2000/05/19 03:22:31 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.110 2000/05/20 23:11:28 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -41,6 +41,7 @@
4141
#include"parser/parse_func.h"
4242
#include"storage/smgr.h"
4343
#include"utils/builtins.h"
44+
#include"utils/catcache.h"
4445
#include"utils/relcache.h"
4546
#include"utils/syscache.h"
4647
#include"utils/temprel.h"
@@ -432,7 +433,6 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
432433
staticvoid
433434
ConstructIndexReldesc(RelationindexRelation,Oidamoid)
434435
{
435-
externGlobalMemoryCacheCxt;
436436
MemoryContextoldcxt;
437437

438438
/* ----------------
@@ -880,7 +880,6 @@ InitIndexStrategy(int numatts,
880880
uint16amsupport;
881881
Oidattrelid;
882882
Sizestrsize;
883-
externGlobalMemoryCacheCxt;
884883

885884
/* ----------------
886885
*get information from the index relation descriptor

‎src/backend/utils/cache/temprel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.21 2000/04/12 17:15:54 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.22 2000/05/20 23:11:29 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -28,9 +28,9 @@
2828
#include"access/xact.h"
2929
#include"catalog/heap.h"
3030
#include"catalog/index.h"
31+
#include"utils/catcache.h"
3132
#include"utils/temprel.h"
3233

33-
GlobalMemoryCacheCxt;
3434

3535
/* ----------------
3636
*global variables

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp