aboutsummaryrefslogtreecommitdiff
path: root/src/tools
Commit message (Collapse)AuthorAge
* Add parallel pg_dump option.Andrew Dunstan2013-03-24
| | | | | | | | | | | | | | | 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.
* Avoid renaming data directory during MSVC upgrade testing.Andrew Dunstan2013-03-23
| | | | | | 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.
* initdb needs pqsignal() even on Windows.Tom Lane2013-03-17
| | | | | | | 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.
* Fix message typo.Andrew Dunstan2013-03-06
|
* Exclude utils/probes.h and pg_trace.h from cpluspluscheckPeter Eisentraut2013-03-01
| | | | | 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.
* Fix MSVC build.Heikki Linnakangas2013-02-27
| | | | The new file in src/port needs to be listed in Mkvcbuild.pm as well.
* Redo MSVC build implementation for pg_xlogdump.Andrew Dunstan2013-02-25
| | | | | | | 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.
* Provide MSVC build setup for pg_xlogdump.Andrew Dunstan2013-02-24
|
* Move relpath() to libpgcommonAlvaro Herrera2013-02-21
| | | | | | | 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.
* Teach MSVC build system about postgres_fdw.Tom Lane2013-02-21
| | | | Per buildfarm.
* pgindent: Fix order in instructionsPeter Eisentraut2013-02-14
| | | | | | 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.
* Create libpgcommon, and move pg_malloc et al to itAlvaro Herrera2013-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Exclude access/rmgrlist.h from cpluspluscheckPeter Eisentraut2013-02-08
| | | | It is not meant to be included standalone.
* Enable building with Microsoft Visual Studio 2012.Andrew Dunstan2013-02-06
| | | | | | Backpatch to release 9.2 Brar Piening and Noah Misch, reviewed by Craig Ringer.
* Properly zero-pad the day-of-year part of the win32 build numberMagnus Hagander2013-01-31
| | | | | | | | | 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
* entab: Fix some compiler warningsPeter Eisentraut2013-01-29
|
* Properly install ecpg_compat and pgtypes libraries on msvcMagnus Hagander2013-01-09
| | | | JiangGuiqing
* Fix a logic bug in pgindent.Andrew Dunstan2013-01-07
|
* Centralize single quote escaping in src/port/quotes.cMagnus Hagander2013-01-05
| | | | | | For code-reuse in upcoming functionality in pg_basebackup. Zoltan Boszormenyi
* Update copyrights for 2013Bruce Momjian2013-01-01
| | | | | Fully update git head, and update back branches in ./COPYRIGHT and legal.sgml files.
* Add new file to MSVC build system as wellMagnus Hagander2013-01-01
|
* Don't include postgres.h in postgres_fe.h for cpluspluscheck.Andrew Dunstan2012-12-18
| | | | | | Error exposed by recent Assert changes. Complaint from Peter Eisentraut.
* Properly copy fmgroids.h after clean on Win32Magnus Hagander2012-12-16
| | | | Craig Ringer
* Adjust find_status for newer Linux 'nm' output format.Bruce Momjian2012-11-13
|
* Unbreak MSVC builds after recent Makefile refactoring.Andrew Dunstan2012-10-11
| | | | Based on a suggestion by Peter Eisentraut.
* Autoconfiscate selection of 64-bit int type for 64-bit large object API.Tom Lane2012-10-07
| | | | | | | | | | | | 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.
* PL/pgSQL: rename gram.y to pl_gram.yPeter Eisentraut2012-10-04
| | | | | | 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.
* Allow a few seconds for Windows to catch up with a directory rename when ↵Andrew Dunstan2012-10-02
| | | | checking pg_upgrade.
* Run check_keywords.pl anytime gram.c is rebuilt.Tom Lane2012-09-26
| | | | | | | | | | | 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.
* RELEASE_NOTES: Fix typoAlvaro Herrera2012-09-23
| | | | Jan Urbański
* Update translation updates instructionsPeter Eisentraut2012-09-22
|
* Add vcregress.pl target for checking pg_upgrade.Andrew Dunstan2012-09-10
| | | | | | This follows recent addition of Windows/Mingw testing. Backpatch to Release 9.2 so we can get some buildfarm testing going.
* Remove src/tool/backend, now that the content is on the web site and wiki.Bruce Momjian2012-09-04
|
* Restore setting of _USE_32BIT_TIME_T to 32 bit MSVC builds.Andrew Dunstan2012-08-31
| | | | | | | | | | | 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.
* Add Perl emacs formatting macros to src/tools/editors/emacs.samples.Bruce Momjian2012-08-30
| | | | Peter Eisentraut
* Have pgindent requre pg_bsd_indent version 1.2 now that a new versionBruce Momjian2012-08-27
| | | | | | has been created by adding #include <stdlib.h> to parse.c. per request from Kevin Grittner.
* Add URL for include file visualization tool.Bruce Momjian2012-08-16
|
* Add possible alternate tool for pgrminclude, from Peter GeogheganBruce Momjian2012-08-16
|
* Adjust pgtest coding to be less complex.Bruce Momjian2012-08-10
|
* Fix pgtest to return proper error code based on 'make' return code.Bruce Momjian2012-08-10
|
* Tweak new Perl pgindent for compatibility with middle-aged Perls.Tom Lane2012-08-07
| | | | | | 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.
* Replace pgindent shell script with Perl script. Update perltidyBruce Momjian2012-08-04
| | | | | | instructions to perltidy Perl files that lack Perl file extensions. pgindent Perl coding by Andrew Dunstan, restructured by me.
* Remove 'x =- 1' check for pgindent, not needed, per report from AndrewBruce Momjian2012-07-12
| | | | Dunstan.
* Have copyright.pl skip updating something that is just the current year,Bruce Momjian2012-07-06
| | | | | | to avoid producing dups, e.g. 2012-2012 Backpatch to 9.2.
* Modify copyright.pl so all lines are processed, not just the firstBruce Momjian2012-07-06
| | | | | | | match, so files that contain embedded copyrights are updated, e.g. pgsql/help.c. Backpatch to 9.2.
* Fix copyright.pl to properly skip the .git directory by adding aBruce Momjian2012-07-06
| | | | basename() qualification.
* Fix spacing in copyright.pl after being run with missing regex slashBruce Momjian2012-07-06
| | | | | | (now added). Backpatch to 9.2.
* Fix missing regex slash that caused perltidy to get confused onBruce Momjian2012-07-04
| | | | | | copyright.pl. Backpatch to 9.2.
* Run newly-configured perltidy script on Perl files.Bruce Momjian2012-07-04
| | | | Run on HEAD and 9.2.
* Have copyright tool mention that certain files should be updated in back ↵Bruce Momjian2012-07-03
| | | | branches.