summaryrefslogtreecommitdiff
path: root/src/backend/access
AgeCommit message (Collapse)Author
1998-07-30Fix scan adjustment.Vadim B. Mikheev
1998-07-27Use Snapshot in heap access methods.Vadim B. Mikheev
1998-07-26From: t-ishii@sra.co.jpMarc G. Fournier
As Bruce mentioned, this is due to the conflict among changes we made. Included patches should fix the problem(I changed all MB to MULTIBYTE). Please let me know if you have further problem. P.S. I did not include pathces to configure and gram.c to save the file size(configure.in and gram.y modified).
1998-07-21VariableCache (next XID generator) is placed in shmem.Vadim B. Mikheev
1998-07-21Theses buffer leaks are caused by indexes that are kept open betweenBruce Momjian
calls. Outside a transaction, the backend detects them as buffer leaks; it sends a NOTICE, and frees them. This sometimes cause a segmentation fault (at least on Linux). These indexes are initialized on the first lo_read/lo_write/lo_tell call, and (normally) closed on a lo_close call. Thus the buffer leaks appear when lo direct access functions are used, and not with lo_import/lo_export functions (libpq version calls lo_close before ending the command, and the backend version uses another path). The included patches (against recent snapshot, and against 6.3.2) cause indexes to be closed on transaction end (that is on explicit 'END' statment, or on command termination outside trasaction blocks), thus preventing the buffer leaks while increasing performance inside transactions. Some (all?) 'classic' memory leaks are also removed. I hope it will be ok. --- Pascal ANDRE, graduated from Ecole Centrale Paris andre@via.ecp.fr
1998-07-20Cleanup use of 16 that should be NAMEDATALEN.Bruce Momjian
1998-07-20Cleanup Name usage.Bruce Momjian
1998-07-18Add auto-size to screen to \d? commands. Use UNION to show allBruce Momjian
\d? results in one query. Add \d? field search feature. Rename MB to MULTIBYTE.
1998-07-12Change atttypmod from int16 to int32, for Thomas.Bruce Momjian
1998-06-16Hi, here are the patches to enhance existing MB handling. This timeBruce Momjian
I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii
1998-06-16Change error message and remove non-functional update message, fromBruce Momjian
Vadim.
1998-06-15Remove un-needed braces around single statements.Bruce Momjian
1998-06-15Fix macros that were not properly surrounded by parens or braces.Bruce Momjian
1998-05-14Pass atttypmod to the frontend.Bruce Momjian
1998-05-13Remove added NullProc define, and use fmgr.h value from fmgr.h.Bruce Momjian
1998-04-27This patch...Bruce Momjian
1. Removes the unnecessary "#define AbcRegProcedure 123"'s from pg_proc.h. 2. Changes those #defines to use the names already defined in fmgr.h. 3. Forces the make of fmgr.h in backend/Makefile instead of having it made as a dependency in access/common/Makefile *hack*hack*hack* 4. Rearranged the #includes to a less helter-skelter arrangement, also changing <file.h> to "file.h" to signify a non-system header. 5. Removed "pg_proc.h" from files where its only purpose was for the #defines removed in item #1. 6. Added "fmgr.h" to each file changed for completeness sake. Turns out that #6 was not necessary for some files because fmgr.h was being included in a roundabout way SIX levels deep by the first include. "access/genam.h" ->"access/relscan.h" ->"utils/rel.h" ->"access/strat.h" ->"access/skey.h" ->"fmgr.h" So adding fmgr.h really didn't add anything to the compile, hopefully just made it clearer to the programmer. S Darren.
1998-04-26Re-apply Darren's char2-16 removal code.Bruce Momjian
1998-04-24Inline some small functions called for every row.Bruce Momjian
1998-04-10Oops...I used Relation->rd_fd->relname exactly, instead of using the actualMarc G. Fournier
variable name *blush* *grin*
1998-04-10Okay, add relation name to the file generating the error...Marc G. Fournier
1998-04-10See if I can determine where the BTP_CHAIN error is coming from...Marc G. Fournier
1998-04-07Back out char2-char16 removal. Add later.Bruce Momjian
1998-04-06ASSERT fixes.Bruce Momjian
1998-04-06Hi,Bruce Momjian
Attached you'll find a (big) patch that fixes make dep and make depend in all Makefiles where I found it to be appropriate. It also removes the dependency in Makefile.global for NAMEDATALEN and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh a little smarter. This no longer requires initdb.sh that is turned into initdb with a sed script when installing Postgres, hence initdb.sh should be renamed to initdb (after the patch has been applied :-) ) This patch is against the 6.3 sources, as it took a while to complete. Please review and apply, Cheers, Jeroen van Vianen
1998-03-30The following uuencoded, gzip'd file will ...Bruce Momjian
1. Remove the char2, char4, char8 and char16 types from postgresql 2. Change references of char16 to name in the regression tests. 3. Rename the char16.sql regression test to name.sql. 4. Modify the regression test scripts and outputs to match up. Might require new regression.{SYSTEM} files... Darren King
1998-02-28Fix scan adjusting for marked index tuples.Vadim B. Mikheev
1998-02-26index_markpos()/index_restrpos are used now.Vadim B. Mikheev
1998-02-26pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian
1998-02-21Change:Marc G. Fournier
#define TAPETEMP "pg_btsortXXXXXX" to: #define TAPETEMP "pg_btsortXXXXXXX" For some reason, under FreeBSD, it appears that the mktemp() value needs the extra 'X' to improve/ensure uniqueness
1998-02-11Goodbye register keyword. Compiler knows better.Bruce Momjian
1998-02-10Pass around typmod as int16.Bruce Momjian
1998-02-10Pass attypmod through to executor by adding to Var and Resdom.Bruce Momjian
1998-02-07atttypmod now -1.Bruce Momjian
1998-02-06Update now that attcacheoff initial value is -1 always.Bruce Momjian
1998-02-05Fix for varchar functions, and indextyple j-1 fix.Bruce Momjian
1998-02-05 Symptom:Marc G. Fournier
select from a table with attrs (a int, b char(20)) crashed in bpcharout() (palloc of -1 bytes). But a table with attrs (a int, b varchar(20)) worked. From: Jan Wieck <jwieck@debis.com>
1998-02-05char() cleanup and more cacheoff improvements.Bruce Momjian
1998-02-04Cleanup getattr code. Make CHAR() use attcacheoff.Bruce Momjian
1998-01-31fmgr_faddr cleanupBruce Momjian
1998-01-31Inline fastgetattr and others so data access does not use functionBruce Momjian
calls.
1998-01-16New pg_attribute.atttypmod for type-specific information likeBruce Momjian
varchar length. Cleans up code so attlen is always length. Removed varchar() hack added earlier. Will fix bug in selecting varchar() fields, and varchar() can be variable length.
1998-01-15Thank god for searchable mail archives.PostgreSQL Daemon
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.
1998-01-13Some *very* major changes by darrenk@insightdist.com (Darren King)Marc G. Fournier
========================================== What follows is a set of diffs that cleans up the usage of BLCKSZ. As a side effect, the person compiling the code can change the value of BLCKSZ _at_their_own_risk_. By that, I mean that I've tried it here at 4096 and 16384 with no ill-effects. A value of 4096 _shouldn't_ affect much as far as the kernel/file system goes, but making it bigger than 8192 can have severe consequences if you don't know what you're doing. 16394 worked for me, _BUT_ when I went to 32768 and did an initdb, the SCSI driver broke and the partition that I was running under went to hell in a hand basket. Had to reboot and do a good bit of fsck'ing to fix things up. The patch can be safely applied though. Just leave BLCKSZ = 8192 and everything is as before. It basically only cleans up all of the references to BLCKSZ in the code. If this patch is applied, a comment in the config.h file though above the BLCKSZ define with warning about monkeying around with it would be a good idea. Darren darrenk@insightdist.com (Also cleans up some of the #includes in files referencing BLCKSZ.) ==========================================
1998-01-07Goodbye ABORT. Hello ERROR for all errors.Bruce Momjian
1998-01-07Allow varchar() to only store needed bytes. Remove PALLOC,PALLOCTYPE,PFREE. ↵Bruce Momjian
Clean up use of VARDATA.
1998-01-05Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian
1997-12-20Major cleanout of PORTNAME variables from Makefiles...bound to screw upMarc G. Fournier
some of the ports...
1997-12-17Clean up the MakefilesMarc G. Fournier
Essentially, this cleans things up so that if PORTNAME isn't defined (I'm working on getting rid of it for FreeBSD, at least, to see if its possible) none of the PORTNAME related stuff gets passed around. Had a little bit of -I related redundancy as well
1997-12-09Remove trailing period from an elog message.Thomas G. Lockhart
Most other messages do not have one.
1997-12-08More VARHDRSZ additions.Bruce Momjian