summaryrefslogtreecommitdiff
path: root/src/backend/utils
AgeCommit message (Collapse)Author
1999-02-22comments cleanup.Bruce Momjian
1999-02-22Repair some pretty serious problems in dynahash.c andTom Lane
shared memory space allocation. It's a wonder we have not seen bug reports traceable to this area ... it's quite clear that the routine dir_realloc() has never worked correctly, for example.
1999-02-21From: Tatsuo Ishii <t-ishii@sra.co.jp>Marc G. Fournier
Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef NOT_USED" for current. I have tested these patches in that the postgres binaries are identical.
1999-02-19Allow maximum number of backends to be set at configure timeTom Lane
(--with-maxbackends). Add a postmaster switch (-N backends) that allows the limit to be reduced at postmaster start time. (You can't increase it, sorry to say, because there are still some fixed-size arrays.) Grab the number of semaphores indicated by min(MAXBACKENDS, -N) at postmaster startup, so that this particular form of bogus configuration is exposed immediately rather than under heavy load.
1999-02-15regprocin should accept '-' signifying InvalidOid, forTom Lane
symmetry with regprocout.
1999-02-13Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian
1999-02-13Fix offset of one for date_part(timespan) when given arguments ofThomas G. Lockhart
decade, century, or millenium.
1999-02-13Change #if FALSE to #if NOT_USED to avoid port problems.Thomas G. Lockhart
Fix problem with date_part() for timespan (had an offset of one) when given decade, century, and millenium as arguments. Reported by Ricardo J.C.Coelho.
1999-02-13Add routines to convert between int8 and text/varchar types.Thomas G. Lockhart
Change #if FALSE to #if NOT_USED to avoid port problems. Fix up pg_indent weirdness with function argument declarations.
1999-02-07Clean up some minor compile warnings.Tom Lane
1999-02-07Fixed problem with multiple portals shown up in portals_p2 regressionJan Wieck
test after new AllocSet code. Activated optimal AllocSet blocksize and chunk limit. Jan
1999-02-06New alloc set code using a memory block pool for small allocations.Jan Wieck
Jan
1999-02-05Fix for returning stack pointer from selectivity, from Bernard Frankpitt.Bruce Momjian
1999-02-03Cleanup of source files where 'return' or 'var =' is alone on a line.Bruce Momjian
1999-02-03Modify int8 to not depend on sscanf(), and fix configure's testTom Lane
for int8 support. configure now checks only snprintf() for int8 support, not sprintf and sscanf as it used to. The reason for doing this is that if we are supplying our own snprintf code (which does handle long long int), we now only need working long long support in the compiler not in the platform's C library. I have verified that int8 now passes regression test on HPUX 9, and I think it should work on SunOS 4.1.* and other older platforms if gcc is used.
1999-02-02Included patches make some enhancements to the multi-byte support.Bruce Momjian
o allow to use Big5 (a Chinese encoding used in Taiwan) as a client encoding. In this case the server side encoding should be EUC_TW o add EUC_TW and Big5 test cases to the regression and the mb test (contributed by Jonah Kuo) o fix mistake in include/mb/pg_wchar.h. An encoding id for EUC_TW was not correct (was 3 and now is 4) o update documents (doc/README.mb and README.mb.jp) o update psql helpfile (bin/psql/psqlHelp.h) -- Tatsuo Ishii t-ishii@sra.co.jp
1999-02-02Add TEMP tables/indexes. Add COPY pfree(). Other cleanups.Bruce Momjian
1999-01-29READ COMMITTED isolevel is implemented and is default now.Vadim B. Mikheev
1999-01-25Agg/Aggreg cleanup and datetime.sql patch.Bruce Momjian
1999-01-25Tighten coding of fmgr_isbuiltin() ... managed to speed it upTom Lane
by about 10% which seems to be good for half a percent or so of a SELECT.
1999-01-24Rename Aggreg to Aggref.Bruce Momjian
1999-01-24Improper addition of NaN/Infinity recognition to float8in()Tom Lane
was causing it not to detect out-of-range float values, as evidenced by failure of float8 regression test. I corrected that logic and also modified expected float8 results to account for new error message generated for out-of-range inputs.
1999-01-23Add explicit buffering in backend libpq, to compensate forTom Lane
buffering lost by not going through stdio anymore for client I/O.
1999-01-22Relcache Size fix.Bruce Momjian
1999-01-22Fix for Size sizeof in cache code.Bruce Momjian
1999-01-21FOR UPDATE is in parser & rules.Vadim B. Mikheev
1999-01-20Fix "Y-2K" problem with two-digit BC dates being corrected by two millenia.Thomas G. Lockhart
They are not corrected now. Allow the date type to accept BC dates. Share more date/time validation declarations through dt.h.
1999-01-17TCL_ARRAYS option patches from Massimo Dal ZottoTom Lane
1999-01-17Add missing variable, per Massimo.Tom Lane
1999-01-17Apply Win32 patch from Horak Daniel.Bruce Momjian
1999-01-17Fix for missing NAN.Bruce Momjian
1999-01-17Replace direct inclusions of c.h with inclusion of postgres.h,Tom Lane
to ensure that config.h is included as well.
1999-01-11From: Magnus Hagander <mha@sollentuna.net>Marc G. Fournier
Here is a first patch to cleanup the backend side of libpq. This patch removes all external dependencies on the "Pfin" and "Pfout" that are declared in pqcomm.h. These variables are also changed to "static" to make sure. Almost all the change is in the handler of the "copy" command - most other areas of the backend already used the correct functions. This change will make the way for cleanup of the internal stuff there - now that all the functions accessing the file descriptors are confined to a single directory.
1999-01-10Be more careful to check input string lengths as well as valuesThomas G. Lockhart
when deciding whether a field is a year field. Assume *anything* longer than 2 digits (if it isn't a special-case doy) is a valid year. This should fix the "Y1K" and "Y10K" problems pointed out by Massimo recently. Check usage of BC to require a positive-valued year; before just used it to flip the sign of the year without checking. This led to problems near year zero. Allow a 5 digit "concatenated date" of 2 digit year plus day of year. Do 2->4 digit year correction for 6 and 5 digit "concatenated dates". Somehow forgot this originally. Guess not many folks use it...
1999-01-10Handle "NaN" and "Infinity" for input values.Thomas G. Lockhart
I think NAN is already guaranteed to be there from Jan's work on NUMERIC, but perhaps HUGE_VAL needs some #ifndef's in the same place. Should also include "-Infinity" as -HUGE_VAL sometime; not there yet.
1999-01-05Removed precision restriction in numeric_round() causingJan Wieck
overflow error on high precision calculations where temporary huge precision is required. Jan
1999-01-04Just one more bugfix - this time in cmp_abs (cannot imagine thatJan Wieck
taking a logarithm with a 400 digit precision worked with that bug in place). Jan
1999-01-04Fixed backend crashing bug in apply_typmod()Jan Wieck
Jan
1999-01-04Little fix for round() functionJan Wieck
Jan
1999-01-03Fix NAN code.Bruce Momjian
1999-01-03Fix for NAN generation.Bruce Momjian
1999-01-01 Some security, since we now have vsnprintf, I remade an old patchBruce Momjian
with some extra ugly sprintfs fixed. More work in this area is needed still. Göran Thyni
1999-01-01Fix for no platform NAN.Bruce Momjian
1998-12-31Change ordering of HAVE_TM_ZONE and HAVE_INT_TIMEZONE code blocksThomas G. Lockhart
to give HAVE_TM_ZONE priority. This fixes glibc2 machines and any other machine which passes both tests in configure. Repair HAVE_TM_ZONE code which stuffs tm structure with date type values. Same problems as were originally there before v6.1, but never noticed. Thanks to Oleg for nagging :)
1998-12-30Little precision fix for POWER(). I discovered problems with bigJan Wieck
exponents. Jan
1998-12-30Added NUMERIC data type with many builtin funcitons, operatorsJan Wieck
and aggregates. Jan
1998-12-18SET TRANSACTION ISOLATION LEVEL ...Vadim B. Mikheev
LOCK TABLE IN ... MODE ...implemented
1998-12-16Serialized mode works!Vadim B. Mikheev
1998-12-15Oops, sorry...meant to commit the patch from Thomas for tzn->CTZNameMarc G. Fournier
1998-12-15tzn undeclared in FreeBSD, commented out.Vadim B. Mikheev