summaryrefslogtreecommitdiff
path: root/src/tools
AgeCommit message (Collapse)Author
2013-03-24Add parallel pg_dump option.Andrew Dunstan
New infrastructure is added which creates a set number of workers (threads on Windows, forked processes on Unix). Jobs are then handed out to these workers by the master process as needed. pg_restore is adjusted to use this new infrastructure in place of the old setup which created a new worker for each step on the fly. Parallel dumps acquire a snapshot clone in order to stay consistent, if available. The parallel option is selected by the -j / --jobs command line parameter of pg_dump. Joachim Wieland, lightly editorialized by Andrew Dunstan.
2013-03-23Avoid renaming data directory during MSVC upgrade testing.Andrew Dunstan
This appears to cause some intermittent file system problems on Windows 8. Instead, set up the old data directory in its intended final location to start with.
2013-03-17initdb needs pqsignal() even on Windows.Tom Lane
I had thought we weren't using this version of pqsignal() at all on Windows, but that's wrong --- initdb is using it (and coping with the POSIX-ish semantics of bare signal() :-(). So allow the file to be built in WIN32+FRONTEND case, and add it to the MSVC build logic.
2013-03-06Fix message typo.Andrew Dunstan
2013-03-01Exclude utils/probes.h and pg_trace.h from cpluspluscheckPeter Eisentraut
They can include sys/sdt.h from SystemTap, which itself contains C++ code and so won't compile with a C++ compiler under extern "C" linkage.
2013-02-27Fix MSVC build.Heikki Linnakangas
The new file in src/port needs to be listed in Mkvcbuild.pm as well.
2013-02-25Redo MSVC build implementation for pg_xlogdump.Andrew Dunstan
The previous commit didn't work on MSVC editions earlier than Visual Studio 2011, apparently. This works by copying files into the contrib directory, and making provision to clean them up, which should work on all editions.
2013-02-24Provide MSVC build setup for pg_xlogdump.Andrew Dunstan
2013-02-21Move relpath() to libpgcommonAlvaro Herrera
This enables non-backend code, such as pg_xlogdump, to use it easily. The previous location, in src/backend/catalog/catalog.c, made that essentially impossible because that file depends on many backend-only facilities; so this needs to live separately.
2013-02-21Teach MSVC build system about postgres_fdw.Tom Lane
Per buildfarm.
2013-02-14pgindent: Fix order in instructionsPeter Eisentraut
The previous order of steps didn't literally work, because git clean -fdx would delete the downloaded typedefs.list. Also, pgindent needs to be called with a path when one is in at the top of the build tree.
2013-02-12Create libpgcommon, and move pg_malloc et al to itAlvaro Herrera
libpgcommon is a new static library to allow sharing code among the various frontend programs and backend; this lets us eliminate duplicate implementations of common routines. We avoid libpgport, because that's intended as a place for porting issues; per discussion, it seems better to keep them separate. The first use case, and the only implemented by this patch, is pg_malloc and friends, which many frontend programs were already using. At the same time, we can use this to provide palloc emulation functions for the frontend; this way, some palloc-using files in the backend can also be used by the frontend cleanly. To do this, we change palloc() in the backend to be a function instead of a macro on top of MemoryContextAlloc(). This was previously believed to cause loss of performance, but this implementation has been tweaked by Tom and Andres so that on modern compilers it provides a slight improvement over the previous one. This lets us clean up some places that were already with localized hacks. Most of the pg_malloc/palloc changes in this patch were authored by Andres Freund. Zoltán Böszörményi also independently provided a form of that. libpgcommon infrastructure was authored by Álvaro.
2013-02-08Exclude access/rmgrlist.h from cpluspluscheckPeter Eisentraut
It is not meant to be included standalone.
2013-02-06Enable building with Microsoft Visual Studio 2012.Andrew Dunstan
Backpatch to release 9.2 Brar Piening and Noah Misch, reviewed by Craig Ringer.
2013-01-31Properly zero-pad the day-of-year part of the win32 build numberMagnus Hagander
This ensure the version number increases over time. The first three digits in the version number is still set to the actual PostgreSQL version number, but the last one is intended to be an ever increasing build number, which previosly failed when it changed between 1, 2 and 3 digits long values. Noted by Deepak
2013-01-29entab: Fix some compiler warningsPeter Eisentraut
2013-01-09Properly install ecpg_compat and pgtypes libraries on msvcMagnus Hagander
JiangGuiqing
2013-01-07Fix a logic bug in pgindent.Andrew Dunstan
2013-01-05Centralize single quote escaping in src/port/quotes.cMagnus Hagander
For code-reuse in upcoming functionality in pg_basebackup. Zoltan Boszormenyi
2013-01-01Update copyrights for 2013Bruce Momjian
Fully update git head, and update back branches in ./COPYRIGHT and legal.sgml files.
2013-01-01Add new file to MSVC build system as wellMagnus Hagander
2012-12-18Don't include postgres.h in postgres_fe.h for cpluspluscheck.Andrew Dunstan
Error exposed by recent Assert changes. Complaint from Peter Eisentraut.
2012-12-16Properly copy fmgroids.h after clean on Win32Magnus Hagander
Craig Ringer
2012-11-13Adjust find_status for newer Linux 'nm' output format.Bruce Momjian
2012-10-11Unbreak MSVC builds after recent Makefile refactoring.Andrew Dunstan
Based on a suggestion by Peter Eisentraut.
2012-10-07Autoconfiscate selection of 64-bit int type for 64-bit large object API.Tom Lane
Get rid of the fundamentally indefensible assumption that "long long int" exists and is exactly 64 bits wide on every platform Postgres runs on. Instead let the configure script select the type to use for "pg_int64". This is a bit of a pain in the rear since we do not want to pollute client namespace with all the random symbols that pg_config.h defines; instead we have to create a separate generated header file, "pg_config_ext.h". But now that the infrastructure is there, we might have the ability to add some other stuff that's long been wanting in this area.
2012-10-04PL/pgSQL: rename gram.y to pl_gram.yPeter Eisentraut
This makes the naming inside plpgsql consistent and distinguishes the file from the backend's gram.y file. It will also allow easier refactoring of the bison make rules later on.
2012-10-02Allow a few seconds for Windows to catch up with a directory rename when ↵Andrew Dunstan
checking pg_upgrade.
2012-09-26Run check_keywords.pl anytime gram.c is rebuilt.Tom Lane
This script is a bit slow, but still it only takes a fraction of the time the bison run does, so the overhead doesn't seem intolerable. And we definitely need some mechanical aid here, because people keep missing the need to add new keywords to the appropriate keyword-list production. While at it, I moved check_keywords.pl from src/tools into src/backend/parser where it's actually used, and did some very minor cleanup on the script.
2012-09-23RELEASE_NOTES: Fix typoAlvaro Herrera
Jan Urbański
2012-09-22Update translation updates instructionsPeter Eisentraut
2012-09-10Add vcregress.pl target for checking pg_upgrade.Andrew Dunstan
This follows recent addition of Windows/Mingw testing. Backpatch to Release 9.2 so we can get some buildfarm testing going.
2012-09-04Remove src/tool/backend, now that the content is on the web site and wiki.Bruce Momjian
2012-08-31Restore setting of _USE_32BIT_TIME_T to 32 bit MSVC builds.Andrew Dunstan
This was removed in commit cd004067742ee16ee63e55abfb4acbd5f09fbaab, we're not quite sure why, but there have been reports of crashes due to AS Perl being built with it when we are not, and it certainly seems like the right thing to do. There is still some uncertainty as to why it sometimes fails and sometimes doesn't. Original patch from Owais Khani, substantially reworked and extended by Andrew Dunstan.
2012-08-30Add Perl emacs formatting macros to src/tools/editors/emacs.samples.Bruce Momjian
Peter Eisentraut
2012-08-27Have pgindent requre pg_bsd_indent version 1.2 now that a new versionBruce Momjian
has been created by adding #include <stdlib.h> to parse.c. per request from Kevin Grittner.
2012-08-16Add URL for include file visualization tool.Bruce Momjian
2012-08-16Add possible alternate tool for pgrminclude, from Peter GeogheganBruce Momjian
2012-08-10Adjust pgtest coding to be less complex.Bruce Momjian
2012-08-10Fix pgtest to return proper error code based on 'make' return code.Bruce Momjian
2012-08-07Tweak new Perl pgindent for compatibility with middle-aged Perls.Tom Lane
We seem to have a rough policy that our Perl scripts should work with Perl 5.8, so make this one do so. Main change is to not use the newfangled \h character class in regexes; "[ \t]" is a serviceable replacement.
2012-08-04Replace pgindent shell script with Perl script. Update perltidyBruce Momjian
instructions to perltidy Perl files that lack Perl file extensions. pgindent Perl coding by Andrew Dunstan, restructured by me.
2012-07-12Remove 'x =- 1' check for pgindent, not needed, per report from AndrewBruce Momjian
Dunstan.
2012-07-06Have copyright.pl skip updating something that is just the current year,Bruce Momjian
to avoid producing dups, e.g. 2012-2012 Backpatch to 9.2.
2012-07-06Modify copyright.pl so all lines are processed, not just the firstBruce Momjian
match, so files that contain embedded copyrights are updated, e.g. pgsql/help.c. Backpatch to 9.2.
2012-07-06Fix copyright.pl to properly skip the .git directory by adding aBruce Momjian
basename() qualification.
2012-07-06Fix spacing in copyright.pl after being run with missing regex slashBruce Momjian
(now added). Backpatch to 9.2.
2012-07-04Fix missing regex slash that caused perltidy to get confused onBruce Momjian
copyright.pl. Backpatch to 9.2.
2012-07-04Run newly-configured perltidy script on Perl files.Bruce Momjian
Run on HEAD and 9.2.
2012-07-03Have copyright tool mention that certain files should be updated in back ↵Bruce Momjian
branches.