mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Vacuum fix. Was modifying cache.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.46 1998/08/14 16:05:51 thomas Exp $
|
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.47 1998/08/19 19:59:45 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ fi
|
|||||||
BACKENDARGS="-boot -C -F -D$PGDATA $BACKEND_TALK_ARG"
|
BACKENDARGS="-boot -C -F -D$PGDATA $BACKEND_TALK_ARG"
|
||||||
|
|
||||||
echo "$CMDNAME: creating template database in $PGDATA/base/template1"
|
echo "$CMDNAME: creating template database in $PGDATA/base/template1"
|
||||||
echo "Running: postgres $BACKENDARGS template1"
|
[ "$debug" -ne 0 ] && echo "Running: postgres $BACKENDARGS template1"
|
||||||
|
|
||||||
cat $TEMPLATE \
|
cat $TEMPLATE \
|
||||||
| sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \
|
| sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \
|
||||||
@ -345,7 +345,7 @@ pg_version $PGDATA/base/template1
|
|||||||
|
|
||||||
if [ $template_only -eq 0 ]; then
|
if [ $template_only -eq 0 ]; then
|
||||||
echo "Creating global classes in $PG_DATA/base"
|
echo "Creating global classes in $PG_DATA/base"
|
||||||
echo "Running: postgres $BACKENDARGS template1"
|
[ "$debug" -ne 0 ] && echo "Running: postgres $BACKENDARGS template1"
|
||||||
|
|
||||||
cat $GLOBAL \
|
cat $GLOBAL \
|
||||||
| sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \
|
| sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \
|
||||||
@ -382,7 +382,7 @@ if [ $template_only -eq 0 ]; then
|
|||||||
#echo "show" >> /tmp/create.$$
|
#echo "show" >> /tmp/create.$$
|
||||||
echo "close pg_database" >> /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.$$
|
postgres $BACKENDARGS template1 < /tmp/create.$$
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* 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
|
* NOTES
|
||||||
* the genbki.sh script reads this file and generates .bki
|
* 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
|
* Because the contents of this table are taken from the other *.h files,
|
||||||
statement.
|
* there is no initialization. It is loaded from initdb using a COPY
|
||||||
*/
|
* statement.
|
||||||
|
*/
|
||||||
|
|
||||||
#endif /* PG_DESCRIPTION_H */
|
#endif /* PG_DESCRIPTION_H */
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: vacuum.h,v 1.13 1998/02/26 04:41:12 momjian Exp $
|
* $Id: vacuum.h,v 1.14 1998/08/19 19:59:49 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -33,18 +33,18 @@ typedef struct VPageDescrData
|
|||||||
{
|
{
|
||||||
BlockNumber vpd_blkno; /* BlockNumber of this Page */
|
BlockNumber vpd_blkno; /* BlockNumber of this Page */
|
||||||
Size vpd_free; /* FreeSpace on this Page */
|
Size vpd_free; /* FreeSpace on this Page */
|
||||||
uint16 vpd_nusd; /* Number of OffNums used by vacuum */
|
uint16 vpd_offsets_used; /* Number of OffNums used by vacuum */
|
||||||
uint16 vpd_noff; /* Number of OffNums free or to be free */
|
uint16 vpd_offsets_free; /* Number of OffNums free or to be free */
|
||||||
OffsetNumber vpd_voff[1]; /* Array of its OffNums */
|
OffsetNumber vpd_offsets[1]; /* Array of its OffNums */
|
||||||
} VPageDescrData;
|
} VPageDescrData;
|
||||||
|
|
||||||
typedef VPageDescrData *VPageDescr;
|
typedef VPageDescrData *VPageDescr;
|
||||||
|
|
||||||
typedef struct VPageListData
|
typedef struct VPageListData
|
||||||
{
|
{
|
||||||
int vpl_nemend; /* Number of "empty" end-pages */
|
int vpl_empty_end_pages; /* Number of "empty" end-pages */
|
||||||
int vpl_npages; /* Number of pages in vpl_pgdesc */
|
int vpl_num_pages; /* Number of pages in vpl_pagedesc */
|
||||||
VPageDescr *vpl_pgdesc; /* Descriptions of pages */
|
VPageDescr *vpl_pagedesc; /* Descriptions of pages */
|
||||||
} VPageListData;
|
} VPageListData;
|
||||||
|
|
||||||
typedef VPageListData *VPageList;
|
typedef VPageListData *VPageList;
|
||||||
@ -96,8 +96,8 @@ typedef VRelListData *VRelList;
|
|||||||
typedef struct VRelStats
|
typedef struct VRelStats
|
||||||
{
|
{
|
||||||
Oid relid;
|
Oid relid;
|
||||||
int ntups;
|
int num_tuples;
|
||||||
int npages;
|
int num_pages;
|
||||||
Size min_tlen;
|
Size min_tlen;
|
||||||
Size max_tlen;
|
Size max_tlen;
|
||||||
bool hasindex;
|
bool hasindex;
|
||||||
|
Reference in New Issue
Block a user