summaryrefslogtreecommitdiff
path: root/src/bin
AgeCommit message (Collapse)Author
2006-10-03Fix yesno_prompt() memory leak in /script tools, reported by Converity.Bruce Momjian
2006-10-03The attached patch changes units of the some default values inBruce Momjian
postgresql.conf. - shared_buffers = 32000kB => 32MB - temp_buffers = 8000kB => 8MB - wal_buffers = 8 => 64kB The code of initdb was a bit modified to write MB-unit values. Values greater than 8000kB are rounded out to MB. GUC_UNIT_XBLOCKS is added for wal_buffers. It is like GUC_UNIT_BLOCKS, but uses XLOG_BLCKSZ instead of BLCKSZ. Also, I cleaned up the test of GUC_UNIT_* flags in preparation to add more unit flags in less bits. ITAGAKI Takahiro
2006-09-27Fix some misuses of strncat().Tom Lane
2006-09-27Remove separate strdup.h header file; it's redundant with port.h.Tom Lane
2006-09-24Suppress useless warning on pre-XP versions of Windows. MagnusTom Lane
2006-09-22Fix bugs in plpgsql and ecpg caused by assuming that isspace() would onlyTom Lane
return true for exactly the characters treated as whitespace by their flex scanners. Per report from Victor Snezhko and subsequent investigation. Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde char-vs-unsigned-char issue. I won't miss <ctype.h> when we are finally able to stop using it.
2006-09-22Surely this temp buffer needn't be static.Tom Lane
2006-09-22Rearrange yes/no prompting code so that the prompts always show thePeter Eisentraut
(possibly (un)translated) letters that are actually expected as input. Also reject invalid responses instead of silenty taken them as "no". with help from Bernd Helmle
2006-09-14Make postgresql.conf.sample match the initdb defaults. This fixesBruce Momjian
comment alignment on most systems.
2006-09-08Fix pg_dump for recent change removing separate RULE privilege.Tom Lane
I had thought this code could be left alone, but I was wrong: as-is it's failing to recognize when to use ALL for table privileges in 8.2.
2006-09-02Revert as not needed/inconsistent with SQL REINDEX:Bruce Momjian
Suppress some NOTICE messages from REINDEX command. Euler Taveira de Oliveira
2006-09-02Suppress some NOTICE messages from REINDEX command.Bruce Momjian
Euler Taveira de Oliveira
2006-08-30Extend COPY to support COPY (SELECT ...) TO ...Tom Lane
Bernd Helmle
2006-08-29Dept. of second thoughts: if query fails part way through, shut downTom Lane
the pager before reporting the error.
2006-08-29Create a FETCH_COUNT parameter that causes psql to execute SELECT-likeTom Lane
queries via a cursor, fetching a limited number of rows at a time and therefore not risking exhausting memory. A disadvantage of the scheme is that 'aligned' output mode will align each group of rows independently leading to odd-looking output, but all the other output formats work reasonably well. Chris Mair, with some additional hacking by moi.
2006-08-29Invent an assign-hook mechanism for psql variables similar to the oneTom Lane
existing for backend GUC variables, and use this to eliminate repeated fetching/parsing of psql variables in psql's inner loops. In a trivial test with lots of 'select 1;' commands, psql's CPU time went down almost 10%, although of course the effect on total elapsed time was much less. Per discussion about how to ensure the upcoming FETCH_COUNT patch doesn't cost any performance when not being used.
2006-08-27Make saveHistory work properly on OS X when HISTFILE is set to /dev/null.Tom Lane
Per discussion with Martin Atukunda.
2006-08-25Add the ability to create indexes 'concurrently', that is, withoutTom Lane
blocking concurrent writes to the table. Greg Stark, with a little help from Tom Lane.
2006-08-21Make the server track an 'XID epoch', that is, maintain higher-order bitsTom Lane
of the transaction ID counter. Nothing is done with the epoch except to store it in checkpoint records, but this provides a foundation with which add-on code can pretend that XIDs never wrap around. This is a severely trimmed and rewritten version of the xxid patch submitted by Marko Kreen. Per discussion, the epoch counter seems the only part of xxid that really needs to be in the core server.
2006-08-21Fixed a few memory leaks. One indeed was part of a loop.Michael Meskes
2006-08-21Fix all known problems with pg_dump's handling of serial sequencesTom Lane
by abandoning the idea that it should say SERIAL in the dump. Instead, dump serial sequences and column defaults just like regular ones. Add a new backend command ALTER SEQUENCE OWNED BY to let pg_dump recreate the sequence-to-column dependency that was formerly created "behind the scenes" by SERIAL. This restores SERIAL to being truly "just a macro" consisting of component operations that can be stated explicitly in SQL. Furthermore, the new command allows sequence ownership to be reassigned, so that old mistakes can be cleaned up. Also, downgrade the OWNED-BY dependency from INTERNAL to AUTO, since there is no longer any very compelling argument why the sequence couldn't be dropped while keeping the column. (This forces initdb, to be sure the right kinds of dependencies are in there.) Along the way, add checks to prevent ALTER OWNER or SET SCHEMA on an owned sequence; you can now only do this indirectly by changing the owning table's owner or schema. This is an oversight in previous releases, but probably not worth back-patching.
2006-08-20Fixed a few trivial memory leaks reported by Coverity just to test my setup.Michael Meskes
2006-08-13Cause psql to report both the returned data and the command status tagTom Lane
for INSERT/UPDATE/DELETE RETURNING. Per discussion.
2006-08-11Make the psql line counter 64-bit so it can handle files > 4gig lines.Bruce Momjian
David Fetter
2006-08-09Suppress MSVC warnings about weak functions by usingBruce Momjian
_CRT_SECURE_NO_DEPRECATE. Hiroshi Saito
2006-08-07Make recovery from WAL be restartable, by executing a checkpoint-likeTom Lane
operation every so often. This improves the usefulness of PITR log shipping for hot standby: formerly, if the standby server crashed, it was necessary to restart it from the last base backup and replay all the WAL since then. Now it will only need to reread about the same amount of WAL as the master server would. The behavior might also come in handy during a long PITR replay sequence. Simon Riggs, with some editorialization by Tom Lane.
2006-08-04Fix bug in new pg_dump -T/-N handling that was dumping system schemas ifBruce Momjian
these options were used before -n/-t.
2006-08-02Fix logic to prevent pg_dump from dumping system schemas; bug introducedBruce Momjian
in recent -t/-n/-T/-N patch. Small style cleanups.
2006-08-01Fix bug I introduced while cleaning up pg_dump -t/-n patch.Bruce Momjian
2006-08-01Add pg_dump -X no-data-for-failed-tables option to suppress loading dataBruce Momjian
if table creation failed (the table already exists). Martin Pitt
2006-08-01Allow multiple -n (schema) and -t (table) pg_dump options, and add -TBruce Momjian
and -N options to exclude objects. Also support regular expressions for option object names. Greg Sabino Mullane
2006-07-31Change the bootstrap sequence so that toast tables for system catalogs areTom Lane
created in the bootstrap phase proper, rather than added after-the-fact by initdb. This is cleaner than before because it allows us to retire the undocumented ALTER TABLE ... CREATE TOAST TABLE command, but the real reason I'm doing it is so that toast tables of shared catalogs will now have predetermined OIDs. This will allow a reasonably clean solution to the problem of locking tables before we load their relcache entries, to appear in a forthcoming patch.
2006-07-27Aggregate functions now support multiple input arguments. I also tookTom Lane
the opportunity to treat COUNT(*) as a zero-argument aggregate instead of the old hack that equated it to COUNT(1); this is materially cleaner (no more weird ANYOID cases) and ought to be at least a tiny bit faster. Original patch by Sergey Koposov; review, documentation, simple regression tests, pg_dump and psql support by moi.
2006-07-27Allow units to be specified with configuration settings.Peter Eisentraut
2006-07-18Mark a few functions as static or NOT_USED.Bruce Momjian
2006-07-17Improve psql's \df slash command to include the argument names and modesNeil Conway
(OUT or INOUT) of the function. Patch from David Fetter, editorialization by Neil Conway.
2006-07-16Fix a few places where $Id$ and $Header$ CVS tags had crept into theTom Lane
source tree. They should all be $PostgreSQL$ of course.
2006-07-15Fix some missing inclusions identified with new pgcheckdefines tool.Tom Lane
2006-07-15Fix some makefiles that fail to yield good results from 'make -qp'.Tom Lane
This doesn't really matter for ordinary building of Postgres, but it's useful for automated checks, such as my just-committed pgcheckdefines.
2006-07-14Remove 576 references of include files that were not needed.Bruce Momjian
2006-07-14Fix a passel of recently-committed violations of the rule 'thou shaltTom Lane
have no other gods before c.h'. Also remove some demonstrably redundant #include lines, mostly of <errno.h> which was added to c.h years ago.
2006-07-13Allow include files to compile own their own.Bruce Momjian
Strip unused include files out unused include files, and add needed includes to C files. The next step is to remove unused include files in C files.
2006-07-11Alphabetically order reference to include files, "N" - "S".Bruce Momjian
2006-07-11Allow each C include file to compile on its own by including any neededBruce Momjian
header files.
2006-07-06WIN32 fixes:Bruce Momjian
I take out patch for this as a promise. This is client-build support of MS-VC6+. Fix for different getaddrinfo structure ordering on Win32 for IPv6. Hiroshi Saito
2006-07-02Add FILLFACTOR to CREATE INDEX.Bruce Momjian
ITAGAKI Takahiro
2006-06-30Fix memory leak introduced in the prior commit, detected by Tom Lane.Alvaro Herrera
2006-06-30Fix use-after-free error reported by Neil Conway.Alvaro Herrera
2006-06-27Fix for recent Win32 pg_dump tar temp file patch.Bruce Momjian
Hiroshi Saito
2006-06-27On Win32, use loop to create pg_dump temporary tar file in the currentBruce Momjian
directory, not in device root, for permission reasons. Backpatch to 8.1.X.