summaryrefslogtreecommitdiff
path: root/src/backend/access/nbtree/nbtinsert.c
Commit message (Collapse)AuthorAgeFilesLines
* Re-use free space on index pages with duplicates.Vadim B. Mikheev1999-08-091-20/+9
|
* Install new alignment code to use MAXALIGN rather than DOUBLEALIGN whereBruce Momjian1999-07-191-8/+8
| | | | approproate.
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-6/+1
|
* Final cleanup.Bruce Momjian1999-07-161-2/+3
|
* Change #include's to use <> and "" as appropriate.Bruce Momjian1999-07-151-4/+4
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-8/+1
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-2/+3
|
* Cleanup of /include #include's, for 6.6 only.Bruce Momjian1999-07-141-1/+2
|
* Make 0x007f -> (unsigned)0x7f to make pgindent happy.Bruce Momjian1999-05-251-10/+11
|
* Get rid of page-level locking in btree-s.Vadim B. Mikheev1999-05-251-20/+18
| | | | | | LockBuffer is used to acquire read/write access to index pages. Pages are released before leaving index internals.
* pgindent run over code.Bruce Momjian1999-05-251-20/+21
|
* Patch from "Hiroshi Inoue" <Inoue@tpf.co.jp> forVadim B. Mikheev1999-05-011-14/+9
| | | | FATAL 1:btree: BTP_CHAIN flag was expected
* Fix duplicating ROOT page in concurrent updates.Vadim B. Mikheev1999-04-221-2/+14
|
* Unique btree-s:Vadim B. Mikheev1999-04-121-4/+19
| | | | | | | /* * Have to check is inserted heap tuple deleted one * (i.e. just moved to another place by vacuum)! */
* 1. Vacuum is updated for MVCC.Vadim B. Mikheev1999-03-281-2/+12
| | | | | | | 2. Much faster btree tuples deletion in the case when first on page index tuple is deleted (no movement to the left page(s)). 3. Remember blkno of new root page in BTPageOpaque of left/right siblings when root page is splitted.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* Cleanup of source files where 'return' or 'var =' is alone on a line.Bruce Momjian1999-02-031-3/+2
|
* READ COMMITTED isolevel is implemented and is default now.Vadim B. Mikheev1999-01-291-1/+2
|
* Initial MVCC code.Vadim B. Mikheev1998-12-151-4/+23
| | | | New code for locking buffer' context.
* New HeapTuple structure/interface.Vadim B. Mikheev1998-11-271-11/+10
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-2/+2
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-25/+25
|
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-3/+5
| | | | | | | | | | | | | no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
* Use Snapshot in heap access methods.Vadim B. Mikheev1998-07-271-2/+2
|
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-13/+1
|
* Thank god for searchable mail archives.PostgreSQL Daemon1998-01-151-3/+2
| | | | | | | | | Patch by: wieck@sapserv.debis.de (Jan Wieck) One of the design rules of PostgreSQL is extensibility. And to follow this rule means (at least for me) that there should not only be a builtin PL. Instead I would prefer a defined interface for PL implemetations.
* Goodbye ABORT. Hello ERROR for all errors.Bruce Momjian1998-01-071-3/+3
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-3/+3
|
* Remove trailing period from an elog message.Thomas G. Lockhart1997-12-091-2/+2
| | | | Most other messages do not have one.
* Remove all time travel stuff. Small parser cleanup.Bruce Momjian1997-11-201-2/+2
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-2/+2
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-163/+163
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-1435/+1488
|
* More NOT_USEDsBruce Momjian1997-08-201-5/+2
|
* Duplicates handling...Vadim B. Mikheev1997-06-101-101/+283
|
* Added check is new item successfuly inserted to a page or not.Vadim B. Mikheev1997-06-061-13/+23
|
* If we have to split leaf page in the chain of duplicatesVadim B. Mikheev1997-05-311-41/+24
| | | | | then we try to look at our right sibling first, but not farther, as it was in yesterday fix.
* Fix duplicates handling.Vadim B. Mikheev1997-05-301-67/+380
|
* 1. BTREE_VERSION_1: using bti_itup->t_tid as unique identifier for a givenVadim B. Mikheev1997-04-161-42/+21
| | | | | | | | | | | | index tuple (logical position within A LEVEL). bti_oid & bti_dummy taken off from BTItemData. 2. Fix for multi-column indices (nbtsearch.c): _bt_binsrch() - for searches on internal pages having keysize < number of attrs we point at the last item < the scankey, not at the first item = the scankey; _bt_moveright() - if keysize < number of attrs we compare scankey with _last_ item on current page to decide should we move right or not.
* + NULLs handlingVadim B. Mikheev1997-03-241-8/+112
| | | | | | | | | | | Actually required by multi-column indices support. We still don't use btree for 'A is (not) null', but now btree keep items with NULL attrs using single rule for placing/finding items on pages: NULLs greater NOT_NULLs and NULL = NULL. + Bulkload code (nbtsort.c) support for multi-column indices building and NULLs. + Fix for btendscan()->pfree(scanopaque) from Chris Dunlop.
* would you mind committing the following changes for me? (the firstBruce Momjian1997-01-251-2/+2
| | | | | bug causes compilation to fail on alpha, the second causes a compiler in this environment
* Fixed (I hope) unique btree index implementation.Vadim B. Mikheev1997-01-101-26/+88
|
* _bt_updateitem is returned in code, but works only if sizes of keysVadim B. Mikheev1996-12-061-50/+76
| | | | are equal.
* Commit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>Marc G. Fournier1996-11-131-45/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: * Unique index capability works using the syntax 'create unique index'. * Duplicate OID's in the system tables are removed. I put little scripts called 'duplicate_oids' and 'find_oid' in include/catalog that help to find and remove duplicate OID's. I also moved 'unused_oids' from backend/catalog to include/catalog, since it has to be in the same directory as the include files in order to work. * The backend tries converting the name of a function or aggregate to all lowercase if the original name given doesn't work (mostly for compatibility with ODBC). * You can 'SELECT NULL' to your heart's content. * I put my _bt_updateitem fix in instead, which uses _bt_insertonpg so that even if the new key is so big that the page has to be split, everything still works. * All literal references to system catalog OID's have been replaced with references to define'd constants from the catalog header files. * I added a couple of node copy functions. I think this was a preliminary attempt to get rules to work.
* Almost done access...Marc G. Fournier1996-11-051-28/+7
|
* Changes required so that access/* compiles cleanly...Marc G. Fournier1996-11-031-12/+7
| | | | cleaning up behind myself before *yawn* bed :)
* Make sure the btree patch gets into 2.0 as well...Marc G. Fournier1996-10-251-9/+50
| | | | Still submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
* Major code cleanups from D'arcy (-Wall -Werror)Marc G. Fournier1996-10-231-3/+5
|
* #include file cleanupMarc G. Fournier1996-10-201-9/+33
|
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-091-0/+831