summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-10-13Go back to emitting path names with forward slashes on Windows.Tom Lane
I'm not clear on what the double-backslash idea was intended to fix, but it breaks at least mingw GNU Make. Per report from Thomas Hallgren.
2005-10-13Back out this because of fear of changing error strings:Bruce Momjian
This makes the error messages for PREPARE TRANSACTION, COMMIT PREPARED etc. match the docs, which talk about "transaction identifier" not "gid" or "global transaction identifier". Steve Woodcock
2005-10-13This makes the error messages for PREPARE TRANSACTION, COMMIT PREPAREDBruce Momjian
etc. match the docs, which talk about "transaction identifier" not "gid" or "global transaction identifier". Steve Woodcock
2005-10-13Use get_progname() in backend main.c, rather than port-specific hackBruce Momjian
that is too fragile.
2005-10-13Fix small oversight in recent patch to add more CREATE-FUNCTION-timeTom Lane
syntax checking to plpgsql: check_sql_expr() wasn't being called by make_select_stmt(), so that there was no SQL syntax check for SELECT statements.
2005-10-13Remove an antiquated comment.Neil Conway
2005-10-13Add a comment describing the requirement that pointers into shared memoryNeil Conway
that is protected by a spinlock must be volatile, per recent discussion.
2005-10-13Don't try to remove duplicate OR-subclauses in create_bitmap_subplan andTom Lane
make_restrictinfo_from_bitmapqual. The likelihood of finding duplicates seems much less than in the AND-subclause case, and the cost much higher, because OR lists with hundreds or even thousands of subclauses are not uncommon. Per discussion with Ilia Kantor and andrew@supernews.
2005-10-12Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would markTom Lane
the wrong buffer dirty when trying to kill a dead index entry that's on a page after the one it started on. No risk of data corruption, just inefficiency, but still a bug.
2005-10-12Fix another recently-changed place that was messing with spinlock-Tom Lane
protected data structures and not using a volatile pointer for same.
2005-10-12Do all accesses to shared buffer headers through volatile-qualifiedTom Lane
pointers, to ensure that compilers won't rearrange accesses to occur while we're not holding the buffer header spinlock. It's probably not necessary to mark volatile in every single place in bufmgr.c, but better safe than sorry. Per trouble report from Kevin Grittner.
2005-10-11Fix typo in sample pg_hba.conf; per IRC report from Bernhard Neuhauser.Neil Conway
2005-10-11Add infrastructure for making spins_per_delay variable depending onTom Lane
whether we seem to be running in a uniprocessor or multiprocessor. The adjustment rules could probably still use further tweaking, but I'm convinced this should be a win overall.
2005-10-11Don't use a non-locked pre-test of the spinlock on x86_64 machines.Tom Lane
The pre-test has been shown to be a big loss on Opterons and at best a wash on EM64T.
2005-10-11Document that get_attstatsslot/free_attstatsslot only need to be passedTom Lane
valid type information if they are asked to fetch the values part of a pg_statistic slot; these arguments are unneeded if fetching only the numbers part. Use this to save a catcache lookup in btcostestimate, which is looking like a bit of a hotspot in recent profiling. Not a big savings, but since it's essentially free, might as well do it.
2005-10-11Fix oversight in 8.0 modification of RestrictInfo data structures.Tom Lane
A RestrictInfo representing an OR clause now contains two versions of the contained expression, one with sub-RestrictInfos and one without. clause_selectivity() should descend to the version with sub-RestrictInfos so that it has a chance of caching its results for the OR's sub-clauses. Failing to do so resulted in redundant planner effort.
2005-10-10Remove the DELETEs from pg_shadow and pg_group that pg_dumpall used toTom Lane
emit when given the --clean option, in favor of individual DROP ROLE commands. The old technique could not possibly work in 8.1, and was never a very good idea anyway IMHO. The DROP ROLE approach has the defect that the DROPs will fail for roles that own objects or have privileges, but perhaps we can improve that later.
2005-10-10Use a safer order of operations in dropdb(): rollbackable operations,Tom Lane
ie removing shared-dependency entries, should happen before non-rollbackable ones. That way a failure during the rollbackable part doesn't leave us with inconsistent state.
2005-10-10Document the process to update translations.Peter Eisentraut
2005-10-10Translation updatePeter Eisentraut
2005-10-10Fix the problem of GRANTs creating "dangling" privileges not directlyTom Lane
traceable to grant options. As per my earlier proposal, a GRANT made by a role member has to be recorded as being granted by the role that actually holds the grant option, and not the member.
2005-10-10<limits.h> is now needed here, for INT_MAX. Per Michael Fuhr.Tom Lane
2005-10-09Fix (hopefully for the last time) problems with datetime values displayingTom Lane
like '23:59:60' because of fractional-second roundoff problems. Trying to control this upstream of the actual display code was hopeless; the right way is to explicitly round fractional seconds in the display code and then refigure the results if the fraction rounds up to 1. Per bug #1927.
2005-10-08Fix up grammar in variable description string.Tom Lane
2005-10-08Fix Kerberos authentication in wake of virtual-hosts changes --- needTom Lane
to call krb5_sname_to_principal() always. Also, use krb_srvname rather than the hardwired string 'postgres' as the appl_version string in the krb5_sendauth/recvauth calls, to avoid breaking compatibility with PG 8.0. Magnus Hagander
2005-10-08Add spacing around operators.Bruce Momjian
2005-10-07Fix LWLockAssign() so that it can safely be executed after postmasterTom Lane
initialization. Add spinlocking, fix EXEC_BACKEND unsafeness.
2005-10-07Minor parentheses cleanup.Bruce Momjian
2005-10-07Add spaces around operator.Bruce Momjian
2005-10-07Allocate a few extra LWLocks for possible use by add-on modules.Tom Lane
Per request from Marc Munro.
2005-10-07Marginal performance improvement in aclmask(): don't bother withTom Lane
testing ownership if the caller isn't interested in any GOPTION bits (which is the common case). It did not matter in 8.0 where the ownership test was just a trivial equality test, but it matters now.
2005-10-07Recognize ERROR_SHARING_VIOLATION (translate to EACCES), increase logTom Lane
level for unrecognized win32 error codes to LOG, and make messages conform to style guide. Per old suggestion from Qingqing Zhou, which seems to have gotten lost in the shuffle.
2005-10-07Remove an unused typedef.Alvaro Herrera
2005-10-06Marginal speedup in RelationIsVisible and TypeIsVisible: avoid a redundantTom Lane
cache lookup in the success case. This won't help much for cases where the given relation is far down the search path, but it does not hurt in any cases either; and it requires only a little new code. Per gripe from Jim Nasby about slowness of \d with many tables.
2005-10-06Minor API cleanup for async notifications: we can only register theNeil Conway
current backend in pg_listener, so there is little point in making the PID to register part of async.c's public API. Other minor tweaks.
2005-10-06When a function not returning RECORD has a single OUT parameter, useTom Lane
the parameter's name (if any) as the default column name for SELECT FROM the function, rather than the function name as previously. I still think this is a bad idea, but I lost the argument. Force decompilation of function RTEs to specify full aliases always, to reduce the odds of this decision breaking dumped views.
2005-10-06Fix oversight in indexscan plan creation. I recently added code to useTom Lane
predicate_implied_by() to detect redundant filter conditions, but forgot that predicate_implied_by() assumes its first argument contains only immutable functions. Add a check to guarantee that. Also, test to see if filter conditions can be discarded because they are redundant with the predicate of a partial index.
2005-10-06pg_config should print an error message to stderr and exit if anPeter Eisentraut
information item is not available.
2005-10-06Revise pgstats stuff to fix the problems with not counting accessesTom Lane
generated by bitmap index scans. Along the way, simplify and speed up the code for counting sequential and index scans; it was both confusing and inefficient to be taking care of that in the per-tuple loops, IMHO. initdb forced because of internal changes in pg_stat view definitions.
2005-10-05Code cleanup for log_disconnections(). Patch from Qingqing Zhou,Neil Conway
fixes by Neil Conway.
2005-10-05Make set_function_size_estimates() marginally smarter: per originalTom Lane
comment, it can at least test whether the expression returns set.
2005-10-05Also synced the ecpg lexer with the backend lexer.Michael Meskes
2005-10-05Fix pgxs for spaces in file names on Win32Bruce Momjian
Dave Page
2005-10-04Clean up some messages and fix missing translation support. Option --logPeter Eisentraut
renamed to --log-file for clarity.
2005-10-04Somehow I missed some parser changes, so this commit comes pretty late. I ↵Michael Meskes
just synced the parser of ecpg against the backend version, but still have to sync the lexer. Also I fixed a bug in a bug fix I committed a few weeks ago. he check for a varchar pointer was incomplete.
2005-10-04Add _ to gettext triggers. Must have been forgotten here when it was introduced.Peter Eisentraut
2005-10-04Add an expected case to cover error message as spelled by python 2.2.3.Tom Lane
Per buildfarm results and Michael Fuhr.
2005-10-03COPY's test for read-only transaction was backward; it prohibited COPY TOTom Lane
where it should prohibit COPY FROM. Found by Alon Goldshuv.
2005-10-03Add a trace_sort option to help with measuring resource usage of externalTom Lane
sort operations. Per recent discussion. Simon Riggs and Tom Lane.
2005-10-03Separate out the VacRUsage stuff as an independent module, in preparationTom Lane
for using it for other things besides VACUUM.