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
81134af3
Commit
81134af3
authored
Mar 10, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move pgbench from contrib/ to src/bin/
Reviewed-by:
Michael Paquier
<
michael.paquier@gmail.com
>
parent
b22a36a6
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
60 additions
and
15 deletions
+60
-15
contrib/Makefile
contrib/Makefile
+0
-1
doc/src/sgml/contrib.sgml
doc/src/sgml/contrib.sgml
+0
-1
doc/src/sgml/filelist.sgml
doc/src/sgml/filelist.sgml
+0
-1
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/allfiles.sgml
+1
-0
doc/src/sgml/ref/pgbench.sgml
doc/src/sgml/ref/pgbench.sgml
+1
-1
doc/src/sgml/reference.sgml
doc/src/sgml/reference.sgml
+1
-0
src/bin/Makefile
src/bin/Makefile
+1
-0
src/bin/pgbench/.gitignore
src/bin/pgbench/.gitignore
+0
-0
src/bin/pgbench/Makefile
src/bin/pgbench/Makefile
+42
-0
src/bin/pgbench/exprparse.y
src/bin/pgbench/exprparse.y
+0
-0
src/bin/pgbench/exprscan.l
src/bin/pgbench/exprscan.l
+0
-0
src/bin/pgbench/pgbench.c
src/bin/pgbench/pgbench.c
+1
-1
src/bin/pgbench/pgbench.h
src/bin/pgbench/pgbench.h
+0
-0
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Mkvcbuild.pm
+13
-10
No files found.
contrib/Makefile
View file @
81134af3
...
...
@@ -38,7 +38,6 @@ SUBDIRS = \
pg_trgm
\
pg_upgrade
\
pg_upgrade_support
\
pgbench
\
pgcrypto
\
pgrowlocks
\
pgstattuple
\
...
...
doc/src/sgml/contrib.sgml
View file @
81134af3
...
...
@@ -187,7 +187,6 @@ pages.
</para>
&oid2name;
&pgbench;
&vacuumlo;
</sect1>
...
...
doc/src/sgml/filelist.sgml
View file @
81134af3
...
...
@@ -125,7 +125,6 @@
<!ENTITY oid2name SYSTEM "oid2name.sgml">
<!ENTITY pageinspect SYSTEM "pageinspect.sgml">
<!ENTITY passwordcheck SYSTEM "passwordcheck.sgml">
<!ENTITY pgbench SYSTEM "pgbench.sgml">
<!ENTITY pgbuffercache SYSTEM "pgbuffercache.sgml">
<!ENTITY pgcrypto SYSTEM "pgcrypto.sgml">
<!ENTITY pgfreespacemap SYSTEM "pgfreespacemap.sgml">
...
...
doc/src/sgml/ref/allfiles.sgml
View file @
81134af3
...
...
@@ -181,6 +181,7 @@ Complete list of usable sgml source files in this directory.
<!ENTITY initdb SYSTEM "initdb.sgml">
<!ENTITY pgarchivecleanup SYSTEM "pgarchivecleanup.sgml">
<!ENTITY pgBasebackup SYSTEM "pg_basebackup.sgml">
<!ENTITY pgbench SYSTEM "pgbench.sgml">
<!ENTITY pgConfig SYSTEM "pg_config-ref.sgml">
<!ENTITY pgControldata SYSTEM "pg_controldata.sgml">
<!ENTITY pgCtl SYSTEM "pg_ctl-ref.sgml">
...
...
doc/src/sgml/pgbench.sgml
→
doc/src/sgml/
ref/
pgbench.sgml
View file @
81134af3
<!-- doc/src/sgml/pgbench.sgml -->
<!-- doc/src/sgml/
ref/
pgbench.sgml -->
<refentry id="pgbench">
<indexterm zone="pgbench">
...
...
doc/src/sgml/reference.sgml
View file @
81134af3
...
...
@@ -230,6 +230,7 @@
&dropuser;
&ecpgRef;
&pgBasebackup;
&pgbench;
&pgConfig;
&pgDump;
&pgDumpall;
...
...
src/bin/Makefile
View file @
81134af3
...
...
@@ -23,6 +23,7 @@ SUBDIRS = \
pg_dump
\
pg_resetxlog
\
pg_rewind
\
pgbench
\
psql
\
scripts
...
...
contrib
/pgbench/.gitignore
→
src/bin
/pgbench/.gitignore
View file @
81134af3
File moved
contrib
/pgbench/Makefile
→
src/bin
/pgbench/Makefile
View file @
81134af3
#
contrib
/pgbench/Makefile
#
src/bin
/pgbench/Makefile
PGFILEDESC
=
"pgbench - a simple program for running benchmark tests"
PGAPPICON
=
win32
PROGRAM
=
pgbench
OBJS
=
pgbench.o exprparse.o
$(WIN32RES)
PG_CPPFLAGS
=
-I
$(libpq_srcdir)
PG_LIBS
=
$(libpq_pgport)
$(PTHREAD_LIBS)
ifdef
USE_PGXS
PG_CONFIG
=
pg_config
PGXS
:=
$(
shell
$(PG_CONFIG)
--pgxs
)
include
$(PGXS)
else
subdir
=
contrib/pgbench
top_builddir
=
../..
subdir
=
src/bin/pgbench
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
include
$(top_srcdir)/contrib/contrib-global.mk
distprep
:
exprparse.c exprscan.c
endif
OBJS
=
pgbench.o exprparse.o
$(WIN32RES)
override CPPFLAGS
:
= -I. -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
ifneq
($(PORTNAME), win32)
override
CFLAGS
+=
$(PTHREAD_CFLAGS)
endif
all
:
pgbench
pgbench
:
$(OBJS) | submake-libpq submake-libpgport
$(CC)
$(CFLAGS)
$^
$(libpq_pgport)
$(PTHREAD_LIBS)
$(LDFLAGS)
$(LDFLAGS_EX)
$(LIBS)
-o
$@$(X)
# exprscan is compiled as part of exprparse
exprparse.o
:
exprscan.c
maintainer-clean
:
distprep
:
exprparse.c exprscan.c
install
:
all installdirs
$(INSTALL_PROGRAM)
pgbench
$(X)
'
$(DESTDIR)$(bindir)
/pgbench
$(X)
'
installdirs
:
$(MKDIR_P)
'
$(DESTDIR)$(bindir)
'
uninstall
:
rm
-f
'
$(DESTDIR)$(bindir)
/pgbench
$(X)
'
clean distclean
:
rm
-f
pgbench
$(X)
$(OBJS)
maintainer-clean
:
distclean
rm
-f
exprparse.c exprscan.c
contrib
/pgbench/exprparse.y
→
src/bin
/pgbench/exprparse.y
View file @
81134af3
File moved
contrib
/pgbench/exprscan.l
→
src/bin
/pgbench/exprscan.l
View file @
81134af3
File moved
contrib
/pgbench/pgbench.c
→
src/bin
/pgbench/pgbench.c
View file @
81134af3
...
...
@@ -4,7 +4,7 @@
* A simple benchmark program for PostgreSQL
* Originally written by Tatsuo Ishii and enhanced by many contributors.
*
*
contrib
/pgbench/pgbench.c
*
src/bin
/pgbench/pgbench.c
* Copyright (c) 2000-2015, PostgreSQL Global Development Group
* ALL RIGHTS RESERVED;
*
...
...
contrib
/pgbench/pgbench.h
→
src/bin
/pgbench/pgbench.h
View file @
81134af3
File moved
src/tools/msvc/Mkvcbuild.pm
View file @
81134af3
...
...
@@ -31,42 +31,45 @@ my $libpq;
# Set of variables for contrib modules
my
$contrib_defines
=
{
'
refint
'
=>
'
REFINT_VERBOSE
'
};
my
@contrib_uselibpq
=
('
dblink
',
'
oid2name
',
'
pg
bench
',
'
pg
_upgrade
',
'
postgres_fdw
',
'
vacuumlo
');
('
dblink
',
'
oid2name
',
'
pg_upgrade
',
'
postgres_fdw
',
'
vacuumlo
');
my
@contrib_uselibpgport
=
(
'
oid2name
',
'
pgbench
',
'
oid2name
',
'
pg_standby
',
'
pg_test_fsync
',
'
pg_test_timing
',
'
pg_upgrade
',
'
pg_xlogdump
',
'
vacuumlo
');
my
@contrib_uselibpgcommon
=
(
'
oid2name
',
'
pgbench
',
'
oid2name
',
'
pg_standby
',
'
pg_test_fsync
',
'
pg_test_timing
',
'
pg_upgrade
',
'
pg_xlogdump
',
'
vacuumlo
');
my
$contrib_extralibs
=
{
'
pgbench
'
=>
['
ws2_32.lib
']
}
;
my
$contrib_extralibs
=
undef
;
my
$contrib_extraincludes
=
{
'
tsearch2
'
=>
['
contrib/tsearch2
'],
'
dblink
'
=>
['
src/backend
']
};
my
$contrib_extrasource
=
{
'
cube
'
=>
[
'
contrib
\
cube
\
cubescan.l
',
'
contrib
\
cube
\
cubeparse.y
'
],
'
pgbench
'
=>
[
'
contrib
\
pgbench
\
exprscan.l
',
'
contrib
\
pgbench
\
exprparse.y
'
],
'
seg
'
=>
[
'
contrib
\
seg
\
segscan.l
',
'
contrib
\
seg
\
segparse.y
'
],
};
my
@contrib_excludes
=
('
pgcrypto
',
'
intagg
',
'
sepgsql
');
# Set of variables for frontend modules
my
$frontend_defines
=
{
'
initdb
'
=>
'
FRONTEND
'
};
my
@frontend_uselibpq
=
('
pg_ctl
',
'
psql
');
my
@frontend_uselibpgport
=
(
'
pg_archivecleanup
'
);
my
@frontend_uselibpgcommon
=
(
'
pg_archivecleanup
'
);
my
@frontend_uselibpq
=
('
pg_ctl
',
'
p
gbench
',
'
p
sql
');
my
@frontend_uselibpgport
=
(
'
pg_archivecleanup
'
,
'
pgbench
'
);
my
@frontend_uselibpgcommon
=
(
'
pg_archivecleanup
'
,
'
pgbench
'
);
my
$frontend_extralibs
=
{
'
initdb
'
=>
['
ws2_32.lib
'],
'
pg_restore
'
=>
['
ws2_32.lib
'],
'
pgbench
'
=>
['
ws2_32.lib
'],
'
psql
'
=>
['
ws2_32.lib
']
};
my
$frontend_extraincludes
=
{
'
initdb
'
=>
['
src
\
timezone
'],
'
psql
'
=>
[
'
src
\
bin
\
pg_dump
',
'
src
\
backend
'
]
};
my
$frontend_extrasource
=
{
'
psql
'
=>
['
src
\
bin
\
psql
\
psqlscan.l
']
};
my
$frontend_extrasource
=
{
'
psql
'
=>
['
src
\
bin
\
psql
\
psqlscan.l
'],
'
pgbench
'
=>
[
'
contrib
\
pgbench
\
exprscan.l
',
'
contrib
\
pgbench
\
exprparse.y
'
],
};
my
@frontend_excludes
=
('
pgevent
',
'
pg_basebackup
',
'
pg_rewind
',
'
pg_dump
',
'
scripts
');
...
...
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