summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-03-19Proper unpack de_DE.ISO-8859-1Bruce Momjian
2000-03-19Minor code rearrangement & doc improvement in eval_const_expressions().Tom Lane
2000-03-19*** empty log message ***Michael Meskes
2000-03-19transformExpr() did the Wrong Thing if applied to a SubLink node thatTom Lane
had already been transformed. This led to failure in examples like UPDATE table SET fld = (SELECT ...). Repair this, and revise the comments to explain that transformExpr has to be robust against this condition. Someday we might want to fix the callers so that transformExpr is never invoked on its own output, but that someday is not today.
2000-03-19it seems in the beta2 release DBUSERID in pg_dumpall is the _name_ of theBruce Momjian
user, so it doesn't need to be translated from the number to the name. also ``create database ...'' does not take numbers for the encoding, so the ENCODING variable does not need to be translated to a number, but left as the text representation. a patch is supplied to make the changes i have found to work. i was successful dumping and reloading my database after these changes. - John M. Flinchbaugh
2000-03-19Fix incorrect implementation of log(x) for numeric, as well asTom Lane
incorrect descriptions of a couple of log-related functions. I will not force an initdb for this, but log() on a numeric won't work until you do one...
2000-03-19Another go-round with resolution of ambiguous functions and operators.Tom Lane
In function parsing, try for an actual function of the given name and input types before trying to interpret the function call as a type coercion request, rather than after. Before, a function that had the same name as a type and operated on a binary-compatible type wouldn't get invoked. Also, cross-pollinate between func_select_candidates and oper_select_candidates to ensure that they use as nearly the same resolution rules as possible. A few other minor code cleanups too.
2000-03-19In can_coerce_type, verify that a possible type-coercion functionTom Lane
actually returns the type it is named for.
2000-03-18Fixed psql -c "\slashcmd"Peter Eisentraut
2000-03-18Update bytea type descriptionBruce Momjian
2000-03-18Improve error message wording in unary_op_error() --- suggest thatTom Lane
problem could be lack of parentheses. This addresses cases like X UserOp UserOp Y, which will be parsed as (X UserOp) UserOp Y, whereas what likely was wanted was X UserOp (UserOp Y).
2000-03-18Clean up minor compiler warnings.Tom Lane
2000-03-18Modify lexing of multi-char operators per pghackers discussion aroundTom Lane
16-Mar-00: trailing + or - is not part of the operator unless the operator also contains characters not present in SQL92-defined operators. This solves the 'X=-Y' problem without unduly constraining users' choice of operator names --- in particular, no existing Postgres operator names become invalid. Also, remove processing of // comments, as agreed in the same thread.
2000-03-18Repair typos: <xb> EOF rule should be <xh>, likewise <xq> to <xd>Tom Lane
2000-03-18Just noticed that the grammar actually has no provision for '+' as aTom Lane
prefix operator :-(. Bad enough that we have no implementation of unary plus, but at least with this fix the grammar will take it.
2000-03-18Add translation of timespan to interval.Bruce Momjian
2000-03-17Patch possible portability problem: a few places had // style comments,Tom Lane
which is not ANSI C, even though some compilers will take it...
2000-03-17Typo correction (// -> /)Tom Lane
2000-03-17Add safety check on expression nesting depth. Default value is set byTom Lane
a config.h #define, and the runtime value can be controlled via SET.
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-16Update config.guess and config.sub to latest versions available fromTom Lane
the GNU Autoconf CVS server.
2000-03-16Tweak horology regress test to ensure platform-independent ordering ofTom Lane
results in conversions tests. Update horology-no-DST-before-1970.out.
2000-03-16Since it has been confirmed working on the bugs list, please apply theBruce Momjian
attached patch. Andreas Kardos
2000-03-16libpq++ Makefile uses -DDEBUG to turn on debugging trace toBruce Momjian
/tmp/trace.out. However, elog.h uses DEBUG as a log-level flag. As a result, tracing is turned on even if the libpq++.so is built with DEBUG commented out in the Makefile. This patch changes libpq++ to use DEBUGFILE instead (which is not defined anywhere else). Oliver Elphick
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-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. Update geometry.out with results from Linux RH 5.2 system (for last decimal place).
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. Fix single-space typo in printed message in regress.sh.
2000-03-16Fixes for char_length() change.Tatsuo Ishii
2000-03-16Fixes for char_length() changes.Tatsuo Ishii
2000-03-16Turns out that Mazurkiewicz's gripe about 'function inheritance' isTom Lane
actually a type-coercion problem. If you have a function defined on class A, and class B inherits from A, then the function ought to work on class B as well --- but coerce_type didn't know that. Now it does.
2000-03-16Fix for char_length() changesTatsuo Ishii
2000-03-16Fix some (more) problems with subselects in rules. Rewriter failed toTom Lane
mark query as having subselects if a subselect was added from a rule WHERE condition (as opposed to a rule action). Also, fix adjustment of varlevelsup so that it actually has some prospect of working when inserting an expression containing a subselect into a subquery.
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
2000-03-15Update comment obsoleted by Thomas's latest fixes.Tom Lane
2000-03-15Tweak GROUP BY so that it will still accept result-column names, but onlyTom Lane
after trying to resolve the item as an input-column name. This allows us to be compliant with the SQL92 spec for queries that fall within the spec, while still accepting the same out-of-spec queries as 6.5 did. You'll only lose if there is an output column name that is the same as an input column name, but doesn't refer to the same value. 7.0 will interpret such a GROUP BY spec differently than 6.5 did. No way around that, because 6.5 was clearly not spec compliant.
2000-03-15*** empty log message ***Michael Meskes
2000-03-15Fix busted TRANSLATE() code --- it coredumped due to pfree()'ing theTom Lane
wrong pointer.
2000-03-15Remove another incorrect UserAbortTransactionBlock() call.Tom Lane
2000-03-15Remove gratuitous and incorrect begin/commit transaction calls inTom Lane
CREATE DB/DROP DB. If you didn't think they were wrong, try what happens when you compile with -DCLOBBER_FREED_MEMORY --- database name displayed in error messages is trashed, because transaction abort freed it. Also, remove trailing periods in error messages, per our prevailing style.
2000-03-15Fix a couple of missed changes in expected results.Tom Lane
2000-03-15Add 'datetime' -> 'timestamp' conversion to xlateSqlFunc() to easeTom Lane
the pain of updating apps to 7.0. Should we also translate some of the 'datetime_foo' functions that exist in 6.* ?
2000-03-14Repair unintentional damage to MULTIBYTE code.Tom Lane
2000-03-14Cache fmgr lookup data for index's getnext() function in IndexScanDesc,Tom Lane
so that the fmgr lookup only has to happen once per index scan and not once per tuple. Seems to save 5% or so of CPU time for an indexscan.
2000-03-14Implement column aliases on views "CREATE VIEW name (collist)".Thomas G. Lockhart
Implement TIME WITH TIME ZONE type (timetz internal type). Remap length() for character strings to CHAR_LENGTH() for SQL92 and to remove the ambiguity with geometric length() functions. Keep length() for character strings for backward compatibility. Shrink stored views by removing internal column name list from visible rte. Implement min(), max() for time and timetz data types. Implement conversion of TIME to INTERVAL. Implement abs(), mod(), fac() for the int8 data type. Rename some math functions to generic names: round(), sqrt(), cbrt(), pow(), etc. Rename NUMERIC power() function to pow(). Fix int2 factorial to calculate result in int4. Enhance the Oracle compatibility function translate() to work with string arguments (from Edwin Ramirez). Modify pg_proc system table to remove OID holes.
2000-03-14Marginal performance improvement in LockBuffer --- calculate addressTom Lane
of BufferLocks[] entry just once. Seems to save 10% or so of the routine's runtime, which'd not be worth worrying about if it weren't such a hotspot.
2000-03-14> I have improved the System V semaphore emulation of the QNX4 port.Bruce Momjian
Please > apply the attached patch to > > backend/port/qnx4 > > Andreas Kardos >
2000-03-14> To make PostgreSQL compilable on Digital Unix I had to modify theBruce Momjian
alpha_cc > template file. Patch attached. > > Andreas Kardos >
2000-03-14> Here is an extension of the regression test suite for Digital UnixBruce Momjian
(Alpha). > > Andreas Kardos
2000-03-14> Here is an extension of the regression test suite for Digital UnixBruce Momjian
(Alpha). >
2000-03-14> The snprintf stuff in interfaces/ecpg/preproc/Makefile.in is broken.Bruce Momjian
Please > apply the attached patch. > > Andreas Kardos > >