summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-12-07Speed up findObjectByCatalogId() to get rid of the other salientTom Lane
bottleneck in the new pg_dump code.
2003-12-06Replace not-very-bright implementation of topological sort with a betterTom Lane
one (use a priority heap to keep track of items ready to output, instead of searching the input array each time). This brings the runtime of pg_dump back to about what it was in 7.4.
2003-12-06Massive overhaul of pg_dump: make use of dependency information fromTom Lane
pg_depend to determine a safe dump order. Defaults and check constraints can be emitted either as part of a table or domain definition, or separately if that's needed to break a dependency loop. Lots of old half-baked code for controlling dump order removed.
2003-12-05Guard against bug in Solaris' bsearch(), per Michael Wildpaner.Tom Lane
2003-12-03catversion change needed by previous read-onlu GUC variables commit.Joe Conway
2003-12-03Added new group of read-only GUC variables to allow simple accessJoe Conway
to certain compile-time options (FUNC_MAX_ARGS, INDEX_MAX_KEYS, NAMEDATALEN, BLCKSZ, HAVE_INT64_TIMESTAMP). Also added "category", "short_desc", and "extra_desc" to the pg_settings view. Per recent discussion here: http://archives.postgresql.org/pgsql-patches/2003-11/msg00363.php
2003-12-03Planner failed to be smart about binary-compatible expressions in pathkeysTom Lane
and hash bucket-size estimation. Issue has been there awhile but is more critical in 7.4 because it affects varchar columns. Per report from Greg Stark.
2003-12-03Added patch by Dave Cramer for array handling in ecpglib.Michael Meskes
2003-12-02Add a warning to AtEOXact_SPI() to catch cases where the currentJoe Conway
transaction has been committed without SPI_finish() being called first. Per recent discussion here: http://archives.postgresql.org/pgsql-patches/2003-11/msg00286.php
2003-12-02Fix some small errors.Peter Eisentraut
2003-12-02Code and docs review for numeric-factorial patch.Tom Lane
2003-12-01Fix initdb use of mkdir_p().Bruce Momjian
Andrew Dunstan
2003-12-01The attached patch enables contrib/cube to build cleanly under CygwinBruce Momjian
(again). Please consider this patch for the 7.4.1 branch (if there will be one) too. Jason Tishler
2003-12-01This patch refactors execTuples.c in two ways.Bruce Momjian
Neil Conway
2003-12-01This makes help like this:Bruce Momjian
\lo_export LOBOID FILE \lo_import FILE [COMMENT] \lo_list \lo_unlink LOBOID large object operations Instead of not saying anything about what arguments are required. Christopher Kings-Lynne
2003-12-01Win32 patch for Makefile.shlibBruce Momjian
Claudio Natoli
2003-12-01attached is a patch that adds display of the groups a user belongs to toBruce Momjian
\du and a \dg command to psql. It's against 7.4beta5. Markus Bertheau <twanger@bluetwanger.de>
2003-12-01Avoid assuming that type key_t is 32 bits, since it reportedly isn'tTom Lane
on 64-bit Solaris. Use a non-system-dependent datatype for UsedShmemSegID, namely unsigned long (which we were already assuming could hold a shmem key anyway, cf RecordSharedMemoryInLockFile).
2003-12-01This patch reduces some unsightly #ifdefs, and fixes two typos inBruce Momjian
comments in the psql code. This doesn't make any functional change, so feel free to save it for 7.5 Neil Conway
2003-12-01This patch finishes off the work that I did with making viewBruce Momjian
definitions use pretty printing. It does: * Pretty index predicates * Pretty rule definitions * Uppercases PRIMARY KEY and UNIQUE to be consistent with CHECK and FOREIGN KEY * View rules are improved to match table rules: Christopher Kings-Lynne
2003-12-01This patch adds a new GUC var, "default_with_oids", which follows theBruce Momjian
proposal for eventually deprecating OIDs on user tables that I posted earlier to pgsql-hackers. pg_dump now always specifies WITH OIDS or WITHOUT OIDS when dumping a table. The documentation has been updated. Neil Conway
2003-12-01Try to reduce confusion about what is a lock method identifier, a lockBruce Momjian
method control structure, or a table of control structures. . Use type LOCKMASK where an int is not a counter. . Get rid of INVALID_TABLEID, use INVALID_LOCKMETHOD instead. . Use INVALID_LOCKMETHOD instead of (LOCKMETHOD) NULL, because LOCKMETHOD is not a pointer. . Define and use macro LockMethodIsValid. . Rename LOCKMETHOD to LOCKMETHODID. . Remove global variable LongTermTableId in lmgr.c, because it is never used. . Make LockTableId static in lmgr.c, because it is used nowhere else. Why not remove it and use DEFAULT_LOCKMETHOD? . Rename the lock method control structure from LOCKMETHODTABLE to LockMethodData. Introduce a pointer type named LockMethod. . Remove elog(FATAL) after InitLockTable() call in CreateSharedMemoryAndSemaphores(), because if something goes wrong, there is elog(FATAL) in LockMethodTableInit(), and if this doesn't help, an elog(ERROR) in InitLockTable() is promoted to FATAL. . Make InitLockTable() void, because its only caller does not use its return value any more. . Rename variables in lock.c to avoid statements like LockMethodTable[NumLockMethods] = lockMethodTable; lockMethodTable = LockMethodTable[lockmethod]; . Change LOCKMETHODID type to uint16 to fit into struct LOCKTAG. . Remove static variables BITS_OFF and BITS_ON from lock.c, because I agree to this doubt: * XXX is a fetch from a static array really faster than a shift? . Define and use macros LOCKBIT_ON/OFF. Manfred Koizar
2003-12-01Attached is a patch implementing factorial(), returning numeric. PointsBruce Momjian
to note: 1) arttype is numeric. I thought this was the best way of allowing arbitarily large factorials, even though factorial(2^63) is a large number. Happy to change to integers if this is overkill. 2) since we're accepting numeric arguments, the patch tests for floats. If a numeric is passed with non-zero decimal portion, an error is raised since (from memory) they are undefined. Gavin Sherry
2003-12-01netmask() and hostmask() functions should return maximum-length masklen,Tom Lane
per gripe from Joe Sunday.
2003-12-01Force zero_damaged_pages to be effectively ON during recovery from WAL,Tom Lane
since there is no need to worry about damaged pages when we are going to overwrite them anyway from the WAL. Per recent discussion.
2003-12-01Seems there are three GUC variables that are defined as "Shows ..."Bruce Momjian
while you can actually set them with SET. This applied patch changes the wording from "Show" to "Set".
2003-11-30Make PQescapeBytea and byteaout consistent with each other, andJoe Conway
octal escape all octets outside the range 0x20 to 0x7e. This fixes the problem pointed out by Sergey Yatskevich here: http://archives.postgresql.org/pgsql-bugs/2003-11/msg00140.php
2003-11-30Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.Bruce Momjian
2003-11-30Reorder win32/bcc makefile mentions of thread.c for sanity.Bruce Momjian
2003-11-30Add thread.c to Borland CC build.Bruce Momjian
2003-11-29make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon
2003-11-29Put out a more useful version indication in the welcome banner for aTom Lane
standalone backend --- the CVS revision number of postgres.c is not real useful to anyone.
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-27Conditionalize variable that is only used conditionally, to avoid warning.Peter Eisentraut
2003-11-26Second try at fixing no-room-to-move-down PANIC in compact_fsm_storage.Tom Lane
Ward's report that it can still happen in RC2 forces me to realize that this is not a can't-happen condition after all, and that the compaction code had better cope rather than panicking.
2003-11-26Cast field-length variables used in printf to int, because sometimesPeter Eisentraut
they might be of a wider type.
2003-11-25Repair subselect.c's occasional assignment of the wrong vartypmod toTom Lane
Vars created to fill subplan args lists. This is an ancient error, going back at least to 7.0, but is more easily triggered in 7.4 than before because we no longer compare varlevelsup when deciding whether a Param slot can be re-used. Fixes bug reported by Klint Gore.
2003-11-25Get rid of hashkeys field of Hash plan node, since it's redundant withTom Lane
the hashclauses field of the parent HashJoin. This avoids problems with duplicated links to SubPlans in hash clauses, as per report from Andrew Holm-Hansen.
2003-11-25New translationPeter Eisentraut
2003-11-25More adjustment of error messagesPeter Eisentraut
2003-11-25Install all the headers files that the ones that are already installedPeter Eisentraut
depend on.
2003-11-24Avoid using string literal with embedded newline.Tom Lane
2003-11-24Overdue code review for ALTER SEQUENCE patch. Don't generate illegal NodeTom Lane
tree for CYCLE option; don't assume zeros are invalid values for sequence fields other than increment_by; don't reset cache_value when not told to; simplify code for testing whether to apply defaults.
2003-11-24Repair missed renamings of show_statement_stats and show_executor_stats.Tom Lane
2003-11-24Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.Peter Eisentraut
Fixes compilation failure with --enable-thread-safety --with-perl and Perl 5.6.1.
2003-11-23Make the messages and the options parsing a bit more standard.Peter Eisentraut
2003-11-23Add maintainer-clean target.Peter Eisentraut
2003-11-23Add NLS support.Peter Eisentraut
2003-11-21COMMENT ON casts, conversions, languages, operator classes, andTom Lane
large objects. Dump all these in pg_dump; also add code to pg_dump user-defined conversions. Make psql's large object code rely on the backend for inserting/deleting LOB comments, instead of trying to hack pg_description directly. Documentation and regression tests added. Christopher Kings-Lynne, code reviewed by Tom
2003-11-21Remove unused variable.Tom Lane