summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-10-04Add dependency for regexec.cTatsuo Ishii
2001-10-04Add dependency for like.cTatsuo Ishii
2001-10-04Optimization for single byte encodings.Tatsuo Ishii
2001-10-03Consistently use gcc's __attribute__((format)) to check sprintf-styleTom Lane
format strings wherever possible. Remarkably, this exercise didn't turn up any inconsistencies, but it seems a good idea for the future.
2001-10-03DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntaxTom Lane
'aggname (aggtype)'. The old syntax 'aggname aggtype' is still accepted for backwards compatibility. Fix pg_dump, which was actually broken for most cases of user-defined aggregates. Clean up error messages associated with these commands.
2001-10-03Update error message wording for format_type change.Tom Lane
2001-10-03Remove no-longer-used macros.Tom Lane
2001-10-03Teach format_type about time/timestamp precision, so that pg_dump andTom Lane
psql's \d option work properly.
2001-10-03Add missing TIMESTAMPTZ case.Tom Lane
2001-10-03Some further kibitzing on cachability of datetime functions.Tom Lane
In particular, mark all I/O functions that can produce or consume a date as noncachable, in light of existence of DateStyle variable.
2001-10-03Update for latest regression tests.Tom Lane
2001-10-03AdjustTimestampForTypmod does not work (at least not portably) onTom Lane
-infinity and +infinity. Put TIMESTAMP_NOT_FINITE guard into the routine, instead of forgetting it at some call sites. Fixes regression test failures here.
2001-10-03Neatnik fetishism.Tom Lane
2001-10-03Implement precision support for timestamp and time, both with and withoutThomas G. Lockhart
time zones. SQL99 spec requires a default of zero (round to seconds) which is set in gram.y as typmod is set in the parse tree. We *could* change to a default of either 6 (for internal compatibility with previous versions) or 2 (for external compatibility with previous versions). Evaluate entries in pg_proc wrt the iscachable attribute for timestamp and other date/time types. Try to recognize cases where side effects like the current time zone setting may have an effect on results to decide whether something is cachable or not.
2001-10-03Fix up bad indenting in a few places.Thomas G. Lockhart
2001-10-02Add CREATE OR REPLACE FUNCTION syntax to allow replacing a functionTom Lane
definition without changing the function's OID, thereby not breaking rules, views, triggers, etc that depend on it. From Gavin Sherry.
2001-10-02Re-added Tom's patch fixing my setlocale patch. I accidentlyMichael Meskes
deleted it.
2001-10-01Revise shmget() and semget() failure messages to mention the possibilityTom Lane
of coping by reducing shared_buffers/max_connections settings.
2001-10-01Change pg_dump to produce CREATE INDEX commands by using the backend'sTom Lane
pg_get_indexdef() function, rather than reaching into the system catalogs for itself. This eliminates a fair amount of redundant code. Also, since I just changed pg_get_indexdef() to suppress display of default index opclasses, this will mean that 7.2 and later dumps will not mention opclasses unless they are non-default opclasses. Should make life easier for future index opclass reorganizations.
2001-10-01Extend pg_get_indexdef() to know about index predicates. Also, tweakTom Lane
it to suppress index opclass output for opclasses that are the default for their datatype; only non-default opclasses are shown explicitly. This is expected to improve portability of the CREATE INDEX command across future versions of Postgres --- we've changed index opclasses too often in the past to think we won't do so again.
2001-10-01Make inclusion logic for sys/sem.h and sys/ipc.h consistent across allTom Lane
the files that need them. Per trouble report from Teodor.
2001-10-01Fix a couple of stray // comments.Tom Lane
2001-10-01Add sys/types.h for FreeBSD compile.Bruce Momjian
Teodor Sigaev
2001-10-01Clean up a little more carefully around fork of pgstat subprocess.Tom Lane
Partial support for BEOS (not sure whether second fork of grandchild process needs these extra calls or not; someone who has BEOS will need to test it).
2001-10-01> > > > > - PostgreSQL requires to be compiled with --enable-multibyteBruce Momjian
> > > > > and --enable-unicode-convertion if it ought to work correctly > > > > > with Tcl/Tk >= 8.1 (client or server side). > > > > > > > > > > - PL/Tcl needs to be changed to use pg_do_encoding_conversion > > > > > if it runs on a Tcl version >= 8.1 . > > > > > > > I'll do pl/tcl part in the next version of patch. Using this approach we > > > > can eliminate overhead for databases in UNICODE. > > > > > > Any progress on this? I'd prefer to get rid of this --enable-pltcl-utf > > > option before release. > > > > Done > > > > Next version removes --enable-pltcl-utf switch and enables embedded > > utf conversion of pgsql if tcl version >=8.1 and --enable-unicode-conversion
2001-10-01 - Fixed truncate bug.Michael Meskes
- Added patch by Christof Petig <christof.petig@wtal.de> to clean up ecpglib.
2001-10-01Another round of cleanups for dynahash.c (maybe it's finally clean ofTom Lane
portability issues). Caller-visible data structures are now allocated on MAXALIGN boundaries, allowing safe use of datatypes wider than 'long'. Rejigger hash_create API so that caller specifies size of key and total size of entry, not size of key and size of rest of entry. This simplifies life considerably since each number is just a sizeof(), and padding issues etc. are taken care of automatically.
2001-10-01Suppress timestamp_ops for backwards compatibility with 7.1 pg_dump.Tom Lane
2001-10-01Remove C++ style comment. Some compilers won't accept it.Tatsuo Ishii
2001-10-01Fix a compile error on a platform that does not have PAM.Tatsuo Ishii
2001-09-30Make libpq++ safe again for older C++ compilers. Do 'using namespace std'Tom Lane
only if configure found it was safe to do so; do not assume const_cast is available.
2001-09-30These are further fixes for double quotes missing in the various shellBruce Momjian
scripts. Justin Clift
2001-09-30Clean up encode/decode functions a little bit.Tom Lane
2001-09-30Fix sloppiness about static vs non-static declaration of functions.Tom Lane
Some compilers are pickier about this than gcc is.
2001-09-30pg_stat_get_backend_idset should reset fmgr_info->fn_extra at end ofTom Lane
execution, so that it restarts correctly if query tree is used again.
2001-09-30Allow the postmaster to accept changes in PGC_BACKEND GUC variablesTom Lane
from the config file, so that these changes will propagate to backends started later. Already-started backends continue to ignore changes in these variables.
2001-09-30ISTM that IsUnderPostmaster should mean we are a child process of theTom Lane
postmaster ... it should not be set in the postmaster itself.
2001-09-30Create a GUC parameter max_files_per_process that is a configurableTom Lane
upper limit on what we will believe from sysconf(_SC_OPEN_MAX). The default value is 1000, so that under ordinary conditions it won't affect the behavior. But on platforms where the kernel promises far more than it can deliver, this can be used to prevent running out of file descriptors. See numerous past discussions, eg, pgsql-hackers around 23-Dec-2000.
2001-09-30Addition of xid=int4 operator makes opr_sanity unhappy.Tom Lane
2001-09-30winsock_strerror crashed on me. This fixes a line of code that looksTom Lane
cleverer than it actually is ;-) Braces are good for you :-) Gerhard HÃŒring
2001-09-30Add an operator xid '=' int and remove BINARY_COMPATI...Hiroshi Inoue
2001-09-30Back out change. Too many place to change too close to beta:Bruce Momjian
* HOLDER/HOLDERTAB rename to PROCLOCKLINK/PROCLOCKLINKTAG (Bruce) Will return later.
2001-09-29Tweak btree page split logic so that when splitting a page that isTom Lane
rightmost on its tree level, we split 2/3 to the left and 1/3 to the new right page, rather than the even split we use elsewhere. The idea is that when faced with a steadily increasing series of inserted keys (such as sequence or timestamp values), we'll end up with a btree that's about 2/3ds full not 1/2 full, which is much closer to the desired steady-state load for a btree. Per suggestion from Ann Harrison of IBPhoenix.
2001-09-29Allow comparison between xid and xid, int.Hiroshi Inoue
2001-09-29Do this TODO item:Bruce Momjian
* HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG (Tom) Didn't use PROCLOCKLINK because it made PROCLOCKLINKTAG too long.
2001-09-29Cope with the likelihood that setlocale and localeconv will returnTom Lane
pointers to data that will be changed by any later call to setlocale. Must copy what they return to be sure we get the right answer. Karel Zak, further tweaks by Tom Lane.
2001-09-29Fix the setlocale problem in a way that actually works. setlocaleTom Lane
returns a string corresponding to the new setting, not the old, therefore the previous patch was quite wrong.
2001-09-29Clean up comments.Tom Lane
2001-09-29Whoops, I was a tad too enthusiastic about using shared lock mode forTom Lane
SInvalLock. GetSnapshotData(true) has to use exclusive lock, since it sets MyProc->xmin.
2001-09-29Fixes for datetime-related regress tests, from Tom Lockhart.Tom Lane