Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
606a3d54
Commit
606a3d54
authored
Jan 21, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move test_fsync to /contrib.
parent
8aea1373
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
50 deletions
+95
-50
contrib/pg_test_fsync/Makefile
contrib/pg_test_fsync/Makefile
+23
-0
contrib/pg_test_fsync/test_fsync.c
contrib/pg_test_fsync/test_fsync.c
+0
-0
doc/src/sgml/contrib.sgml
doc/src/sgml/contrib.sgml
+1
-0
doc/src/sgml/filelist.sgml
doc/src/sgml/filelist.sgml
+1
-0
doc/src/sgml/pgtestfsync.sgml
doc/src/sgml/pgtestfsync.sgml
+70
-0
src/tools/fsync/Makefile
src/tools/fsync/Makefile
+0
-25
src/tools/fsync/README
src/tools/fsync/README
+0
-25
No files found.
contrib/pg_test_fsync/Makefile
0 → 100644
View file @
606a3d54
#
# Makefile for test_fsync
#
# contrib/test_fsync/Makefile
PGFILEDESC
=
"test_fsync - test various disk sync methods"
PGAPPICON
=
win32
PROGRAM
=
test_fsync
OBJS
=
test_fsync.o
PG_LIBS
=
$(libpq_pgport)
ifdef
USE_PGXS
PG_CONFIG
=
pg_config
PGXS
:=
$(
shell
$(PG_CONFIG)
--pgxs
)
include
$(PGXS)
else
subdir
=
contrib/test_fsync
top_builddir
=
../..
include
$(top_builddir)/src/Makefile.global
include
$(top_srcdir)/contrib/contrib-global.mk
endif
src/tools/
fsync/test_fsync.c
→
contrib/pg_test_
fsync/test_fsync.c
View file @
606a3d54
File moved
doc/src/sgml/contrib.sgml
View file @
606a3d54
...
@@ -112,6 +112,7 @@ psql -d dbname -f <replaceable>SHAREDIR</>/contrib/<replaceable>module</>.sql
...
@@ -112,6 +112,7 @@ psql -d dbname -f <replaceable>SHAREDIR</>/contrib/<replaceable>module</>.sql
&pgstandby;
&pgstandby;
&pgstatstatements;
&pgstatstatements;
&pgstattuple;
&pgstattuple;
&pgtestfsync;
&pgtrgm;
&pgtrgm;
&pgupgrade;
&pgupgrade;
&seg;
&seg;
...
...
doc/src/sgml/filelist.sgml
View file @
606a3d54
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
<!entity pgstandby SYSTEM "pgstandby.sgml">
<!entity pgstandby SYSTEM "pgstandby.sgml">
<!entity pgstatstatements SYSTEM "pgstatstatements.sgml">
<!entity pgstatstatements SYSTEM "pgstatstatements.sgml">
<!entity pgstattuple SYSTEM "pgstattuple.sgml">
<!entity pgstattuple SYSTEM "pgstattuple.sgml">
<!entity pgtestfsync SYSTEM "pgtestfsync.sgml">
<!entity pgtrgm SYSTEM "pgtrgm.sgml">
<!entity pgtrgm SYSTEM "pgtrgm.sgml">
<!entity pgupgrade SYSTEM "pgupgrade.sgml">
<!entity pgupgrade SYSTEM "pgupgrade.sgml">
<!entity seg SYSTEM "seg.sgml">
<!entity seg SYSTEM "seg.sgml">
...
...
doc/src/sgml/pgtestfsync.sgml
0 → 100644
View file @
606a3d54
<!-- doc/src/sgml/pgtestfsync.sgml -->
<sect1 id="pgtestfsync">
<title>pg_test_fsync</title>
<indexterm zone="pgtestfsync">
<primary>pg_test_fsync</primary>
</indexterm>
<para>
<application>pg_test_fsync</> is intended to give you a reasonable
idea of what the fastest fsync_method is on your specific system,
as well as supplying diagnostic information in the event of an
identified I/O problem. However, differences shown by test_fsync
might not make any difference in real database throughput, especially
since many database servers are not speed-limited by their transaction
logs.
</para>
<sect2>
<title>Usage</title>
<sect2>
<title><application>pg_test_fsync</> Options</title>
<para>
<application>pg_test_fsync</application> accepts the following command-line arguments:
<variablelist>
<varlistentry>
<term><option>-f</option></term>
<term><option>--filename</option></term>
<listitem>
<para>
Specifies the filename for test. The file should be in the
same file system as the <filename>pg_xlog</> directory.
<filename>/pg_xlog</> contains the <acronym>WAL</> files.)
The default is <filename>test_fsync.out</> in the current
directory.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-o</option></term>
<term><option>--ops-per-test</option></term>
<listitem>
<para>
Specifies the number of operations per test. The more operations
per test, the greater the test's accuracy. The default is
2000.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</sect2>
<sect2>
<title>Author</title>
<para>
Bruce Momjian <email>bruce@momjian.us</email>
</para>
</sect2>
</sect1>
src/tools/fsync/Makefile
deleted
100644 → 0
View file @
8aea1373
#-------------------------------------------------------------------------
#
# Makefile for src/tools/fsync
#
# Copyright (c) 2003-2011, PostgreSQL Global Development Group
#
# src/tools/fsync/Makefile
#
#-------------------------------------------------------------------------
subdir
=
src/tools/fsync
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
override CPPFLAGS
:
= -I$(libpq_srcdir) $(CPPFLAGS)
OBJS
=
test_fsync.o
all
:
submake-libpq submake-libpgport test_fsync
test_fsync
:
test_fsync.o $(libpq_builddir)/libpq.a
$(CC)
$(CFLAGS)
test_fsync.o
$(libpq_pgport)
$(LDFLAGS)
$(LDFLAGS_EX)
$(LIBS)
-o
$@$(X)
clean distclean maintainer-clean
:
rm
-f
test_fsync
$(X)
$(OBJS)
src/tools/fsync/README
deleted
100644 → 0
View file @
8aea1373
test_fsync
==========
This program tests fsync. The tests are described as part of the program output.
Usage: test_fsync [option...]
Options:
-f, --filename specify filename for test
-o, --ops-per-test operations per test
test_fsync is intended to give you a reasonable idea of what the fastest
fsync_method is on your specific system, as well as supplying diagnostic
information in the event of an identified I/O problem. However,
differences shown by test_fsync might not make any difference in real
database throughput, especially since many database servers are not
speed-limited by their transaction logs.
The output filename defaults to test_fsync.out in the current directory.
test_fsync should be run in the same filesystem as your transaction log
directory (pg_xlog).
Operations per test defaults to 2000. Increase this to get more accurate
measurements.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment