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

Commit116ba5d

Browse files
committed
Update unused_oids script so it works with non-GNU awk --- /* ... */
comment style apparently isn't portable to other awks.
1 parent90b8834 commit116ba5d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/include/catalog/unused_oids

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# unused_oids
33
#
4-
# $Header: /cvsroot/pgsql/src/include/catalog/unused_oids,v 1.2 1998/12/31 20:09:49 momjian Exp $
4+
# $Header: /cvsroot/pgsql/src/include/catalog/unused_oids,v 1.3 2000/01/17 00:53:11 tgl Exp $
55
#
66
#finds blocks of oids that have not already been claimed by
77
#post_hackers for internal purposes. primarily useful for
@@ -16,7 +16,7 @@
1616
#non-berkeley post_hackers should probably not try to use oids
1717
#less than the highest one that comes with the distributed source.
1818
#
19-
#run this script in src/backend/catalog.
19+
#run this script in src/include/catalog.
2020
#
2121
egrep'^DATA' pg_*.h| \
2222
sed -e's/^.*OID[^=]*=[^0-9]*//' -e's/[^0-9].*$//'| \
@@ -37,5 +37,6 @@ BEGIN {
3737
last = $1;
3838
}
3939
END {
40-
print last + 1, "-", 2^14-1; /* current BootstrapObjectIdData value */
40+
# 2^14-1 = current BootstrapObjectIdData value
41+
print last + 1, "-", 2^14-1;
4142
}'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp