summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-01-13Update pgcvslog to fix problem with duplicate narratives.Bruce Momjian
2001-01-12Add more critical-section calls: all code sections that hold spinlocksTom Lane
are now critical sections, so as to ensure die() won't interrupt us while we are munging shared-memory data structures. Avoid insecure intermediate states in some code that proc_exit will call, like palloc/pfree. Rename START/END_CRIT_CODE to START/END_CRIT_SECTION, since that seems to be what people tend to call them anyway, and make them be called with () like a function call, in hopes of not confusing pg_indent. I doubt that this is sufficient to make SIGTERM safe anywhere; there's just too much code that could get invoked during proc_exit().
2001-01-12Fixed handling of renamed columns in PK constraintsPhilip Warner
2001-01-12- Check ntuples == 1 for various SELECT statements.Philip Warner
- Fix handling of --tables=* (multiple tables never worked properly, AFAICT) - strdup() the current user in DB routines - Check results of IO routines more carefully. - Check results of PQ routines more carefully. Have not fixed index output yet.
2001-01-12Preserve constraints and column defaults during CLUSTER.Tom Lane
Wish they were all this easy ...
2001-01-12New feature:Marc G. Fournier
1. Support of variable size keys - new algorithm of insertion to tree (GLI - gist layrered insertion). Previous algorithm was implemented as described in paper by Joseph M. Hellerstein et.al "Generalized Search Trees for Database Systems". This (old) algorithm was not suitable for variable size keys and could be not effective ( walking up-down ) in case of multiple levels split Bug fixed: 1. fixed bug in gistPageAddItem - key values were written to disk uncompressed. This caused failure if decompression function does real job. 2. NULLs handling - we keep NULLs in tree. Right way is to remove them, but we don't know how to inform vacuum about index statistics. This is just cosmetic warning message (like in case with R-Tree), but I'm not sure how to recognize real problem if we remove NULLs and suppress this warning as Tom suggested. 3. various memory leaks This work was done by Teodor Sigaev (teodor@stack.net) and Oleg Bartunov (oleg@sai.msu.su).
2001-01-11#ifdef out entire file for newer Cygwin versions.Peter Eisentraut
2001-01-11Add DLLIMPORT to TransactionCommandContext.Peter Eisentraut
2001-01-11Remove useless DLLIMPORT (only needed in header files).Peter Eisentraut
2001-01-10Removed a no longer needed SetWaitingForLock() call inHiroshi Inoue
DeadLockCheck().
2001-01-10Do The Right Thing (tm) if asked to cluster a temp table. PreviousTom Lane
code would cluster, but table would magically lose its tempness.
2001-01-09Synced preproc.y with gram.y.Michael Meskes
2001-01-09Remove -L$(libdir) from DLLLIBS to prevent linking with an old versionPeter Eisentraut
(i.e., 7.0.3) of libpostgres.a. From Jason Tishler <jt@dothill.com>.
2001-01-09Add configure check for sys_nerr, to end all discussions.Peter Eisentraut
2001-01-09The KAME files md5.* and sha1.* have the following changelogBruce Momjian
entry: ---------------------------- revision 1.2 date: 2000/12/04 01:20:38; author: tgl; state: Exp; lines: +18 -18 Eliminate some of the more blatant platform-dependencies ... it builds here now, anyway ... ---------------------------- Which basically changes u_int*_t -> uint*_t, so now it does not compile neither under Debian 2.2 nor under NetBSD 1.5 which is platform independent<B8> all right. Also it replaces $KAME$ with $Id$ which is Bad Thing. PostgreSQL Id should be added as a separate line so the file history could be seen. So here is patch: * changes uint*_t -> uint*. I guess that was the original intention * adds uint64 type to include/c.h because its needed [somebody should check if I did it right] * adds back KAME Id, because KAME is the master repository * removes stupid c++ comments in pgcrypto.c * removes <sys/types.h> from the code, its not needed -- marko Marko Kreen
2001-01-09Disable query cancel during HandleDeadLock().Hiroshi Inoue
2001-01-091. Checkpoint.undo may be after checkpoint itself:Vadim B. Mikheev
- no more elog(STOP) in StartupXLOG(); - both checkpoint' undo & redo are used to define oldest on-line log file. 2. Ability to pre-allocate a few log files at checkpoint time (wal_files option). Off by default.
2001-01-09Fix oversight in planning of GROUP queries: when an expression is usedTom Lane
as both a GROUP BY item and an output expression, the top-level Group node should just copy up the evaluated expression value from its input, rather than re-evaluating the expression. Aside from any performance benefit this might offer, this avoids a crash when there is a sub-SELECT in said expression.
2001-01-09Fix small but critical typo ...Tom Lane
2001-01-08Prevent vacuumdb from trying to vacuum template0.Tom Lane
2001-01-08Remove compiler warning about uninitialized warnings.Bruce Momjian
2001-01-08check for failure after vacuuming each DB, not only the last one.Tom Lane
2001-01-08Add some debugging support code (ifdef'd out in normal use).Tom Lane
2001-01-08LockBuffer should not elog while holding buffer's cntx_lock.Tom Lane
2001-01-08Keep relations open until they are no longer needed.Hiroshi Inoue
2001-01-08Make outfuncs/readfuncs treat OIDs properly as unsigned values. Clean upTom Lane
inconsistent coding practices for handling Index values and booleans, too.
2001-01-07Correct nasty error in heap_update: it was releasing the buffer refcountTom Lane
before calling RelationInvalidateHeapTuple(), which is bad because the latter needs to look at the tuple data, which is in the shared disk buffer. If another backend manages to recycle the buffer while this is going on, we will compute the wrong hashindex for the tuple or maybe even crash outright. Must hold buffer refcount until afterwards. (This bug is not in 7.0.*; seems to be have introduced during WAL changes.)
2001-01-07Clear QueryCancel and ProcDiePending at start of proc_exit, to ensureTom Lane
that leftover cancel/die requests cannot interfere with exit activities.
2001-01-07Fix recent breakage of query-cancel logic, see my pghackers messageTom Lane
of 6 Jan 2001 21:55.
2001-01-07Resultmap updates for OpenBSD, per report from bpalmer@crimelabs.net.Tom Lane
2001-01-07Modify readfuncs so that recursive use of stringToNode will not crashTom Lane
and burn. Just for added luck, change reading of CONST nodes so that we do not need to consult pg_type rows while reading them; this means that no database access occurs during stringToNode. This requires changing the order in which const-node fields are written, which means an initdb is forced.
2001-01-07Clean up checking of relkind for ALTER TABLE and LOCK TABLE commands.Tom Lane
Disallow cases like adding constraints to sequences :-(, and eliminate now-unnecessary search of pg_rewrite to decide if a relation is a view.
2001-01-06Log memory context stats to stderr when reporting a 'Memory exhausted'Tom Lane
error, so as to provide a starting point for debugging.
2001-01-06Fix memory leak in relcache handling of rules: allocate rule parsetreesTom Lane
in per-entry sub-memory-context, where they were supposed to go, rather than in CacheMemoryContext where the code was putting them. Must've suffered a severe brain fade when I wrote this :-(
2001-01-06Polish help output. Allow --help to work with BSD getopts.Peter Eisentraut
2001-01-06No need for screen_size to be static.Tom Lane
2001-01-06Simplify the rules that explicitly allowed TYPE as a type name (which isPeter Eisentraut
no longer the case). Add AND and TRAILING to ColLabel. All key words except AS are now at least ColLabel's.
2001-01-06Fix copy to make it more robust against unexpected characterTatsuo Ishii
sequences. This is done by disabling multi-byte awareness when it's not necessary. This is kind of a workaround, not a perfect solution. However, there is no ideal way to parse broken multi-byte character sequences. So I guess this is the best way what we could do right now...
2001-01-06init_irels() is changed to be called in RelationCacheInitializePhase2()Hiroshi Inoue
so that transactional control could guarantee the consistency.
2001-01-06Fix NOT NULL option for plpgsql variables (doesn't look like itTom Lane
could ever have worked...)
2001-01-06Fix misplaced strdup(), which could lead to error messages referencingTom Lane
deallocated memory later on.
2001-01-05Rename and document some invalidation routines to make it clearer thatTom Lane
they don't themselves flush any cache entries, only add to to-do lists that will be processed later.
2001-01-05Remove not-really-standard implementation of CREATE TABLE's UNDER clause,Tom Lane
and revert documentation to describe the existing INHERITS clause instead, per recent discussion in pghackers. Also fix implementation of SQL_inheritance SET variable: it is not cool to look at this var during the initial parsing phase, only during parse_analyze(). See recent bug report concerning misinterpretation of date constants just after a SET TIMEZONE command. gram.y really has to be an invariant transformation of the query string to a raw parsetree; anything that can vary with time must be done during parse analysis.
2001-01-05Disallow creation of a child table by a user who does not own the parentTom Lane
table, per pghackers discussion around 22-Dec-00.
2001-01-04Correct path where to check for password file existance.Peter Eisentraut
2001-01-04Clean up some unnecessary fragility in EXECUTE command.Tom Lane
2001-01-04Repair guaranteed core dump in SPI_exec(). Guess this routine wasn'tTom Lane
used before ...
2001-01-04I neglected to remove a debug message,sorry.Hiroshi Inoue
2001-01-04pg_dump failed to handle backslashes embedded in function definitionsTom Lane
(and most other places where it needed to output a string literal, too, except for data INSERT statements). Per bug report from Easter, 12/1/00.
2001-01-03Fix breakage of rules using NOTIFY actions, per bug report and patchTom Lane
from sergiop@sinectis.com.ar.