Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
25a7a7f4
Commit
25a7a7f4
authored
May 20, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up grotty references to CacheCxt (externs inside functions,
duplicate global declarations, no points for style at all!)
parent
aa387054
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
src/backend/catalog/heap.c
src/backend/catalog/heap.c
+4
-5
src/backend/catalog/index.c
src/backend/catalog/index.c
+2
-3
src/backend/utils/cache/temprel.c
src/backend/utils/cache/temprel.c
+2
-2
No files found.
src/backend/catalog/heap.c
View file @
25a7a7f4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.12
6 2000/05/19 03:22:31
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.12
7 2000/05/20 23:11:29
tgl Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
#include "storage/smgr.h"
#include "storage/smgr.h"
#include "tcop/tcopprot.h"
#include "tcop/tcopprot.h"
#include "utils/builtins.h"
#include "utils/builtins.h"
#include "utils/catcache.h"
#include "utils/portal.h"
#include "utils/portal.h"
#include "utils/relcache.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
#include "utils/syscache.h"
...
@@ -184,18 +185,16 @@ heap_create(char *relname,
...
@@ -184,18 +185,16 @@ heap_create(char *relname,
bool
istemp
,
bool
istemp
,
bool
storage_create
)
bool
storage_create
)
{
{
static
unsigned
int
uniqueId
=
0
;
int
i
;
int
i
;
Oid
relid
;
Oid
relid
;
Relation
rel
;
Relation
rel
;
int
len
;
int
len
;
bool
nailme
=
false
;
bool
nailme
=
false
;
int
natts
=
tupDesc
->
natts
;
int
natts
=
tupDesc
->
natts
;
static
unsigned
int
uniqueId
=
0
;
extern
GlobalMemory
CacheCxt
;
MemoryContext
oldcxt
;
MemoryContext
oldcxt
;
/* ----------------
/* ----------------
* sanity checks
* sanity checks
* ----------------
* ----------------
...
...
src/backend/catalog/index.c
View file @
25a7a7f4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.1
09 2000/05/19 03:22:31
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.1
10 2000/05/20 23:11:28
tgl Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
#include "parser/parse_func.h"
#include "parser/parse_func.h"
#include "storage/smgr.h"
#include "storage/smgr.h"
#include "utils/builtins.h"
#include "utils/builtins.h"
#include "utils/catcache.h"
#include "utils/relcache.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
#include "utils/syscache.h"
#include "utils/temprel.h"
#include "utils/temprel.h"
...
@@ -432,7 +433,6 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
...
@@ -432,7 +433,6 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
static
void
static
void
ConstructIndexReldesc
(
Relation
indexRelation
,
Oid
amoid
)
ConstructIndexReldesc
(
Relation
indexRelation
,
Oid
amoid
)
{
{
extern
GlobalMemory
CacheCxt
;
MemoryContext
oldcxt
;
MemoryContext
oldcxt
;
/* ----------------
/* ----------------
...
@@ -880,7 +880,6 @@ InitIndexStrategy(int numatts,
...
@@ -880,7 +880,6 @@ InitIndexStrategy(int numatts,
uint16
amsupport
;
uint16
amsupport
;
Oid
attrelid
;
Oid
attrelid
;
Size
strsize
;
Size
strsize
;
extern
GlobalMemory
CacheCxt
;
/* ----------------
/* ----------------
* get information from the index relation descriptor
* get information from the index relation descriptor
...
...
src/backend/utils/cache/temprel.c
View file @
25a7a7f4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.2
1 2000/04/12 17:15:54 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.2
2 2000/05/20 23:11:29 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#include "access/xact.h"
#include "access/xact.h"
#include "catalog/heap.h"
#include "catalog/heap.h"
#include "catalog/index.h"
#include "catalog/index.h"
#include "utils/catcache.h"
#include "utils/temprel.h"
#include "utils/temprel.h"
GlobalMemory
CacheCxt
;
/* ----------------
/* ----------------
* global variables
* global variables
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment