summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-08-24 - Check for NULL before checking whether argument is an array.Michael Meskes
- Remove stary character from string quoting. - Fixed check to report missing varchar pointer implementation.
2005-08-23Add ALTER TABLE ENABLE/DISABLE TRIGGER commands. Change pg_dump toTom Lane
use these instead of its previous hack of changing pg_class.reltriggers. Documentation is lacking, will add that later. Patch by Satoshi Nagayasu, review and some extra work by Tom Lane.
2005-08-23Add new file for win32 threading.Bruce Momjian
2005-08-23The attached patch updates the thread test program to run stand-alone onBruce Momjian
Windows. The test itself is bypassed in configure as discussed, and libpq has been updated appropriately to allow it to build in thread-safe mode. Dave Page
2005-08-23Clean up some very old and crufty code for TID scan planning. Not muchTom Lane
functional difference really, but make use of stuff added to the planner since this code was touched last.
2005-08-23Back out incorrect commit.Bruce Momjian
2005-08-23Fix function name.Bruce Momjian
2005-08-23Fix broken lrand48() implementation, per Merlin Moncure.Tom Lane
2005-08-23Fix wrong dependency on owner created by ALTER OPCLASS OWNER.Tom Lane
Per Alvaro.
2005-08-22Rewrite gather-write patch into something less obviously bolted onTom Lane
after the fact. Fix bug with incorrect test for whether we are at end of logfile segment. Arrange for writes triggered by XLogInsert's is-cache-more-than-half-full test to synchronize with the cache boundaries, so that in long transactions we tend to write alternating halves of the cache rather than randomly chosen portions of it; this saves one more write syscall per cache load.
2005-08-22Back out incorrect use of E'' escape addition.Bruce Momjian
2005-08-22Cause ALTER INDEX OWNER to generate a warning and do nothing, rather thanTom Lane
erroring out as it has done for the last couple weeks. Document that this form is now ignored because indexes can't usefully have different owners from their parent tables. Fix pg_dump to not generate ALTER OWNER commands for indexes.
2005-08-22Fix unwanted denial of ALTER OWNER rights to superusers. There was someTom Lane
discussion of getting around this by relaxing the checks made for regular users, but I'm disinclined to toy with the security model right now, so just special-case it for superusers where needed.
2005-08-22enable_constraint_exclusion => constraint_exclusionBruce Momjian
Also improve wording.
2005-08-22Improve xid wraparound message (the server isn't really shut down, justBruce Momjian
not accepting queries). errmsg("database is not accepting queries to avoid wraparound data loss in database \"%s\"", errhint("Stop the postmaster and use a standalone backend to VACUUM database \"%s\".",
2005-08-22Use an initdb-time test to see if the local version of getaddrinfo()Tom Lane
chokes on IPv6 addresses, and comment out the IPv6 entry in the default pg_hba.conf if so. Per Andrew Dunstan.
2005-08-22Fix some inconsistent choices of datatypes in xlog.c. Make bufferTom Lane
indexes all be int, rather than variously int, uint16 and uint32; add some casts where necessary to support large buffer arrays.
2005-08-21Minor GUC cleanups: document krb_server_hostname and custom_variable_classesTom Lane
in postgresql.conf.sample, mark custom_variable_classes as SIGHUP not POSTMASTER to agree with the documentation (I can't see a reason it has to be POSTMASTER so I think the docs are right).
2005-08-20Seems that the childXids list would be better based on Oid lists thanTom Lane
integer lists.
2005-08-20Convert the arithmetic for shared memory size calculation from 'int'Tom Lane
to 'Size' (that is, size_t), and install overflow detection checks in it. This allows us to remove the former arbitrary restrictions on NBuffers etc. It won't make any difference in a 32-bit machine, but in a 64-bit machine you could theoretically have terabytes of shared buffers. (How efficiently we could manage 'em remains to be seen.) Similarly, num_temp_buffers, work_mem, and maintenance_work_mem can be set above 2Gb on a 64-bit machine. Original patch from Koichi Suzuki, additional work by moi.
2005-08-20Invoke mksafefunc and mkunsafefunc with :: decoration. This seems a goodTom Lane
idea on consistency grounds, whether or not it really fixes bug #1831. Michael Fuhr
2005-08-20Make GetMultiXactIdMembers() a public function.Tatsuo Ishii
2005-08-20Add BackendXidGetPid().Tatsuo Ishii
2005-08-20Repair problems with VACUUM destroying t_ctid chains too soon, and withTom Lane
insufficient paranoia in code that follows t_ctid links. (We must do both because even with VACUUM doing it properly, the intermediate state with a dangling t_ctid link is visible concurrently during lazy VACUUM, and could be seen afterwards if either type of VACUUM crashes partway through.) Also try to improve documentation about what's going on. Patch is a bit bulky because passing the XMAX information around required changing the APIs of some low-level heapam.c routines, but it's not conceptually very complicated. Per trouble report from Teodor and subsequent analysis. This needs to be back-patched, but I'll do that after 8.1 beta is out.
2005-08-19Fix LRU/ALL description mismatch for GUC parameter.Bruce Momjian
2005-08-19Consistently align comments in postgresql.conf, move some slightly toBruce Momjian
the right to stand out.
2005-08-18Update some obsolete comments --- code is using t_self now, not t_ctid.Tom Lane
2005-08-18Fix up LIMIT/OFFSET planning so that we cope with non-constant LIMITTom Lane
or OFFSET clauses by using estimate_expression_value(). The main advantage of this is that if the expression is a Param and we have a value for the Param, we'll use that value rather than defaulting. Also, fix some thinkos in the logic for combining LIMIT/OFFSET with an externally supplied tuple fraction (this covers cases like EXISTS(...LIMIT...)). And make sure the results of all this are shown by EXPLAIN. Per a gripe from Merlin Moncure.
2005-08-18Add hint for to_char(interval) invalid format specifications.Bruce Momjian
2005-08-18Fix to_char(interval) to return proper year and century values.Bruce Momjian
Fix to_char(interval) to return large year/month/day/hour values that are larger than possible timestamp values. Prevent to_char(interval) format specifications that make no sense, like Month. Clean up formatting.c code to more logically handle return lengths.
2005-08-17Avoid an Assert failure if OuterUserId hasn't been set yet duringTom Lane
AbortTransaction. This can happen if a backend's InitPostgres transaction fails (eg, because the given username is invalid). Per Alvaro.
2005-08-17More formatting.c cleanups.Bruce Momjian
2005-08-17Small cleanup.Bruce Momjian
2005-08-17Adjust to_char/from_char code to use boolean "is_to_char" rather thanBruce Momjian
integer with flags.
2005-08-17Fix declaration of dumpacl, per Alvaro.Tom Lane
2005-08-17Fix FSM warning to mention increasing max_fsm_pages. Was incorrectlyBruce Momjian
max_fsm_relations.
2005-08-17Minor cleanup.Bruce Momjian
2005-08-16Update comments.Bruce Momjian
2005-08-16Improve comment.Bruce Momjian
2005-08-16Update pgcvslog comment on how to find branch start time.Bruce Momjian
Run autoconf/autoheader in case someone forgot in the past.
2005-08-16Reject operator names >= NAMEDATALEN characters. These will not workTom Lane
anyway, and in assert-enabled builds you are likely to get an assertion failure. Backpatch as far as 7.3; 7.2 seems not to have the problem.
2005-08-15Rename pg_stat_file columns to be more consistent. Split apart changeBruce Momjian
and creation columns to behave for Unix or Win32.
2005-08-15Clean up recent patch for PL handler functions in pg_catalog: the patchTom Lane
caused PL languages and handlers to be dumped ALWAYS, even in the face of contrary --schema or --table switches. Adopt a slightly saner definition.
2005-08-15Make createlang and droplang proof against weird search_path settingsTom Lane
by forcing search_path to be just pg_catalog.
2005-08-15array_in() and array_recv() need to be more paranoid about validatingTom Lane
their OID parameter. It was possible to crash the backend with select array_in('{123}',0,0); because that would bypass the needed step of initializing the workspace. These seem to be the only two places with a problem, though (record_in and record_recv don't have the issue, and the other array functions aren't depending on user-supplied input). Back-patch as far as 7.4; 7.3 does not have the bug.
2005-08-15Allow the pgstat views to show toast tables as well as regular tablesTom Lane
(the stats system has always collected this info, but the views were filtering it out). Modify autovacuum so that over-threshold activity in a toast table can trigger a VACUUM of the parent table, even if the parent didn't appear to need vacuuming itself. Per discussion a month or so back about "short, wide tables".
2005-08-15Clean up some stray remaining references to pg_shadow, pg_user, pg_group.Tom Lane
2005-08-15Change pg_dump to use pg_roles instead of pg_user on 8.1 and up,Tom Lane
so that it will correctly dump owners of objects owned by non-login roles.
2005-08-14Change standard_compliant_strings to standard_conforming_strings.Peter Eisentraut
2005-08-14Update the createuser utility for the ROLEs world. Alvaro HerreraTom Lane