aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Implement explicit date/time precision per SQL99 spec.Thomas G. Lockhart2001-10-05
| | | | Use CAST() mechanism to define CURRENT_TIME and CURRENT_TIMESTAMP.
* Don't try to hack pg_description if not superuser. (Really want aTom Lane2001-10-04
| | | | | COMMENT ON LARGE OBJECT command instead, but no time for it now.) Fix some code that would not work with OIDs > 2G.
* Consider interpreting a function call as a trivial (binary-compatible)Tom Lane2001-10-04
| | | | | | | | | type coercion after failing to find an exact match in pg_proc, but before considering interpretations that involve a function call with one or more argument type coercions. This avoids surprises wherein what looks like a type coercion is interpreted as coercing to some third type and then to the destination type, as in Dave Blasby's bug report of 3-Oct-01. See subsequent discussion in pghackers.
* Ooops, I was a little too enthusiastic about suppressing defaultTom Lane2001-10-04
| | | | | index opclasses; they might be default for some other datatype, in which case we mustn't suppress 'em.
* Plug memory leaks introduced by dynamic-search-path changes.Tom Lane2001-10-04
| | | | From Teodor Sigaev.
* Make the world safe for atttypmod=0 ... this didn't use to mean anything,Tom Lane2001-10-04
| | | | but timestamp now wants it to mean something.
* Make current_time deliver a fractional-second answer.Tom Lane2001-10-04
|
* elog command need to use unicode conversion too.Bruce Momjian2001-10-04
| | | | Vsevolod Lobko
* This patch adds reporting of tcl global variable errorInfoBruce Momjian2001-10-04
| | | | | | | | | which contains stack trace. One problem, after this patch errors will generate multiline ERROR messages. Is it acceptable or do I need split it and generate multiple singleline messages? Vsevolod Lobko
* Attached is a patch which deals withBruce Momjian2001-10-04
| | | | | | | | | | | | | | | | | | | | select 'id' as xxx from table The issue is: When the driver gets a data type which does not map into the SQL.Types it attempts to load the object into a java object. Eventually throwing an exception indicating that the type "unknown" was not found. Since the backend defaults "unknown" types to text it was suggested that the jdbc driver do the same. This patch does just that. I have tested it on the above select statement as well as a small program that serializes, and deserializes a class Dave Cramer
* Using strtol() on int8 values (input parameters or result sets) inBruce Momjian2001-10-04
| | | | | | | | | plpython would result in numeric overflows causing the backend to terminate abruptly. This patch fixes it. Bradley McLean
* I've just finished the Chinese NLS support(zh_CN part) filesBruce Momjian2001-10-04
| | | | | | | | | translation, the attachement is those four files. (.tar.gz file, with the directory, root is $PGSRC). Tested on some Linux platform. Weiping He
* Attached please find an initiation of theBruce Momjian2001-10-04
| | | | | | | | | | | | | | | | | NLS effort for the 'postgresql' component. It includes 'ru.po', which should be added to /src/backend/po/ and a typical patch for nls.mk with the 'ru' entry added in the AVAIL_LANGUAGES. I'll submit a patch with more translations for pg_dump once CVSweb becomes available. CVSweb for me right now is the only way to get to the source code until my system is completely setup by the end of the week. -- Serguei A. Mokhov
* AdjustTimeForTypmod has the same bug ...Tom Lane2001-10-04
|
* Make regress tests safe for variable-resolution timestamps.Tom Lane2001-10-04
|
* Fix some problems in new variable-resolution-timestamp code.Tom Lane2001-10-04
|
* Add dependency for regexec.cTatsuo Ishii2001-10-04
|
* Add dependency for like.cTatsuo Ishii2001-10-04
|
* Optimization for single byte encodings.Tatsuo Ishii2001-10-04
|
* Consistently use gcc's __attribute__((format)) to check sprintf-styleTom Lane2001-10-03
| | | | | format strings wherever possible. Remarkably, this exercise didn't turn up any inconsistencies, but it seems a good idea for the future.
* DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntaxTom Lane2001-10-03
| | | | | | | '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.
* Update error message wording for format_type change.Tom Lane2001-10-03
|
* Remove no-longer-used macros.Tom Lane2001-10-03
|
* Teach format_type about time/timestamp precision, so that pg_dump andTom Lane2001-10-03
| | | | psql's \d option work properly.
* Add missing TIMESTAMPTZ case.Tom Lane2001-10-03
|
* Some further kibitzing on cachability of datetime functions.Tom Lane2001-10-03
| | | | | In particular, mark all I/O functions that can produce or consume a date as noncachable, in light of existence of DateStyle variable.
* Update for latest regression tests.Tom Lane2001-10-03
|
* AdjustTimestampForTypmod does not work (at least not portably) onTom Lane2001-10-03
| | | | | | -infinity and +infinity. Put TIMESTAMP_NOT_FINITE guard into the routine, instead of forgetting it at some call sites. Fixes regression test failures here.
* Neatnik fetishism.Tom Lane2001-10-03
|
* Implement precision support for timestamp and time, both with and withoutThomas G. Lockhart2001-10-03
| | | | | | | | | | | | 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.
* Fix up bad indenting in a few places.Thomas G. Lockhart2001-10-03
|
* Add CREATE OR REPLACE FUNCTION syntax to allow replacing a functionTom Lane2001-10-02
| | | | | definition without changing the function's OID, thereby not breaking rules, views, triggers, etc that depend on it. From Gavin Sherry.
* Re-added Tom's patch fixing my setlocale patch. I accidentlyMichael Meskes2001-10-02
| | | | deleted it.
* Revise shmget() and semget() failure messages to mention the possibilityTom Lane2001-10-01
| | | | of coping by reducing shared_buffers/max_connections settings.
* Change pg_dump to produce CREATE INDEX commands by using the backend'sTom Lane2001-10-01
| | | | | | | | | 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.
* Extend pg_get_indexdef() to know about index predicates. Also, tweakTom Lane2001-10-01
| | | | | | | | 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.
* Make inclusion logic for sys/sem.h and sys/ipc.h consistent across allTom Lane2001-10-01
| | | | the files that need them. Per trouble report from Teodor.
* Fix a couple of stray // comments.Tom Lane2001-10-01
|
* Add sys/types.h for FreeBSD compile.Bruce Momjian2001-10-01
| | | | Teodor Sigaev
* Clean up a little more carefully around fork of pgstat subprocess.Tom Lane2001-10-01
| | | | | | 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).
* > > > > > - PostgreSQL requires to be compiled with --enable-multibyteBruce Momjian2001-10-01
| | | | | | | | | | | | | | | | | | | > > > > > 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
* - Fixed truncate bug.Michael Meskes2001-10-01
| | | | | | - Added patch by Christof Petig <christof.petig@wtal.de> to clean up ecpglib.
* Another round of cleanups for dynahash.c (maybe it's finally clean ofTom Lane2001-10-01
| | | | | | | | | 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.
* Suppress timestamp_ops for backwards compatibility with 7.1 pg_dump.Tom Lane2001-10-01
|
* Remove C++ style comment. Some compilers won't accept it.Tatsuo Ishii2001-10-01
|
* Fix a compile error on a platform that does not have PAM.Tatsuo Ishii2001-10-01
|
* Make libpq++ safe again for older C++ compilers. Do 'using namespace std'Tom Lane2001-09-30
| | | | | only if configure found it was safe to do so; do not assume const_cast is available.
* These are further fixes for double quotes missing in the various shellBruce Momjian2001-09-30
| | | | | | scripts. Justin Clift
* Clean up encode/decode functions a little bit.Tom Lane2001-09-30
|
* Fix sloppiness about static vs non-static declaration of functions.Tom Lane2001-09-30
| | | | Some compilers are pickier about this than gcc is.