aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Delete pg_statistics rows for a relation during heap_destroy_with_catalog.Tom Lane1999-11-28
| | | | | | | | By dropping stats rows here, we eliminate the need for VACUUM to do a wholesale remove of stats rows. Before, pg_statistics was wiped clean at the start of VACUUM, ensuring poor planning results for any backends running in parallel until VACUUM got around to rebuilding the stats for the relations they are accessing.
* lmgr.c didn't check for failure return from LockAcquire(). Boo hiss.Tom Lane1999-11-28
|
* Add missing SpinRelease() to a couple of error exits --- bug found whileTom Lane1999-11-28
| | | | testing concurrent VACUUMs.
* COPY to a relation should keep write lock till transaction commit.Tom Lane1999-11-27
| | | | Thanks to Hiroshi for spotting the problem.
* pg_statistic has an index now too...Tom Lane1999-11-27
|
* Fix references to backend/port files so that they actually work.Tom Lane1999-11-27
|
* Oops, forgot to commit this one last week. Part of patch to updateTom Lane1999-11-27
| | | | | regress test expected outputs for change in 'Cannot insert a duplicate key' error message wording.
* Change // to /* */Bruce Momjian1999-11-26
|
* Fix missing prototype psql warning.Bruce Momjian1999-11-26
|
* * Includes tab completion. It's not magic, but it's very cool. At anyBruce Momjian1999-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rate it's better than what used to be there. * Does proper SQL "host variable" substitution as pointed out by Andreas Zeugwetter (thanks): select * from :foo; Also some changes in how ':' and ';' are treated (escape with \ to send to backend). This does _not_ affect the '::' cast operator, but perhaps others that contain : or ; (but there are none right now). * To show description with a <something> listing, append '?' to command name, e.g., \df?. This seemed to be the convenient and logical solution. Or append a '+' to see more useless information, e.g., \df+. * Fixed fflush()'ing bug pointed out by Jan during the regression test discussion. * Added LastOid variable. This ought to take care of TODO item "Add a function to return the last inserted oid, for use in psql scripts" (under CLIENTS) E.g., insert into foo values(...); insert into bar values(..., :LastOid); \echo $LastOid * \d command shows constraints, rules, and triggers defined on the table (in addition to indices) * Various fixes, optimizations, corrections * Documentation update as well Note: This now requires snprintf(), which, if necessary, is taken from src/backend/port. This is certainly a little weird, but it should suffice until a source tree cleanup is done. Enjoy. -- Peter Eisentraut Sernanders väg 10:115
* Fix for bool casting.Bruce Momjian1999-11-25
|
* Added another single byte oriented decompressor, useful forJan Wieck1999-11-25
| | | | | | | | | comparision functions. Added all lztext comparision functions, operators and a default operator class for nbtree on lztext. Jan
* Add opid to selectivity function call.Bruce Momjian1999-11-25
|
* Enable pg_statistic cache use.Bruce Momjian1999-11-25
|
* Cleanup for pg_statistic commit.Bruce Momjian1999-11-24
|
* Add pg_statistic index, add missing Hiroshi file.Bruce Momjian1999-11-24
|
* Add multi-byte support to lztextlen()Tatsuo Ishii1999-11-24
|
* Rename heap_replace to heap_update.Bruce Momjian1999-11-24
|
* Rename heap_replace to heap_update.Bruce Momjian1999-11-24
|
* Tid access method feature from Hiroshi Inoue, Inoue@tpf.co.jpBruce Momjian1999-11-23
|
* ecpg ECPGFree fix from Rene Hogendoorn.Bruce Momjian1999-11-23
|
* Fix _cplusplus test in both trees.Bruce Momjian1999-11-23
|
* *** empty log message ***Michael Meskes1999-11-23
|
* Update opclass to be non-unique.Bruce Momjian1999-11-23
|
* Update for change of 'duplicate key' message.Tom Lane1999-11-23
|
* Reduce ReleaseLruFile failure from FATAL to ERROR grade; offhand I don'tTom Lane1999-11-23
| | | | see that this should be a worse way to fail to open a file than any other.
* verify_password() leaked a file descriptor if it failed to find the givenTom Lane1999-11-23
| | | | | userid in the flat password file. Do it enough times and the postmaster panicked :-(
* Add system indexes to match all caches.Bruce Momjian1999-11-22
| | | | | | | Make all system indexes unique. Make all cache loads use system indexes. Rename *rel to *relid in inheritance tables. Rename cache names to be clearer.
* *** empty log message ***Michael Meskes1999-11-22
|
* Clean up some problems in error recovery --- elog() was pretty brokenTom Lane1999-11-22
| | | | | | for the case of errors in backend startup, and proc_exit's method for coping with errors during proc_exit was *completely* busted. Fixed per discussions on pghackers around 11/6/99.
* Come to think of it, DropBuffers() could have the same problem asTom Lane1999-11-22
| | | | | ReleaseRelationBuffers --- need to wait if anyone is trying to flush out that buffer.
* ReleaseRelationBuffers() failed to check for I/O in progress on a bufferTom Lane1999-11-22
| | | | | | | it wants to release. This leads to a race condition: does the backend that's trying to flush the buffer do so before the one that's deleting the relation does so? Usually no problem, I expect, but on occasion this could lead to hard-to-reproduce complaints from md.c, especially mdblindwrt.
* Combine index_info and find_secondary_indexes into a single routine thatTom Lane1999-11-21
| | | | | | | | | returns a list of RelOptInfos, eliminating the need for static state in index_info. That static state was a direct cause of coredumps; if anything decided to elog(ERROR) partway through an index_info search of pg_index, the next query would try to close a scan pointer that was pointing at no-longer-valid memory. Another example of the reasons to avoid static state variables...
* index_destroy() must grab exclusive access to the parent tableTom Lane1999-11-21
| | | | | | | | | | of the index it wants to destroy. This ensures that no other backend is actively scanning or updating that index. Getting exclusive access on the index alone is NOT sufficient, because the executor is rather cavalier about getting locks on indexes --- see ExecOpenIndices(). It might be better to grab index locks in the executor, but I'm not sure the extra lockmanager traffic is really worth it just to make index_destroy cleaner.
* Clean up comments.Tom Lane1999-11-21
|
* Change backend-side COPY to write files with permissions 644 not 666Tom Lane1999-11-21
| | | | | | | | | (whoever thought world-writable files were a good default????). Modify the pg_pwd code so that pg_pwd is created with 600 permissions. Modify initdb so that permissions on a pre-existing PGDATA directory are not blindly accepted: if the dir is already there, it does chmod go-rwx to be sure that the permissions are OK and the dir actually is owned by postgres.
* Repair problem exposed by Jan's new parallel-regression-test scaffold:Tom Lane1999-11-21
| | | | | | | inval.c thought it could safely use the catcache to look up the OIDs of system relations. Not good, considering that inval.c could be called during catcache loading, if a shared-inval message arrives. Rip out the lookup logic and instead use the known OIDs from pg_class.h.
* Tweak run_check.sh so it prints the name of each test in a parallel groupTom Lane1999-11-21
| | | | | as that test finishes --- helps to give the impression that something is happening...
* My latest fixes to gram.y cause CREATE TABLE t (f1 bool default 1 < 2)Tom Lane1999-11-20
| | | | to be accepted, but constraints regress test was expecting it to fail.
* Fix problems with CURRENT_DATE and related functions being used inTom Lane1999-11-20
| | | | | | | | table defaults or rules: translate them to a function call so that parse_coerce doesn't reduce them to a date or time constant immediately. Also, eliminate a lot of redundancy in the expression grammar by defining a new nonterminal com_expr, which contains all the productions that can be shared by a_expr and b_expr.
* Fix a couple of portability problems in Jan's first-cut parallel testTom Lane1999-11-20
| | | | script. This is way cool...
* New parallel regression test shell and related things.Jan Wieck1999-11-19
| | | | Jan
* Fix for arm32 and fix for dbname with dash.Bruce Momjian1999-11-18
|
* Changed pg_rewrite attributes ev_qual and ev_action to the newJan Wieck1999-11-18
| | | | | | compressed lztext data type. Jan
* Fix problem with temp tables shown in regression test by Jan.Bruce Momjian1999-11-17
|
* Some minor corrections to the LZ compression. In fact I wanted toJan Wieck1999-11-17
| | | | | | HAVE the required OID's first. Jan
* The new LZ compression and an lztext data type based on it.Jan Wieck1999-11-17
| | | | Jan
* Fix lookup of temp table names that I missed yesterday.Bruce Momjian1999-11-16
|
* Modify elog() logic so that it won't try to longjmp(Warn_restart) beforeTom Lane1999-11-16
| | | | | | | | | | Warn_restart has been set by the backend main loop. This means that elog(ERROR) or elog(FATAL) in the postmaster or during backend startup now have well-defined behavior: proc_exit() rather than coredump. In the case of elog() inside the postmaster, I think that proc_exit() is probably not enough --- don't we want our child backends to be forced to quit too? But I don't understand Vadim's recent changes in this area, so I'll leave it to him to look over and tweak if needed.
* Commit to make clearer distinction for temp names and real names.Bruce Momjian1999-11-16
| | | | Thanks to Tom Lane for ideas.