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

Commit2589735

Browse files
committed
Replace implementation of pg_log as a relation accessed through the
buffer manager with 'pg_clog', a specialized access method modeledon pg_xlog. This simplifies startup (don't need to play games toopen pg_log; among other things, OverrideTransactionSystem goes away),should improve performance a little, and opens the door to recyclingcommit log space by removing no-longer-needed segments of the commitlog. Actual recycling is not there yet, but I felt I should committhis part separately since it'd still be useful if we chose not todo transaction ID wraparound.
1 parent4699d81 commit2589735

File tree

39 files changed

+1248
-1128
lines changed

39 files changed

+1248
-1128
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.11 2001/08/16 04:30:41ishii Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.12 2001/08/25 18:52:41tgl Exp $ -->
22
<chapter id="backup">
33
<title>Backup and Restore</title>
44

@@ -339,11 +339,11 @@ tar -cf backup.tar /usr/local/pgsql/data
339339
individual tables or databases from their respective files or
340340
directories. This will <emphasis>not</> work because the
341341
information contained in these files contains only half the
342-
truth. The other half is in thefile
343-
<filename>pg_log</filename>, whichcontains the commit status of
342+
truth. The other half is in thecommit log files
343+
<filename>pg_clog/*</filename>, whichcontain the commit status of
344344
all transactions. A table file is only usable with this
345345
information. Of course it is also impossible to restore only a
346-
table and the associated <filename>pg_log</filename>file
346+
table and the associated <filename>pg_clog</filename>data
347347
because that will render all other tables in the database
348348
cluster useless.
349349
</para>

‎doc/src/sgml/wal.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v 1.7 2001/05/17 21:50:16 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v 1.8 2001/08/25 18:52:41 tgl Exp $ -->
22

33
<chapter id="wal">
44
<title>Write-Ahead Logging (<acronym>WAL</acronym>)</title>
@@ -83,12 +83,12 @@
8383
In this first release of <acronym>WAL</acronym>, UNDO operation is
8484
not implemented, because of lack of time. This means that changes
8585
made by aborted transactions will still occupy disk space and that
86-
we still need a permanent <filename>pg_log</filename> file to hold
86+
we still need a permanent <filename>pg_clog</filename> file to hold
8787
the status of transactions, since we are not able to re-use
8888
transaction identifiers. Once UNDO is implemented,
89-
<filename>pg_log</filename> will no longer be required to be
89+
<filename>pg_clog</filename> will no longer be required to be
9090
permanent; it will be possible to remove
91-
<filename>pg_log</filename> at shutdown, split it into segments
91+
<filename>pg_clog</filename> at shutdown, split it into segments
9292
and remove old segments.
9393
</para>
9494

‎src/backend/access/transam/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Makefile for access/transam
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.14 2001/08/24 14:07:48 petere Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.15 2001/08/25 18:52:41 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
subdir = src/backend/access/transam
1212
top_builddir = ../../../..
1313
include$(top_builddir)/src/Makefile.global
1414

15-
OBJS =transam.otranssup.o varsup.o xact.o xid.o xlog.o xlogutils.o rmgr.o
15+
OBJS =clog.otransam.o varsup.o xact.o xid.o xlog.o xlogutils.o rmgr.o
1616

1717
all: SUBSYS.o
1818

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp