summaryrefslogtreecommitdiff
path: root/src/backend
AgeCommit message (Collapse)Author
2001-05-30Remove OLD_FILE_NAMING code. No longer used.Bruce Momjian
2001-05-30Tweak StrategyEvaluation data structure to eliminate hardwired limit onTom Lane
number of strategies supported by an index AM. Add missing copyright notices and CVS $Header$ markers to GIST source files.
2001-05-30Fix broken $Header$ declaration.Tom Lane
2001-05-30Remove SEP_CHAR, replace with / or '/' as appropriate.Bruce Momjian
2001-05-30These patches should fix check constraints not inheritingBruce Momjian
when added by alter table add constraint. The first file patches backend/commands/command.c and the latter is a patch to the alter table regression test. Stephan Szabo
2001-05-30Attached is my patch that adds DROP CONSTRAINT support to PostgreSQL. IBruce Momjian
basically want your guys feedback. I have sprinkled some of my q's thru the text delimited with the @@ symbol. It seems to work perfectly. [ Removed @@ comments because patch was reviewed. ] At the moment it does CHECK constraints only, with inheritance. However, due to the problem mentioned before with the mismatching between inherited constraints it may be wise to disable the inheritance feature for a while. it is written in an extensible fashion to support future dropping of other types of constraint, and is well documented. Please send me your comments, check my use of locking, updating of indices, use of ERROR and NOTICE, etc. and I will rework the patch based on feedback until everyone is happy with it... Christopher Kings
2001-05-28Make text <=> char conversion functions convert zero character to andTom Lane
from an empty text string. This makes them consistent with the de facto behavior of type char's I/O conversion functions, and avoids generating text values with embedded nulls, which confuse many text operators.
2001-05-28Fix a message error in utf_to_localTatsuo Ishii
2001-05-27When using a junkfilter, the output tuple should NOT be stored back intoTom Lane
the same tuple slot that the raw tuple came from, because that slot has the wrong tuple descriptor. Store it into its own slot with the correct descriptor, instead. This repairs problems with SPI functions seeing inappropriate tuple descriptors --- for example, plpgsql code failing to cope with SELECT FOR UPDATE.
2001-05-27Cause ExecCountSlots() accounting to bear some relationship to reality.Tom Lane
Rather surprising we hadn't seen bug reports about this ...
2001-05-27Fix eqjoinsel() to make use of new statistics.Tom Lane
2001-05-27Make UPDATE and DELETE privileges distinct. Add REFERENCES and TRIGGERPeter Eisentraut
privileges. INSERT and COPY FROM now require INSERT (only). Add privileges regression test.
2001-05-25Oops, only wanted python change in the last commit. Backing out.Bruce Momjian
2001-05-25While changing Cygwin Python to build its core as a DLL (like Win32Bruce Momjian
Python) to support shared extension modules, I have learned that Guido prefers the style of the attached patch to solve the above problem. I feel that this solution is particularly appropriate in this case because the following: PglargeType PgType PgQueryType are already being handled in the way that I am proposing for PgSourceType. Jason Tishler
2001-05-24I haven't tried building postgres with the Watcom compiler for 7.1 becauseBruce Momjian
it does not support 64bit integers. AFAIK that's the default data type for OIDs, so I am not surprised that this does not work. Use gcc instead. BTW., 7.1 does not compile as is with gcc either, I believed the required patches made it into the 7.1.1 release but obviously I missed the deadline. Since the ports mailing list does not seem to be archived I have attached a copy of the patch (for 7.1 and 7.1.1). I've just performed a build of a Watcom compiled version and found a couple of bugs in the watcom specific part of that patch. Please use the attached version instead. Tegge, Bernd
2001-05-22I found the answer to this: the partition had filled up, and so the problemBruce Momjian
was lack of disk space. Oliver Elphick
2001-05-22Make bit and bit varying types reject too long input. (They already triedPeter Eisentraut
to do that, but inconsistently.) Make bit type reject too short input, too, per SQL. Since it no longer zero pads, 'zpbit*' has been renamed to 'bit*' in the source, hence initdb.
2001-05-22The Watcom preprocessor adds a space at the start of each line. ThereforeBruce Momjian
the output of "egrep '^[0-9]' " is empty. Changing the pattern to "egrep '^[ ]*[0-9]" generates the correct file. Tegge, Bernd
2001-05-21Print error on SELECT tab FROM tab:Bruce Momjian
You can't use relation names alone in the target list, try relation.*
2001-05-21Make char(n) and varchar(n) types raise an error if the inserted string isPeter Eisentraut
too long. While I was adjusting the regression tests I moved the array things all into array.sql, to make things more manageable.
2001-05-21Enhancement of SPI to get access to portalsJan Wieck
- New functions to create a portal using a prepared/saved SPI plan or lookup an existing portal by name. - Functions to fetch/move from/in portals. Results are placed in the usual SPI_processed and SPI_tuptable, so the entire set of utility functions can be used to gain attribute access. - Prepared/saved SPI plans now use their own memory context and SPI_freeplan(plan) can remove them. - Tuple result sets (SPI_tuptable) now uses it's own memory context and can be free'd by SPI_freetuptable(tuptab). Enhancement of PL/pgSQL - Uses generic named portals internally in FOR ... SELECT loops to avoid running out of memory on huge result sets. - Support for CURSOR and REFCURSOR syntax using the new SPI functionality. Cursors used internally only need no explicit transaction block. Refcursor variables can be used inside of explicit transaction block to pass cursors between main application and functions. Jan
2001-05-20Modify optimizer data structures so that IndexOptInfo lists built forTom Lane
create_index_paths are not immediately discarded, but are available for subsequent planner work. This allows avoiding redundant syscache lookups in several places. Change interface to operator selectivity estimation procedures to allow faster and more flexible estimation. Initdb forced due to change of pg_proc entries for selectivity functions!
2001-05-19Make sure fmgr_info() fills in fn_oid last, so that no partiallyPeter Eisentraut
initialized FmgrInfo structs linger after elog.
2001-05-19Allow special '$libdir' macro to show up in object file path in CREATEPeter Eisentraut
FUNCTION command. Guard against trying to load a directory. Update documentation some.
2001-05-19Comment additions in parser.Bruce Momjian
2001-05-19Move ParserFuncOrColumn function higher in the file.Bruce Momjian
2001-05-19New comment. This func/column things has always confused me.Bruce Momjian
/* * parse function * This code is confusing because the database can accept * relation.column, column.function, or relation.column.function. * In these cases, funcname is the last parameter, and fargs are * the rest. * * It can also be called as func(col) or func(col,col). * In this case, Funcname is the part before parens, and fargs * are the part in parens. * */ Node * ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs, bool agg_star, bool agg_distinct, int precedence)
2001-05-18Undo \dT change. Not worth it.Bruce Momjian
2001-05-18Rename ParseFuncOrColumn() to ParseColumnOrFunc().Bruce Momjian
2001-05-18Small code cleanups,formatting.Bruce Momjian
2001-05-18Suppress compiler warnings about pid_t vs int.Tom Lane
2001-05-17Add dynamic_library_path parameter and automatic appending of sharedPeter Eisentraut
library extension.
2001-05-17Prevent forced blank line before comment block in pgindent.Bruce Momjian
2001-05-17Spacing cleanup.Bruce Momjian
2001-05-17Small cleanup of spacing.Bruce Momjian
2001-05-17Replace poorly-coded vac_find_eq routine with call to standard bsearchTom Lane
library code. Tweak progress messages to include elapsed real time, not only CPU time.
2001-05-16Add missing paren.Bruce Momjian
2001-05-16Repair race condition introduced into heap_update() in 7.1 ---Tom Lane
PageGetFreeSpace() was being called while not holding the buffer lock, which not only could yield a garbage answer, but even if it's the right answer there might be less space available after we reacquire the buffer lock. Also repair potential deadlock introduced by my recent performance improvement in RelationGetBufferForTuple(): it was possible for two heap_updates to try to lock two buffers in opposite orders. The fix creates a global rule that buffers of a single heap relation should be locked in decreasing block number order. Currently, this only applies to heap_update; VACUUM can get away with ignoring the rule since it holds exclusive lock on the whole relation anyway. However, if we try to implement a VACUUM that can run in parallel with other transactions, VACUUM will also have to obey the lock order rule.
2001-05-15Add missing dlfcn.h includes. Fix "" vs <>.Peter Eisentraut
2001-05-15Remove unnecessary EvalPlanQual support code --- since this plan nodeTom Lane
type never scans a relation directly, it can't be an EPQ target. Explicitly drop subplan's tuple table to ensure we have no buffer pin leaks.
2001-05-15we found a problem in GiST with massive insert/update operationsBruce Momjian
with many NULLs ( inserting of NULL into indexed field cause ERROR: MemoryContextAlloc: invalid request size) As a workaround 'vacuum analyze' could be used. This patch resolves the problem, please upply to 7.1.1 sources and current cvs tree. Oleg Bartunov
2001-05-15Re-add pg_index.indhaskeytype.Bruce Momjian
2001-05-15Re-add pg_index.indisclustered in a minimalist way. Also fix BSDiBruce Momjian
dynamic linker change. #include must be before #ifdef test.
2001-05-15Some badly needed documentation about EvalPlanQual.Tom Lane
2001-05-15EvalPlanQual was thoroughly broken for concurrent update/delete on inheritanceTom Lane
trees (mostly my fault). Repair. Also fix long-standing bug in ExecReplace: after recomputing a concurrently updated tuple, we must recheck constraints. Make EvalPlanQual leak memory with somewhat less enthusiasm than before, although plugging leaks fully will require more changes than I care to risk in a dot-release.
2001-05-14Small include file fix for pg_variabie.hBruce Momjian
2001-05-14Pg_varaiable removal cleanup found from regression.Bruce Momjian
2001-05-14Remove columns pg_index.haskeytype and pg_index.indisclustered. Not used.Bruce Momjian
2001-05-14Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.Peter Eisentraut
2001-05-14Remove unused tables pg_variable, pg_inheritproc, pg_ipl tables. InitdbBruce Momjian
forced.