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
bd5aaca3
Commit
bd5aaca3
authored
Aug 19, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vacuum fix. Was modifying cache.
parent
9c4eceb4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
240 additions
and
229 deletions
+240
-229
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+221
-211
src/bin/initdb/initdb.sh
src/bin/initdb/initdb.sh
+4
-4
src/include/catalog/pg_description.h
src/include/catalog/pg_description.h
+6
-5
src/include/commands/vacuum.h
src/include/commands/vacuum.h
+9
-9
No files found.
src/backend/commands/vacuum.c
View file @
bd5aaca3
This diff is collapsed.
Click to expand it.
src/bin/initdb/initdb.sh
View file @
bd5aaca3
...
...
@@ -26,7 +26,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.4
6 1998/08/14 16:05:51 thomas
Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.4
7 1998/08/19 19:59:45 momjian
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -317,7 +317,7 @@ fi
BACKENDARGS
=
"-boot -C -F -D
$PGDATA
$BACKEND_TALK_ARG
"
echo
"
$CMDNAME
: creating template database in
$PGDATA
/base/template1"
echo
"Running: postgres
$BACKENDARGS
template1"
[
"
$debug
"
-ne
0
]
&&
echo
"Running: postgres
$BACKENDARGS
template1"
cat
$TEMPLATE
\
|
sed
-e
"s/postgres PGUID/
$POSTGRES_SUPERUSERNAME
$POSTGRES_SUPERUID
/"
\
...
...
@@ -345,7 +345,7 @@ pg_version $PGDATA/base/template1
if
[
$template_only
-eq
0
]
;
then
echo
"Creating global classes in
$PG_DATA
/base"
echo
"Running: postgres
$BACKENDARGS
template1"
[
"
$debug
"
-ne
0
]
&&
echo
"Running: postgres
$BACKENDARGS
template1"
cat
$GLOBAL
\
|
sed
-e
"s/postgres PGUID/
$POSTGRES_SUPERUSERNAME
$POSTGRES_SUPERUID
/"
\
...
...
@@ -382,7 +382,7 @@ if [ $template_only -eq 0 ]; then
#echo "show" >> /tmp/create.$$
echo
"close pg_database"
>>
/tmp/create.
$$
echo
"Running: postgres
$BACKENDARGS
template1 < /tmp/create.
$$
"
[
"
$debug
"
-ne
0
]
&&
echo
"Running: postgres
$BACKENDARGS
template1 < /tmp/create.
$$
"
postgres
$BACKENDARGS
template1 < /tmp/create.
$$
...
...
src/include/catalog/pg_description.h
View file @
bd5aaca3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_description.h,v 1.
5 1998/02/26 04:40:53
momjian Exp $
* $Id: pg_description.h,v 1.
6 1998/08/19 19:59:47
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -58,9 +58,10 @@ typedef FormData_pg_description *Form_pg_description;
* ----------------
*/
/* Because the contents of this table are taken from the other *.h files,
there is no initialization. It is loaded from initdb using a COPY
statement.
*/
/*
* Because the contents of this table are taken from the other *.h files,
* there is no initialization. It is loaded from initdb using a COPY
* statement.
*/
#endif
/* PG_DESCRIPTION_H */
src/include/commands/vacuum.h
View file @
bd5aaca3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: vacuum.h,v 1.1
3 1998/02/26 04:41:12
momjian Exp $
* $Id: vacuum.h,v 1.1
4 1998/08/19 19:59:49
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,18 +33,18 @@ typedef struct VPageDescrData
{
BlockNumber
vpd_blkno
;
/* BlockNumber of this Page */
Size
vpd_free
;
/* FreeSpace on this Page */
uint16
vpd_
nusd
;
/* Number of OffNums used by vacuum */
uint16
vpd_
noff
;
/* Number of OffNums free or to be free */
OffsetNumber
vpd_
voff
[
1
];
/* Array of its OffNums */
uint16
vpd_
offsets_used
;
/* Number of OffNums used by vacuum */
uint16
vpd_
offsets_free
;
/* Number of OffNums free or to be free */
OffsetNumber
vpd_
offsets
[
1
];
/* Array of its OffNums */
}
VPageDescrData
;
typedef
VPageDescrData
*
VPageDescr
;
typedef
struct
VPageListData
{
int
vpl_
nemend
;
/* Number of "empty" end-pages */
int
vpl_n
pages
;
/* Number of pages in vpl_pg
desc */
VPageDescr
*
vpl_p
gdesc
;
/* Descriptions of pages */
int
vpl_
empty_end_pages
;
/* Number of "empty" end-pages */
int
vpl_n
um_pages
;
/* Number of pages in vpl_page
desc */
VPageDescr
*
vpl_p
agedesc
;
/* Descriptions of pages */
}
VPageListData
;
typedef
VPageListData
*
VPageList
;
...
...
@@ -96,8 +96,8 @@ typedef VRelListData *VRelList;
typedef
struct
VRelStats
{
Oid
relid
;
int
n
tup
s
;
int
npages
;
int
n
um_tuple
s
;
int
n
um_
pages
;
Size
min_tlen
;
Size
max_tlen
;
bool
hasindex
;
...
...
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