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

Commit1f0e5f6

Browse files
committed
Comment patch:
This one better describes the problem.heap.c needs to be updated to include 'Hard coded badness' for thattable.--Rod Taylor
1 parent367856d commit1f0e5f6

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

‎src/backend/catalog/README

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Header: /cvsroot/pgsql/src/backend/catalog/README,v 1.2 2002/01/04 17:06:51 tgl Exp $
1+
$Header: /cvsroot/pgsql/src/backend/catalog/README,v 1.3 2002/03/19 01:14:41 momjian Exp $
22

33
This directory contains .c files that manipulate the system catalogs
44
as well as .h files that define the structure of the system catalogs.
@@ -35,14 +35,22 @@ to a given tuple, then the OID may be set to the wildcard value 0
3535
If you need to find a valid OID for a set of tuples that refer to each
3636
other, use the unused_oids script. It generates inclusive ranges of
3737
*unused* OIDs (i.e., the line "45-900" means OIDs 45 through 900 have
38-
not been allocated yet). However, you should not rely 100% on this
39-
script, since it only looks at the .h files in the catalog/ directory.
40-
Do a pg_grepsrc (recursive grep) of the source tree to insure that
41-
there aren't any hidden crocks (i.e., explicit use of a numeric OID)
42-
anywhere in the code. (tgl 1/2002: that advice is obsolete; there are
43-
no hardcoded uses of OIDs in the C files anymore. All OIDs that are known
44-
directly to C code should be referenced via #defines in the catalog .h files.
45-
So unused_oids is sufficient for assigning new OIDs.)
38+
not been allocated yet). All OIDs that are known directly to C code
39+
should be referenced via #defines in the catalog .h files. So
40+
unused_oids is sufficient for assigning new OIDs.). The unused_oids
41+
script simply 'discovers' those which are free.
42+
43+
- BOOTSTRAP tables must be at the start of the Makefile POSTGRES_BKI_SRCS
44+
variable, as these will not be created through standard function means, but
45+
will be written directly to disk. Thats how pg_class is created without
46+
depending on functions which depend on the existance of pg_class. The
47+
list of files this currently includes is:
48+
pg_proc.h pg_type.h pg_attribute.h pg_class.h
49+
50+
Don't forget to add the entry to heap.c to function heap_create() which
51+
sets the OID of the relation when it's a bootstrapped system table. It's
52+
near the top of the function with the comment beginning in 'Real ugly stuff'
53+
4654

4755
-----------------------------------------------------------------
4856

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp