File tree Expand file tree Collapse file tree 8 files changed +37
-227
lines changed Expand file tree Collapse file tree 8 files changed +37
-227
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ include $(top_builddir)/src/Makefile.global
21
21
include $(top_srcdir ) /contrib/contrib-global.mk
22
22
endif
23
23
24
- majorversion =` echo $( VERSION) | sed -e ' s/^\([0-9]*\. [0-9]*\).*/\1/g' `
24
+ majorversion =` echo $( VERSION) | sed -e ' s/^\([0-9]*\)\.\( [0-9]*\).*/\1\2 /g' `
25
25
26
26
xlogdump_oid2name.o : oid2name.txt
27
27
28
28
oid2name.txt :
29
- cp oid2name-$(majorversion ) .* . txt oid2name.txt
29
+ cp oid2name-$(majorversion ) .txt oid2name.txt
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- PSQL_OPTS= ' -p 5432 '
3
+ VERSIONS= " 92 91 90 84 83 "
4
4
5
- psql -A -t -F' ' $PSQL_OPTS postgres -c ' SELECT oid,spcname FROM pg_tablespace ORDER BY oid'
6
- psql -A -t -F' ' $PSQL_OPTS postgres -c ' SELECT oid,datname FROM pg_database ORDER BY oid'
7
- psql -A -t -F' ' $PSQL_OPTS postgres -c ' SELECT oid,relname FROM pg_class ORDER BY oid'
5
+ PORT_OPTS=' -p 5434'
8
6
7
+ for v in $VERSIONS
8
+ do if [ -d /usr/local/pgsql${v} ]; then
9
+ export PGDATA=/tmp/pgdata${v}
10
+ export PATH=/usr/local/pgsql${v} /bin:$PATH
11
+
12
+ rm -rf $PGDATA
13
+ mkdir $PGDATA
14
+ initdb --no-locale -D ${PGDATA}
15
+
16
+ pg_ctl -w -D ${PGDATA} start -o " $PORT_OPTS "
17
+
18
+ cat /dev/null > oid2name-${v} .txt
19
+ psql -A -t -F' ' $PORT_OPTS postgres -c ' SELECT oid,spcname FROM pg_tablespace ORDER BY oid' >> oid2name-${v} .txt
20
+ psql -A -t -F' ' $PORT_OPTS postgres -c ' SELECT oid,datname FROM pg_database ORDER BY oid' >> oid2name-${v} .txt
21
+ psql -A -t -F' ' $PORT_OPTS postgres -c ' SELECT oid,relname FROM pg_class ORDER BY oid' >> oid2name-${v} .txt
22
+
23
+ pg_ctl -w -D ${PGDATA} stop
24
+
25
+ rm -rf ${PGDATA}
26
+ fi ;
27
+ done ;
Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
1663 pg_default
2
2
1664 pg_global
3
3
1 template1
4
- 11866 template0
5
- 11874 postgres
4
+ 11818 template0
5
+ 11826 postgres
6
6
112 pg_foreign_data_wrapper_oid_index
7
7
113 pg_foreign_server_oid_index
8
8
174 pg_user_mapping_oid_index
Original file line number Diff line number Diff line change 1
1
1663 pg_default
2
2
1664 pg_global
3
3
1 template1
4
- 12690 template0
5
- 12698 postgres
4
+ 12691 template0
5
+ 12699 postgres
6
6
112 pg_foreign_data_wrapper_oid_index
7
7
113 pg_foreign_server_oid_index
8
8
174 pg_user_mapping_oid_index
276
276
12389 foreign_data_wrapper_options
277
277
12392 foreign_data_wrappers
278
278
12395 _pg_foreign_servers
279
- 12398 foreign_server_options
280
- 12401 foreign_servers
281
- 12404 _pg_foreign_tables
282
- 12408 foreign_table_options
283
- 12411 foreign_tables
284
- 12414 _pg_user_mappings
285
- 12417 user_mapping_options
286
- 12421 user_mappings
279
+ 12399 foreign_server_options
280
+ 12402 foreign_servers
281
+ 12405 _pg_foreign_tables
282
+ 12409 foreign_table_options
283
+ 12412 foreign_tables
284
+ 12415 _pg_user_mappings
285
+ 12418 user_mapping_options
286
+ 12422 user_mappings
File renamed without changes.
You can’t perform that action at this time.
0 commit comments