summaryrefslogtreecommitdiff
path: root/src/backend/utils
AgeCommit message (Collapse)Author
2000-06-02Correct portability problem introduced by yours truly --- I used aTom Lane
conditional expression x?y:z in an awk program. Seems old versions of awk don't have that ...
2000-06-02Keep CVS quiet about derived file guc-file.c.Tom Lane
2000-06-01The definition for "ProcessConfigFile()" in guc-file.l does not matchBruce Momjian
the prototype in guc.h. The following patch corrects that. Billy G. Allie
2000-06-01Simplify overly-clever Make rule, which evidently confuses at leastTom Lane
some versions of gmake (mine didn't do the right thing, anyway).
2000-05-31The heralded `Grand Unified Configuration scheme' (GUC)Peter Eisentraut
That means you can now set your options in either or all of $PGDATA/configuration, some postmaster option (--enable-fsync=off), or set a SET command. The list of options is in backend/utils/misc/guc.c, documentation will be written post haste. pg_options is gone, so is that pq_geqo config file. Also removed were backend -K, -Q, and -T options (no longer applicable, although -d0 does the same as -Q). Added to configure an --enable-syslog option. changed all callers from TPRINTF to elog(DEBUG)
2000-05-30Third round of fmgr updates: eliminate calls using fmgr() andTom Lane
fmgr_faddr() in favor of new-style calls. Lots of cleanup of sloppy casts to use XXXGetDatum and DatumGetXXX ...
2000-05-30Remove unused include files. Do not touch /port or includes used by defines.Bruce Momjian
2000-05-29Convert array_map to use new fmgr interface.Tom Lane
2000-05-29Tweak fmgrtab generation so that the F_XXX macros that give OIDs forTom Lane
built-in procedures are named after the prosrc field of pg_proc (ie, the actual C function name), not the proname field. This did not use to make a difference back when the two were always the same, but in the presence of overloaded proname values we'd best try to use the C name instead. AFAICT this change affects no existing code, but it is necessary to be able to get at some built-in functions that no macro was being generated for before.
2000-05-29Repair problems with overrun of timezone name length. Increase MAXTZLENTom Lane
to 10, and be consistent about whether it counts the trailing null (it does not). Also increase MAXDATELEN to be sure no buffer overflows are caused by the longer MAXTZLEN.
2000-05-29Generated header files parse.h and fmgroids.h are now copied intoTom Lane
the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
2000-05-29Second round of fmgr changes: triggers are now invoked in new style,Tom Lane
CurrentTriggerData is history.
2000-05-28Install fmgr rewrite doc as README file.Tom Lane
Need to update user docs still ...
2000-05-28First round of changes for new fmgr interface. fmgr itself and theTom Lane
key call sites are changed, but most called functions are still oldstyle. An exception is that the PL managers are updated (so, for example, NULL handling now behaves as expected in plperl and plpgsql functions). NOTE initdb is forced due to added column in pg_proc.
2000-05-26Reduce eqsel()'s fudge-factor for estimating the frequency of valuesTom Lane
other than the most common value in a column. We had had 0.5, make it 0.1 to make it more likely that an indexscan will be chosen. Really need better statistics instead, but this should stem the bleeding meanwhile ...
2000-05-26Fix too long syslog message problemTatsuo Ishii
2000-05-22I am attempting to integrate postgres (v 7.0) with an open sourceBruce Momjian
project I am working on (Recall - a distributed, fault-tolerant, replicated, storage framework @ http://www.fault-tolerant.org). Recall is written in C++. I need to include the postgres headers and there are some problems when including the headers w/C++. Attached is a patch generated from postgres/src that fixes my problems. I was hoping to get this into the main source. It's very small (2k) and 3 files are changed: backend/utils/fmgr/fmgr.c, backend/utils/Gen_fmgrtab.sh.in, and include/access/tupdesc.h. In C++, you get a multiply defined symbol because the variable (FmgrInfo *fmgr_pl_finfo) is defined in the header (the patch moves it to the .c file). The other problem in tupdesc.h is the use of typeid is a problem in c++ (I renamed it to oidtypeid). Thanks, Neal Norwitz
2000-05-21Repair memory leaks that caused CacheCxt to grow without bound. WeTom Lane
really ought to fix relcache entry construction so that it does not do so much with CurrentMemoryContext = CacheCxt. As is, relatively harmless leaks in either sequential or index scanning translate to permanent leaks if they occur when called from relcache build. For the moment, however, the path of least resistance is to repair all such leaks...
2000-05-21Add debug code to aid in memory-leak tracking: if SHOW_MEMORY_STATS isTom Lane
defined then statistics about memory usage of all the global memory contexts are printed after each commit.
2000-05-20Clean up grotty references to CacheCxt (externs inside functions,Tom Lane
duplicate global declarations, no points for style at all!)
2000-05-20Enhance multibyte support.Tatsuo Ishii
SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
2000-05-16Several compilation and run-time problems occur when building on SGIBruce Momjian
IRIX systems using the native compilers. A summary is: - Various files use "//" as a comment delimiter in c files. - Problems caused by assuming "char" is signed. cash.in: building -signed the rules regression test fails as described in FAQ_QNX4. If CHAR_MAX is "255U" then ((signed char)CHAR_MAX) is -1. postmaster.c: random number regression test failed without this change. - Some generic build issues and warning message cleanup. David Kaelbling
2000-05-16Remove configure check for how to abbreviate 'tr A-Z a-z', and insteadTom Lane
just use the portable form, tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz There were a bunch of places that weren't paying attention to configure's result anyway (including configure itself!?); clean them up too.
2000-05-13Tweak selectivity for area-based operators. Still a crock...Tom Lane
2000-05-05Make the indexes on pg_group be shared system relations.Tom Lane
2000-05-02Modify getdatabaseencoding(), pg_encoding_to_char()Tatsuo Ishii
pg_char_to_encoding() in multibyte disbaled case so that it does not throw an error, rather return HARD CODED default value (currently SQL_ASCII). This would solve the "non-mb backend vs. mb-enabled frontend" problem.
2000-04-20Clean up const-vs-not-const compiler warning in MULTIBYTE code.Tom Lane
'Twas my fault, I think.
2000-04-16Add new selectivity estimation functions for pattern-matching operatorsTom Lane
(LIKE and regexp matches). These are not yet referenced in pg_operator, so by default the system will continue to use eqsel/neqsel. Also, tweak convert_to_scalar() logic so that common prefixes of strings are stripped off, allowing better accuracy when all strings in a table share a common prefix.
2000-04-15elog(NOTICE) during COPY incorrectly reset lineno to 0, causing anyTom Lane
subsequent elogs() in the same COPY operation to display the wrong line number. Fix is to clear lineno only when elog level is such that we will not return to caller.
2000-04-14Fix (well, add) support for ISO "week" in date_part(). Needed for ODBC.Thomas G. Lockhart
Fix spelling of "millennium". Thanks to Mika Nystrom <mika@camembert.cs.caltech.edu> for spotting this.
2000-04-12Ye-old pgindent run. Same 4-space tabs.Bruce Momjian
2000-04-10The constant in backend/utils/misc/trace.c, line 32 limits the length ofBruce Momjian
logged queries to 1024, truncating longer queries. That is about half of the size I need (I have a union that is 2K long). Can someone consider bumping it to 4K or so? Patch attached... Regards, Ed Loehr
2000-04-09Further tweaking of indexscan cost estimates.Tom Lane
2000-04-08Add zpbit and varbit data types from Adrian JoubertThomas G. Lockhart
<a.joubert@albourne.com>.
2000-04-07Update create_rule manual page.Bruce Momjian
2000-04-07Add transcendental math functions (sine, cosine, etc)Thomas G. Lockhart
Add a random number generator and seed setter (random(), SET SEED) Fix up the interval*float8 math to carry partial months into the time field. Add float8*interval so we have symmetry in the available math. Fix the parser and define.c to accept SQL92 types as field arguments. Fix the parser to accept SQL92 types for CREATE TYPE, etc. This is necessary to allow... Bit/varbit support in contrib/bit cleaned up to compile and load cleanly. Still needs some work before final release. Implement the "SOME" keyword as a synonym for "ANY" per SQL92. Implement ascii(text), ichar(int4), repeat(text,int4) to help support the ODBC driver. Enable the TRUNCATE() function mapping in the ODBC driver.
2000-03-31Fix low-probability bug in relcache startup: write_irels wrote theTom Lane
pg_internal.init file in-place, which meant that if another backend started at about the same time, it might read the incomplete file. init_irels tries to guard against that, but I have now seen a crash due to reading bad data from a partly-written file. (This may indicate a kernel bug on my platform? Not sure.) Anyway, clearly the safest course is to write the new pg_internal.init file under a unique temporary filename, and rename it into place only after it's all written.
2000-03-30Tweak indexscan cost estimation: round estimated # of tuples visited upTom Lane
to next integer. Previously, if selectivity was small, we could compute very tiny scan cost on the basis of estimating that only 0.001 tuple would be fetched, which is silly. This naturally led to some rather silly plans...
2000-03-29Change rules for interpreting date/time input to disallow 1 and 3 characterThomas G. Lockhart
years. Rejects dates like '0.085', which were accepted previously.
2000-03-24Rename bytea functions to not have upper-case letters in their names.Tom Lane
Clean up grotty coding in them, too. AFAICS from the CVS logs, these have been broken since Postgres95, so I'm not going to insist on an initdb to fix them now...
2000-03-23Float-to-int conversion functions should return NULL when given NULLTom Lane
input, not throw a gratuitous elog().
2000-03-23Improve selectivity estimation involving string constants: pay attentionTom Lane
to more than one character, and try to do the right thing in non-ASCII locales.
2000-03-20Reverse out BYTEA type coersion.Bruce Momjian
2000-03-20Update for BYTEAOID.Bruce Momjian
2000-03-20Add compatiblity information for bytea.Bruce Momjian
2000-03-19cash_words_out function truncated its output by 1 character due toTom Lane
incorrect use of StrNCpy.
2000-03-18Clean up minor compiler warnings.Tom Lane
2000-03-17Fix a bunch of minor portability problems and maybe-bugs revealed byTom Lane
running gcc and HP's cc with warnings cranked way up. Signed vs unsigned comparisons, routines declared static and then defined not-static, that kind of thing. Tedious, but perhaps useful...
2000-03-16Support full POSIX-style time zone: EST+3, PST-3, etc.Thomas G. Lockhart
We probably support a superset of the spec, but I don't have the spec to confirm this. Update regression tests to include tests for this format.
2000-03-16 Hi,Bruce Momjian
small changes in formatting.c code (better memory usage ...etc.) and better to_char's cache (will fastly for more to_char()s in one query). (It is probably end of to_char() development in 7.0 cycle.) Karel