| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
blocks transfferes.
|
| |
|
|
| |
#ifdef USE_LOCALE added.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 :)
|
| |
|
|
| |
a -D<datadir> option
|
| |
|
|
|
|
|
|
| |
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>.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
index tuple (logical position within A LEVEL). bti_oid & bti_dummy
taken off from BTItemData.
|
| | |
|
| | |
|
| |
|
|
| |
instead of as a -D
|
| | |
|
| |
|
|
| |
Morten Kjeldgaard <mok@monster.kemi.aau.dk>
|
| |
|
|
| |
but, IMHO, cleaner
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Pointed out by many many ppl
|
| |
|
|
|
| |
Change BSD44_derived to __FreeBSD__ in numutils.c (need to know what
NetBSD is referred to as...someone?)
|
| | |
|
| |
|
|
| |
configure ([] have special means to m4 *sigh*)
|
| |
|
|
| |
file that has moved to include is also link'd properly
|
| |
|
|
|
|
|
|
|
| |
Makefile.global and move them to seperate 'include' makefiles
Over time, should become even more port specific:
ie. Makefile.BSD44_derived should be broken down into netbsd/freebsd
specific ports
|
| | |
|
| |
|
|
| |
Moved to include/port
|
| |
|
|
| |
Submitted by: adrian@waltham.harvard.net
|
| |
|
|
|
|
| |
header files.
Pointed out by: Edmund Mergl <E.Mergl@bawue.de>
|
| |
|
|
| |
Pointed out by: afc@teri.superlink.net
|
| |
|
|
| |
modification to c.h so that bool isn't typedef'd under __cplusplus
|
| | |
|
| |
|
|
| |
testing
|
| |
|
|
| |
Remove the TEST_MAIN stuff at the top...
|
| | |
|
| |
|
|
|
| |
- if someone can pick a better \? for this, plesae let me know...all
the good ones seem taken :(
|
| | |
|
| |
|
|
| |
Submitted by: adrian@waltham.harvard.net
|
| |
|
|
| |
but it gets rid of the temptation to modify the old source files :)
|
| |
|
|
|
|
| |
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...
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
varlena.c - part of Thomas' most recent patch
|
| |
|
|
|
|
| |
weighting factor */) in addition to
#define _CPU_PAGE_WEIGHT_ 0.065 (/* CPU-heap-to-page cost weighting factor
*/).
|
| |
|
|
| |
ATTNVALS_SCALE/reltuples (instead of reltuples).
|
| |
|
|
|
|
| |
2. PageWeights are variables now.
3. Fixed using ceil((double)selec*indextuples) as estimation
for expected heap pages: ceil((double)selec*relpages) now.
|
| |
|
|
|
|
| |
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 ?
|
| | |
|
| | |
|
| |
|
|
|
| |
regress.sh modified to get rid of queries.sql tests, as they are
performed vis sql/*.sql
|