summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-10-18A few trivial code cleanups motivated by reading warnings generatedTom Lane
by a recent HP C compiler. Mostly, get rid of useless local variables that are assigned to but never used.
2005-10-17Clean up libpq's pollution of application namespace by renaming theTom Lane
exported routines of ip.c, md5.c, and fe-auth.c to begin with 'pg_'. Also get rid of the vestigial fe_setauthsvc/fe_getauthsvc routines altogether.
2005-10-16Add space after description.Bruce Momjian
Euler Taveira de Oliveira
2005-10-15kerberos error message: localhost -> server hostnameBruce Momjian
2005-10-15Fix thinko in pg_read_file: testing for negative result is not the wayTom Lane
to determine whether fread() failed.
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-10-15Update pgindent typedef list.Bruce Momjian
2005-10-14Fix syslog bug: if any messages are emitted to write_syslog beforeTom Lane
the facility has been set, the facility gets set to LOCAL0 and cannot be changed later. This seems reasonably plausible to happen, particularly at higher debug log levels, though I am not certain it explains Han Holl's recent report. Easiest fix is to teach the code how to change the value on-the-fly, which is nicer anyway. I made the settings PGC_SIGHUP to conform with log_destination.
2005-10-14Pass a strdup'd ident string to openlog(), to ensure that reallocationTom Lane
of GUC memory doesn't cause us to start emitting a bogus ident string. Per report from Han Holl. Also some trivial code cleanup in write_syslog.
2005-10-14Allow times of 24:00:00 to match rounding behavior:Bruce Momjian
regression=# select '23:59:59.9'::time(0); time ---------- 24:00:00 (1 row) This is bad because: regression=# select '24:00:00'::time(0); ERROR: date/time field value out of range: "24:00:00" The last example now works.
2005-10-13Fix uppercase TRUE/FALSE that are WIN32 stuffl.Bruce Momjian
2005-10-13Update regression output for new prepare transaction error messages.Bruce Momjian
2005-10-13Make stack_base_ptr non-static, for PL/Java.Bruce Momjian
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-13Update krb_server_name to document that a missing entry defaults toBruce Momjian
'localhost'. Improve kerberos error message.
2005-10-13The patch updates the documentation to reflect the fact that higher valuesBruce Momjian
of client_min_messages (fatal + panic) are valid and also fixes a slight issue with how psql tried to display error messages that aren't sent to the client. We often tell people to ignore errors in response to requests for things like "drop if exists", but there's no good way to completely hide this without upping client_min_messages past ERROR. When running a file like SET client_min_messages TO 'FATAL'; DROP TABLE doesntexist; with "psql -f filename" you get an error prefix of "psql:/home/username/filename:3" even though there is no error message to prefix because it isn't sent to the client. Kris Jurka
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.