mirror of
https://github.com/postgres/postgres.git
synced 2026-03-26 20:34:52 -04:00
no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
23 lines
461 B
Bash
Executable file
23 lines
461 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# duplicate_oids
|
|
#
|
|
# finds oids that are duplicated in the system tables.
|
|
#
|
|
|
|
# no multibytes files
|
|
FILES=`ls pg_*.h |grep -v '_mb.h'`
|
|
|
|
egrep '^DATA' $FILES | \
|
|
sed -e 's/^.*OID[^=]*=[^0-9]*//' -e 's/[^0-9].*$//' | \
|
|
sort -n >/tmp/alloids.$$
|
|
uniq /tmp/alloids.$$ >/tmp/uniqoids.$$
|
|
diff -u /tmp/alloids.$$ /tmp/uniqoids.$$ | \
|
|
grep -v '/tmp/' | \
|
|
grep '^-' | \
|
|
sed -e 's/^-//' | \
|
|
grep -v '^0$' | \
|
|
uniq
|
|
rm /tmp/alloids.$$
|
|
rm /tmp/uniqoids.$$
|
|
|