summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-07-04Fixed informix behaviour for select without into.Michael Meskes
2003-07-04Some early work on error message editing. Operator-not-found andTom Lane
function-not-found messages now distinguish the cases no-match and ambiguous-match, and they follow the style guidelines too.
2003-07-03Fix bug I introduced in recent rewrite of NUMERIC code: numeric toTom Lane
integer conversions gave the wrong answer for values with stripped trailing zeroes, such as 10000000.
2003-07-03Do honest transformation and preprocessing of LIMIT/OFFSET clauses,Tom Lane
instead of the former kluge whereby gram.y emitted already-transformed expressions. This is needed so that Params appearing in these clauses actually work correctly. I suppose some might claim that the side effect of 'SELECT ... LIMIT 2+2' working is a new feature, but I say this is a bug fix.
2003-07-03Code review for UPDATE tab SET col = DEFAULT patch ... whack it aroundTom Lane
so it has some chance of working in rules ...
2003-07-02Fixed initialization bug and added postgres_fe.h to pgtypeslib.Michael Meskes
2003-07-01Support polymorphic functions in plpgsql. Along the way, replaceTom Lane
linked-list search of function cache with hash-table lookup. By Joe Conway.
2003-07-01Fix ecpg typo --- change ;; to ;.Bruce Momjian
2003-07-01Aggregates can be polymorphic, using polymorphic implementation functions.Tom Lane
It also works to create a non-polymorphic aggregate from polymorphic functions, should you want to do that. Regression test added, docs still lacking. By Joe Conway, with some kibitzing from Tom Lane.
2003-07-01Dept. of second thoughts: supporting inlining of polymorphic SQL functionsTom Lane
takes only a few more lines of code than preventing it, so might as well support it.
2003-07-01STRENGH => STRENGTH, per Jon Jensen.Tom Lane
2003-07-01Use ISO dates in pgtypeslib by default.Michael Meskes
Applied patch by Philip Yarra to fix some thread issues. Added a new data type "decimal" which is mostly the same as our "numeric" but uses a fixed length array to store the digits. This is for compatibility with Informix and maybe others.
2003-07-01Department of second thoughts: even if we can't run the full parser onTom Lane
a SQL function with polymorphic inputs, we can at least run the raw parser to catch silly syntactic errors.
2003-07-01Translation updatePeter Eisentraut
2003-07-01SQL functions can have arguments and results declared ANYARRAY orTom Lane
ANYELEMENT. The effect is to postpone typechecking of the function body until runtime. Documentation is still lacking. Original patch by Joe Conway, modified to postpone type checking by Tom Lane.
2003-07-01Change EXECUTE INTO to CREATE TABLE AS EXECUTE.Peter Eisentraut
2003-06-30patches by Kim Ho to fixDave Cramer
getByte, getSort if input has decimal or whitespace setObject if object is a BIT boolean not on list of SQLKeywords
2003-06-30Rename plpython to plpythonu, and update documentation to reflect itsTom Lane
now-untrusted status.
2003-06-30Add GUC option log_error_verbosity to control which fields of errorTom Lane
reports get put into the postmaster log. Options are TERSE, DEFAULT, VERBOSE, with the same behavior as implemented on the client side in libpq.
2003-06-30Patches applied:Barry Lind
1) Patch from Kris Jurka to fix IPv6 parsing of the jdbc URL 2) Patch from Kris Jurka to fix an ArrayIndexOutOfBounds error when calling moveToCurrentRow while currentRow is "beforeFirst" 3) Patch from Kim Ho to fix add some bounds checking in setMaxRows(), setQueryTimeout(), setFetchSize() Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/errors.properties jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
2003-06-29Restructure building of join relation targetlists so that a join planTom Lane
node emits only those vars that are actually needed above it in the plan tree. (There were comments in the code suggesting that this was done at some point in the dim past, but for a long time we have just made join nodes emit everything that either input emitted.) Aside from being marginally more efficient, this fixes the problem noted by Peter Eisentraut where a join above an IN-implemented-as-join might fail, because the subplan targetlist constructed in the latter case didn't meet the expectation of including everything. Along the way, fix some places that were O(N^2) in the targetlist length. This is not all the trouble spots for wide queries by any means, but it's a step forward.
2003-06-29- Made sure Informix style decimal vars are initialized. They use aMichael Meskes
fixed amount of digits and not an allocated one. So we have to work around. PostgreSQL numeric type remains the same. - In INFORMIX_SE mode with autcommit set, make all cursors be "with hold". Is this really they way SE behaves?
2003-06-29Information schema views for group privileges, some corrections on columnPeter Eisentraut
privileges.
2003-06-29It was comparing the wrong pair of columns, which triggered the previouslyPeter Eisentraut
mentioned bug.
2003-06-29Add missing PO files from last commit.Peter Eisentraut
2003-06-29Just another sync.Michael Meskes
2003-06-29Support expressions of the form 'scalar op ANY (array)' andTom Lane
'scalar op ALL (array)', where the operator is applied between the lefthand scalar and each element of the array. The operator must yield boolean; the result of the construct is the OR or AND of the per-element results, respectively. Original coding by Joe Conway, after an idea of Peter's. Rewritten by Tom to keep the implementation strictly separate from subqueries.
2003-06-28Merge PO file updates from 7.3 branch.Peter Eisentraut
2003-06-28Make information schema aware of arrays.Peter Eisentraut
The view element_types is currently not functional, awaiting some fixes in the planner (reported on -hackers).
2003-06-28Update psql for some features of new FE/BE protocol. There is aTom Lane
client-side AUTOCOMMIT mode now: '\set AUTOCOMMIT off' supports SQL-spec commit behavior. Get rid of LO_TRANSACTION hack --- the LO operations just work now, using libpq's ability to track the transaction status. Add a VERBOSE variable to control verboseness of error message display, and add a %T prompt-string code to show current transaction-block status. Superuser state display in the prompt string correctly follows SET SESSION AUTHORIZATION commands. Control-C works to get out of COPY IN state.
2003-06-28When using new protocol, PQexec can get out of a COPY IN or COPY OUTTom Lane
state by itself, so do so.
2003-06-27Adjust pgtest grep.Bruce Momjian
2003-06-27Update pgtest to use 'gmake check'.Bruce Momjian
2003-06-27Add is_superuser parameter reporting, soon to be used by psql.Tom Lane
2003-06-27Fix compile warnings.Tom Lane
2003-06-27Missing calls to PQclear in large_obj.c and describe.c.Tom Lane
Greg Sabino Mullane
2003-06-27First batch of object rename commands.Peter Eisentraut
2003-06-27Create real array comparison functions (that use the element datatype'sTom Lane
comparison functions), replacing the highly bogus bitwise array_eq. Create a btree index opclass for ANYARRAY --- it is now possible to create indexes on array columns. Arrange to cache the results of catalog lookups across multiple array operations, instead of repeating the lookups on every call. Add string_to_array and array_to_string functions. Remove singleton_array, array_accum, array_assign, and array_subscript functions, since these were for proof-of-concept and not intended to become supported functions. Minor adjustments to behavior in some corner cases with empty or zero-dimensional arrays. Joe Conway (with some editorializing by Tom Lane).
2003-06-26Add comment pointing out that XLByteToPrevSeg macro is not broken.Tom Lane
2003-06-26Added just another compatibility level for Informix.Michael Meskes
2003-06-26Wrap LONG_LONG_MIN redfinition around HAVE_LONG_LONG_INT_64.Bruce Momjian
2003-06-26Fix compile problem for missing LONG_LONG_MIN on BSD/OS.Bruce Momjian
2003-06-25Back out array mega-patch.Bruce Momjian
Joe Conway
2003-06-25In ISO datestyle, never emit just HH:MM, always emit HH:MM:SS orTom Lane
HH:MM:SS.SSS... when there is a nonzero part-of-a-day field in an interval value. The seconds part used to be suppressed if zero, but there's no equivalent behavior for timestamp, and since we're modeling this format on timestamp it's probably wrong. Per complaint and patch from Larry Rosenman.
2003-06-25Don't generate 'zero' typeids in the output from gen_cross_product.Tom Lane
This is no longer necessary or appropriate since we don't use zero typeid as a wildcard anymore, and it fixes a nasty performance problem with functions with many parameters. Per recent example from Reuven Lerner.
2003-06-25The remaining files ...Michael Meskes
2003-06-25remove including of postgres_fe.hMichael Meskes
2003-06-25Some systems need another header file included.Michael Meskes
2003-06-25Implemented Informix special way to treat NULLs, removed warnings, synced.Michael Meskes
2003-06-25 Fix up JOIN .. USING with domainsBruce Momjian
The attached fixes select_common_type() to support the below case: create table t1( c1 int); create domain dom_c1 int; create table t2(c1 dom_c1); select * from t1 join t2 using( c1 ); I didn't see a need for maintaining the domain as the preferred type. A simple getBaseType() call on all elements of the list seems to be enough. -- Rod Taylor <rbt@rbt.ca>