Skip to content

Commit 528c2e4

Browse files
committed
Move pg_test_timing from contrib/ to src/bin/
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parent d992f8a commit 528c2e4

File tree

12 files changed

+33
-34
lines changed

12 files changed

+33
-34
lines changed

contrib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ SUBDIRS = \
3333
pg_prewarm \
3434
pg_standby \
3535
pg_stat_statements \
36-
pg_test_timing \
3736
pg_trgm \
3837
pgcrypto \
3938
pgrowlocks \

contrib/pg_test_timing/Makefile

Lines changed: 0 additions & 18 deletions
This file was deleted.

doc/src/sgml/contrib.sgml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ pages.
202202
</para>
203203

204204
&pgstandby;
205-
&pgtesttiming;
206205
&pgxlogdump;
207206
</sect1>
208207
</appendix>

doc/src/sgml/filelist.sgml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
<!ENTITY pgstandby SYSTEM "pgstandby.sgml">
134134
<!ENTITY pgstatstatements SYSTEM "pgstatstatements.sgml">
135135
<!ENTITY pgstattuple SYSTEM "pgstattuple.sgml">
136-
<!ENTITY pgtesttiming SYSTEM "pgtesttiming.sgml">
137136
<!ENTITY pgtrgm SYSTEM "pgtrgm.sgml">
138137
<!ENTITY pgxlogdump SYSTEM "pg_xlogdump.sgml">
139138
<!ENTITY postgres-fdw SYSTEM "postgres-fdw.sgml">

doc/src/sgml/ref/allfiles.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ Complete list of usable sgml source files in this directory.
194194
<!ENTITY pgRestore SYSTEM "pg_restore.sgml">
195195
<!ENTITY pgRewind SYSTEM "pg_rewind.sgml">
196196
<!ENTITY pgtestfsync SYSTEM "pgtestfsync.sgml">
197+
<!ENTITY pgtesttiming SYSTEM "pgtesttiming.sgml">
197198
<!ENTITY pgupgrade SYSTEM "pgupgrade.sgml">
198199
<!ENTITY postgres SYSTEM "postgres-ref.sgml">
199200
<!ENTITY postmaster SYSTEM "postmaster.sgml">

doc/src/sgml/pgtesttiming.sgml renamed to doc/src/sgml/ref/pgtesttiming.sgml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- doc/src/sgml/pgtesttiming.sgml -->
1+
<!-- doc/src/sgml/ref/pgtesttiming.sgml -->
22

33
<refentry id="pgtesttiming">
44
<indexterm zone="pgtesttiming">
@@ -290,14 +290,6 @@ Histogram of timing durations:
290290
</refsect2>
291291
</refsect1>
292292

293-
<refsect1>
294-
<title>Author</title>
295-
296-
<para>
297-
Ants Aasma <email>ants.aasma@eesti.ee</email>
298-
</para>
299-
</refsect1>
300-
301293
<refsect1>
302294
<title>See Also</title>
303295

doc/src/sgml/reference.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@
264264
&pgResetxlog;
265265
&pgRewind;
266266
&pgtestfsync;
267+
&pgtesttiming;
267268
&pgupgrade;
268269
&postgres;
269270
&postmaster;

src/bin/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ SUBDIRS = \
2424
pg_resetxlog \
2525
pg_rewind \
2626
pg_test_fsync \
27+
pg_test_timing \
2728
pg_upgrade \
2829
pgbench \
2930
psql \
File renamed without changes.

src/bin/pg_test_timing/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# src/bin/pg_test_timing/Makefile
2+
3+
PGFILEDESC = "pg_test_timing - test timing overhead"
4+
PGAPPICON = win32
5+
6+
subdir = src/bin/pg_test_timing
7+
top_builddir = ../../..
8+
include $(top_builddir)/src/Makefile.global
9+
10+
OBJS = pg_test_timing.o $(WIN32RES)
11+
12+
all: pg_test_timing
13+
14+
pg_test_timing: $(OBJS) | submake-libpgport
15+
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
16+
17+
install: all installdirs
18+
$(INSTALL_PROGRAM) pg_test_timing$(X) '$(DESTDIR)$(bindir)/pg_test_timing$(X)'
19+
20+
installdirs:
21+
$(MKDIR_P) '$(DESTDIR)$(bindir)'
22+
23+
uninstall:
24+
rm -f '$(DESTDIR)$(bindir)/pg_test_timing$(X)'
25+
26+
clean distclean maintainer-clean:
27+
rm -f pg_test_timing$(X) $(OBJS)

src/tools/msvc/Mkvcbuild.pm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ my @contrib_uselibpq =
3535
my @contrib_uselibpgport = (
3636
'oid2name',
3737
'pg_standby',
38-
'pg_test_timing',
3938
'pg_xlogdump',
4039
'vacuumlo');
4140
my @contrib_uselibpgcommon = (
4241
'oid2name',
4342
'pg_standby',
44-
'pg_test_timing',
4543
'pg_xlogdump',
4644
'vacuumlo');
4745
my $contrib_extralibs = undef;
@@ -55,8 +53,8 @@ my @contrib_excludes = ('pgcrypto', 'commit_ts', 'intagg', 'sepgsql');
5553
# Set of variables for frontend modules
5654
my $frontend_defines = { 'initdb' => 'FRONTEND' };
5755
my @frontend_uselibpq = ('pg_ctl', 'pg_upgrade', 'pgbench', 'psql');
58-
my @frontend_uselibpgport = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_upgrade', 'pgbench' );
59-
my @frontend_uselibpgcommon = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_upgrade', 'pgbench' );
56+
my @frontend_uselibpgport = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_test_timing', 'pg_upgrade', 'pgbench' );
57+
my @frontend_uselibpgcommon = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_test_timing', 'pg_upgrade', 'pgbench' );
6058
my $frontend_extralibs = {
6159
'initdb' => ['ws2_32.lib'],
6260
'pg_restore' => ['ws2_32.lib'],

0 commit comments

Comments
 (0)