summaryrefslogtreecommitdiff
path: root/src/backend
Commit message (Collapse)AuthorAgeFilesLines
* #include <string.h>Vadim B. Mikheev1997-04-211-1/+2
|
* Fix for -Wno-errorVadim B. Mikheev1997-04-211-2/+2
|
* Here is the Mismatched input/output patch for tintervals as reported overMarc G. Fournier1997-04-201-4/+4
| | | | | | | the last week on Hackers...(A coulpe of clippings of the final verdict are included below + the diff). From: Wayde Nie <niew@phoenix.cis.mcmaster.ca>
* Fix for -Wno-errorVadim B. Mikheev1997-04-182-4/+4
|
* CommitInfoNeedsSave[buffer - 1] = 0Vadim B. Mikheev1997-04-181-2/+6
| | | | added to WriteBuffer(), FlushBuffer(), WriteNoReleaseBuffer().
* #ifdef BTREE_BUILD_STATS enables to get executor stats for btreeVadim B. Mikheev1997-04-182-17/+37
| | | | building.
* DeclarationVadim B. Mikheev1997-04-181-1/+3
| | | | | static const char *num_word(Cash value); moved here from cash.h
* PrintBufferUsage() changed to report about shared, local and directVadim B. Mikheev1997-04-183-14/+41
| | | | blocks transfferes.
* Fix bttextcmp() to use unsigned char*.Vadim B. Mikheev1997-04-181-9/+29
| | | | #ifdef USE_LOCALE added.
* From: Raymond Toy <toy@rtp.ericsson.se>Marc G. Fournier1997-04-171-8/+14
| | | | | | | | | | | | | | | | | Subject: [PATCHES] 970417: some large object patches Two patches here, made against 970417. Both have to do with large objects: 1. lobjfuncs was not initialized in PQconnectdb. This causes failure later if large objects are used. (Someone already caught this error in PQsetdb.) 2. Postgres functions lo_import and lo_export sometimes produce garbage for the file names because the filename strings aren't always terminated by \0. (VARDATA isn't necessarily null terminated.)
* From: Raymond Toy <toy@rtp.ericsson.se>Marc G. Fournier1997-04-172-5/+5
| | | | | | | | | | | | | | | | Subject: [PATCHES] 970417: two more patches for large objects Here are two more patches: 1. pg_getint doesn't properly set the status flag when calling pqGetShort or pqGetLong. This is required when accessing large objects via libpq. This, combined with problem 1 above causes postgres to crash when postgres tries to print out the message that the status was not good. 2. ExceptionalCondition crashes when called with detail = NULL. This patch prevents dereferencing the NULL.
* From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>Marc G. Fournier1997-04-172-2/+141
| | | | | | | | | | | | | | | Subject: [HACKERS] Patch: set date to euro/us postgres/iso/sql Here a patch that implements a SET date for use by the datetime stuff. The syntax is SET date TO 'val[,val,...]' where val is us (us dates), euro (european dates), postgres, iso or sql. Thomas is working on the integration in his datetime module. I just needed to get the patch out before it went stale :)
* The patch fixes a rare bug that may occur when one tries to vacuum a singleVadim B. Mikheev1997-04-171-6/+5
| | | | | | | | table. The table name is de-allocated by the CommitTransactionCommand() in vc_init() before it is copied in VacRel.data and sometimes this causes a SIGSEGV. My patch simply moves the strcpy before vc_init. Submitted by Massimo Dal Zotto <dz@cs.unitn.it>.
* StreamConnection(): setsockopt (..., TCP_NODELAY, ...) added.Vadim B. Mikheev1997-04-161-1/+19
|
* 1. BTREE_VERSION_1: using bti_itup->t_tid as unique identifier for a givenVadim B. Mikheev1997-04-165-99/+167
| | | | | | | | | | | | 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.
* Patch for Solaris 2.5 from: adrian@waltham.harvard.netMarc G. Fournier1997-04-153-3/+12
|
* Various minor HP related patches from:Marc G. Fournier1997-04-151-0/+30
| | | | Morten Kjeldgaard <mok@monster.kemi.aau.dk>
* A small fix, where default: condition in case had not 'break;'...not required,Marc G. Fournier1997-04-151-1/+3
| | | | but, IMHO, cleaner
* From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-153-243/+492
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] Money integration patches Here are patches to integrate the money data type. I have included some math and aggregate functions and have made the locale support optional by #ifdef USE_LOCALE bracketing of functions. Modules affected are: builtins.h.patch cash.c.patch cash.h.patch main.c.patch pg_aggregate.h.patch pg_operator.h.patch pg_proc.h.patch pg_type.h.patch I changed the data type to be pass-by-reference rather than by-value to pave the way for a larger internal representation (64-bit ints?). Also, I changed the tabbing of cash.c and cash.h to match most of the other Postgres source code files (4 space indent, 8 spaces == 1 tab). The locale stuff should be tested under another convention (Russian?) but I don't know what the correct results should be so perhaps someone else can give them a try. Will update docs and regression tests in the next few days.
* 2. The file /usr/local/pgsql/src/backend/lipq/pgcomprim.c has twoMarc G. Fournier1997-04-151-2/+2
| | | | | | | | | | | | | invalid macro definitions, the compiler complains about: "pqcomprim.c", line 48.9: 1506-275 (S) Unexpected text ';' ignored. "pqcomprim.c", line 61.9: 1506-275 (S) Unexpected text ';' ignored. The ';' terminating the macro definition ntoh_s(n) on line 27 and ntoh_l(n) on line 28 should be removed. Pointed out by: Olaf Mittelstaedt <MSTAEDT@va-sigi.va.fh-ulm.de>
* Fix up the -Wno-error problem for non-gcc compilersMarc G. Fournier1997-04-153-6/+20
| | | | Pointed out by many many ppl
* Add ccsym to tools to determine OS/compiler specific symbolsMarc G. Fournier1997-04-131-2/+2
| | | | | Change BSD44_derived to __FreeBSD__ in numutils.c (need to know what NetBSD is referred to as...someone?)
* Make sure postgres.h is included before we start checking #ifdef's for otherMarc G. Fournier1997-04-121-2/+3
| | | | | | header files. Pointed out by: Edmund Mergl <E.Mergl@bawue.de>
* Finish removing the TEST_MAIN stuff, which was mean for standaloneMarc G. Fournier1997-04-101-29/+1
| | | | testing
* Fix #include "cash.h" to be #include <utils/cash.h>Marc G. Fournier1997-04-101-8/+1
| | | | Remove the TEST_MAIN stuff at the top...
* Copy indexkeys in _copyIndexPath.Vadim B. Mikheev1997-04-101-1/+14
|
* Much improved configure that integrates the build script right into itMarc G. Fournier1997-04-091-4/+4
| | | | Submitted by: adrian@waltham.harvard.net
* Add in D'Arcy's cash codeMarc G. Fournier1997-04-092-2/+311
| | | | | | pg_proc.h still needs modifying, but this gets it in there so that we can get around any compiler bugs. Will try and get the pg_proc.h entries done up later tonight...
* From: "Martin S. Utesch" <utesch@aut.tu-freiberg.de>Marc G. Fournier1997-04-091-5/+19
| | | | | | | | | | | | | | Subject: Re: [HACKERS] GEQO and views (rules) Oke, this was caused by a classic bug :-/ I thougth, root->base_relation_list_ could be represented as relid string 1-2-3-4- etc. Instead, in case of views, the count of relids doesn't start with "1" but maybe 4-5-6- etc . :-( GEQO patch follows ... views are now all right.
* GNUmakefile.in - remove backend/utils/Gen_fmgrtab.sh on distcleanMarc G. Fournier1997-04-091-39/+82
| | | | varlena.c - part of Thomas' most recent patch
* getattnvals(): if attnvals in pg_attribute is 0 then useVadim B. Mikheev1997-04-091-1/+10
| | | | ATTNVALS_SCALE/reltuples (instead of reltuples).
* 1. Enable to have different _CPU_PAGE_WEIGHT_ for heap and index.Vadim B. Mikheev1997-04-091-16/+20
| | | | | | 2. PageWeights are variables now. 3. Fixed using ceil((double)selec*indextuples) as estimation for expected heap pages: ceil((double)selec*relpages) now.
* Fix (hack) IndexSelectivity():Vadim B. Mikheev1997-04-091-2/+16
| | | | | | use sum(npages)/((nkeys == 1) ? 1 : nkeys + 1) as expected index page estimation for multi-key quals - instead of sum(npages). In old code npages for x > 10 and x < 20 is twice as for x > 10 - cool ?
* Fix btabstimecmp ().Vadim B. Mikheev1997-04-071-3/+3
|
* Print 'Group' as name of Group plan.Vadim B. Mikheev1997-04-051-1/+4
|
* Changes for GROUP BY func_results:Vadim B. Mikheev1997-04-051-1/+6
| | | | AddGroupAttrToTlist() is not called from anywhere now.
* Changes for GROUP BY func_results.Vadim B. Mikheev1997-04-051-59/+159
|
* Now we can GROUP BY func_results.Vadim B. Mikheev1997-04-051-8/+44
|
* Fix for 'SET var_name TO var_value': var_name already defined.Vadim B. Mikheev1997-04-051-5/+2
|
* Check for attributeList is NULL in ConstructTupleDescriptor ().Vadim B. Mikheev1997-04-051-4/+8
| | | | Submitted by Raymond Toy.
* From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-051-2/+2
| | | | | | | | Subject: [HACKERS] Fix for European dates This apparently fixes the European date reading problem reported by several (European) bleeding edge adopters. I tried a few test cases and it doesn't break the non-EuroDate cases in my test suite.
* Move YACC and YFLAGS into the template filesMarc G. Fournier1997-04-042-3/+3
| | | | | Clean up the .sample files...comment out all sample entries except for the localhost one
* This commit represents a clean compile with the new templates underMarc G. Fournier1997-04-046-14/+14
| | | | | | | | | FreeBSD The Makefile(s) have all been cleaned up such that there is a single LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE. The Makefile(s) should be alot more straightforward then they were before...and consistent
* Again, needs float.hMarc G. Fournier1997-04-041-1/+4
|
* needs float.h for DBL_MIN under FreeBSDMarc G. Fournier1997-04-041-1/+4
|
* Remove code associated with !ACLGROUP_PATCH, and appropriate #ifdef'sMarc G. Fournier1997-04-031-13/+1
|
* From: "D'Arcy J.M. Cain" <darcy@druid.net>Marc G. Fournier1997-04-031-9/+89
| | | | | | | | | | | Subject: [HACKERS] timestamp.c changes I sent in changes previously and they were rejected because they didn't follow ANSI spec. Here is the input part of the changes again. Even though it allows more flexibility for inputting different formats, it is also backwards compatible with the standard version. I have also not changed the output format so it will still output the ANSI forms. Is this acceptable to everyone?
* From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-033-5/+12
| | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] Aggregate function patches Here are the aggregate function patches I originally sent in last December. They fix sum() and avg() behavior for ints and floats when NULL values are involved. I was waiting to resubmit these until I had a chance to write a v6.0->v6.1 database upgrade script to ensure that existing v6.0 databases which have not been reloaded for v6.1 do no break with the new aggregate behavior. These scripts are included below. It's OK with me if someone wants to do something different with the upgrade strategy, but something like this was discussed a few weeks ago. Also, there were a couple of small items which cropped up in doing a clean install of 970403 (actually 970402 + 970403 changes since the full 970403 tar file appears to be damaged or at least suspect). They are the first two patches below and can be omitted if desired (although I think they aren't dangerous :).
* removed as already installed as part of system headers on NetBSD/FreeBSDMarc G. Fournier1997-04-021-30/+0
|
* From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-025-239/+669
| | | | | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] More date time functions Here are some additional patches mostly related to the date and time data types. It includes some type conversion routines to move between the different date types and some other date manipulation routines such as date_part(units,datetime). I noticed Edmund Mergl et al's neat trick for getting function overloading for builtin functions, so started to use that for the date and time stuff. Later, if someone figures out how to get function overloading directly for internal C code, then we can move to that technique. These patches include documentation updates (don't faint!) for the built-in man page. Doesn't yet include mention of timestamp, since I don't know much about it and since it may change a bit to become a _real_ ANSI timestamp which would include parser support for the declaration syntax (what do you think, Dan?). The patches were developed on the 970330 release, but have been rebuilt off of the 970402 release. The first patch below is to get libpq to compile, on my Linux box, but is not related to the rest of the patches and you can choose not to apply that one at this time. Thanks in advance, scrappy!