summaryrefslogtreecommitdiff
path: root/src/backend
Commit message (Collapse)AuthorAgeFilesLines
* Conditionalize variable that is only used conditionally, to avoid warning.Peter Eisentraut2003-11-271-2/+4
|
* Second try at fixing no-room-to-move-down PANIC in compact_fsm_storage.Tom Lane2003-11-261-17/+47
| | | | | | 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.
* Repair subselect.c's occasional assignment of the wrong vartypmod toTom Lane2003-11-251-2/+8
| | | | | | | 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.
* Get rid of hashkeys field of Hash plan node, since it's redundant withTom Lane2003-11-257-64/+29
| | | | | | 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.
* Overdue code review for ALTER SEQUENCE patch. Don't generate illegal NodeTom Lane2003-11-242-51/+68
| | | | | | 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.
* Repair missed renamings of show_statement_stats and show_executor_stats.Tom Lane2003-11-241-5/+5
|
* COMMENT ON casts, conversions, languages, operator classes, andTom Lane2003-11-216-16/+419
| | | | | | | | | 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
* Remove unused variable.Tom Lane2003-11-211-2/+2
|
* Background writer processJan Wieck2003-11-199-36/+251
| | | | | | | | This first part of the background writer does no syncing at all. It's only purpose is to keep the LRU heads clean so that regular backends seldom to never have to call write(). Jan
* Fix datetime input parsing to accept YYYY-MONTHNAME-DD and related syntaxes,Tom Lane2003-11-161-17/+64
| | | | | | which had been unintentionally broken by recent changes to tighten up the DateStyle rules for all-numeric date input. Add documentation and regression tests for this, too.
* Changed parameter name for shared cache status report interval toJan Wieck2003-11-163-10/+10
| | | | | | | | | debug_shared_buffers = <seconds> as per previous discussion. Jan
* Make creation of statistics collection socket more robust, by allowing itTom Lane2003-11-151-39/+64
| | | | | to try additional addresses returned from getaddrinfo() if the first one fails at the bind() or connect() steps. Per yesterday's discussion.
* Translation updatesPeter Eisentraut2003-11-142-2/+8871
|
* Add CHECK_FOR_INTERRUPTS() to bootstrap command loop, so that control-CTom Lane2003-11-141-1/+2
| | | | can terminate the bootstrap run.
* Added documentation for the new interface between the buffer managerJan Wieck2003-11-141-1/+153
| | | | | | | and the cache replacement strategy as well as a description of the ARC algorithm and the special tailoring of that done for PostgreSQL. Jan
* Translation updatesPeter Eisentraut2003-11-141-1327/+1381
|
* Dunno why this got committed with DOS newlines, but fix that, andTom Lane2003-11-131-270/+273
| | | | add a header comment/copyright notice.
* 2nd try for the ARC strategy.Jan Wieck2003-11-137-205/+922
| | | | | | | | | I added a couple more Assertions while tracking down the exact cause of the former bug. All 93 regression tests pass now. Jan
* ARC strategy backed out ... sorryJan Wieck2003-11-137-896/+205
| | | | Jan
* Replacement of the buffer replacement strategy with an ARCJan Wieck2003-11-137-205/+896
| | | | | | algorithm adopted for PostgreSQL. Jan
* Cross-data-type comparisons are now indexable by btrees, pursuant to myTom Lane2003-11-1252-1053/+1504
| | | | | | | | | | pghackers proposal of 8-Nov. All the existing cross-type comparison operators (int2/int4/int8 and float4/float8) have appropriate support. The original proposal of storing the right-hand-side datatype as part of the primary key for pg_amop and pg_amproc got modified a bit in the event; it is easier to store zero as the 'default' case and only store a nonzero when the operator is actually cross-type. Along the way, remove the long-since-defunct bigbox_ops operator class.
* Cleanup for recent .exe Win32 fix.Bruce Momjian2003-11-121-1/+2
|
* Add .exe to Win32 stat calls. Don't symlink postmaster on Win32.Bruce Momjian2003-11-112-4/+19
|
* Add system_views.sql to CVS.Bruce Momjian2003-11-111-0/+270
|
* Move system_views.sql into backend/catalog, per Tom.Bruce Momjian2003-11-111-3/+3
|
* * ioctlsocket_retBruce Momjian2003-11-111-2/+2
| | | | | | - is not initialized to 1 (at least in the WIN_32 code I started with!) Claudio Natoli
* Remove rcsid CVS header variable --- not used.Bruce Momjian2003-11-102-8/+4
|
* Add operator strategy and comparison-value datatype fields to ScanKey.Tom Lane2003-11-0955-1912/+836
| | | | | | | | | | | Remove the 'strategy map' code, which was a large amount of mechanism that no longer had any use except reverse-mapping from procedure OID to strategy number. Passing the strategy number to the index AM in the first place is simpler and faster. This is a preliminary step in planned support for cross-datatype index operations. I'm committing it now since the ScanKeyEntryInitialize() API change touches quite a lot of files, and I want to commit those changes before the tree drifts under me.
* Correct misspellings of REFERENCES.Tom Lane2003-11-081-4/+4
|
* Don't need hack copy of system() anymore in OS X 10.3.Tom Lane2003-11-082-0/+11
|
* Fix process-status handling for OS X 10.3.Tom Lane2003-11-081-4/+10
|
* Cause stats processes to detach from shared memory when started, so thatTom Lane2003-11-072-10/+33
| | | | | they do not prevent the postmaster from deleting the shmem segment during a post-backend-crash restart cycle. Per recent discussion.
* zero_damaged_pages must absolutely NOT be marked GUC_DISALLOW_IN_FILE,Tom Lane2003-11-071-2/+2
| | | | | else it cannot be used to handle failures detected during WAL replay. Fortunately this flag isn't actually enforced yet, but get it right.
* Implement isolation levels read uncommitted and repeatable read as actingPeter Eisentraut2003-11-069-26/+61
| | | | like the next higher one.
* Fix for this problem:Tom Lane2003-11-052-30/+58
| | | | | | | | | | | regression=# select 1 from tenk1 ta cross join tenk1 tb for update; ERROR: no relation entry for relid 3 7.3 said "SELECT FOR UPDATE cannot be applied to a join", which was better but still wrong, considering that 7.2 took the query just fine. Fix by making transformForUpdate() ignore JOIN and other special RTE types, rather than trying to mark them FOR UPDATE. The actual error message now only appears if you explicitly name the join in FOR UPDATE.
* Update future-tense comments in README to present tense. Noted byTom Lane2003-10-311-17/+16
| | | | Neil Conway.
* When a superuser does GRANT or REVOKE on an object he doesn't own,Tom Lane2003-10-311-49/+98
| | | | | | | | | process the command as though it were issued by the object owner. This prevents creating weird scenarios in which the same privileges may appear to flow from different sources, and ensures that a superuser can in fact revoke all privileges if he wants to. In particular this means that the regression tests work when run by a superuser other than the original bootstrap userid. Per report from Larry Rosenman.
* Fix for possible referential integrity violation when a qualified ON INSERTJan Wieck2003-10-311-2/+4
| | | | | | | | rule split the query into one INSERT and one UPDATE where the UPDATE then hit's the just created row without modifying the key fields again. In this special case, the new key slipped in totally unchecked. Jan
* Fix some corner cases in ACL manipulation: don't foul up on an emptyTom Lane2003-10-292-56/+61
| | | | | | ACL array, and force languages to be treated as owned by the bootstrap user ID. (pg_language should have a lanowner column, but until it does this will have to do as a workaround.)
* Give a useful error message if a RangeVar is encountered in an expression.Tom Lane2003-10-291-1/+21
| | | | Per example from Ian Barwick, 28-Oct-03.
* compact_fsm_storage() does need to handle the case where a relation'sTom Lane2003-10-291-9/+19
| | | | | FSM data has to be both moved down and compressed. Per report from Dror Matalon.
* Change Solaris tests to test for SHM_SHARE_MMU, per Tom.Bruce Momjian2003-10-271-3/+3
|
* 'sun' => '__sun__'Bruce Momjian2003-10-261-3/+3
|
* Test for 'sun' rather than 'solaris' for intimate shared memory.Bruce Momjian2003-10-261-3/+3
|
* Translation updatePeter Eisentraut2003-10-251-6710/+6662
|
* Remove socket credentials defines not referenced.Bruce Momjian2003-10-251-4/+4
|
* Translation updatesPeter Eisentraut2003-10-241-2213/+2060
|
* It is possible for ResolveNew to be used to insert a sublink into aTom Lane2003-10-201-8/+28
| | | | | | | | | | subquery that didn't previously have one. We have traditionally made the caller of ResolveNew responsible for updating the hasSubLinks flag of the outermost query, but this fails to account for hasSubLinks in subqueries. Fix ResolveNew to handle this. We might later want to change the calling convention of ResolveNew so that it can fix the outer query too, simplifying callers. But I went with the localized fix for now. Per bug report from J Smith, 20-Oct-03.
* Improve error reporting in parseTypeString(), motivated by confusingTom Lane2003-10-201-6/+28
| | | | behavior reported by Martin Marques.
* Save_r, Save_t should be static not global variables.Tom Lane2003-10-191-4/+4
|