summaryrefslogtreecommitdiff
path: root/src/include
Commit message (Collapse)AuthorAgeFilesLines
* If typecmds is going to have its own header file, said header fileTom Lane2002-12-102-5/+8
| | | | should include what it needs.
* Update obsolete comment.Tom Lane2002-12-091-2/+2
|
* Attached are two small patches to expose md5 as a user function -- includingBruce Momjian2002-12-063-4/+8
| | | | | | | | documentation and regression test mods. It seemed small and unobtrusive enough to not require a specific proposal on the hackers list -- but if not, let me know and I'll make a pitch. Otherwise, if there are no objections please apply. Joe Conway
* Re-addd Rod's ALTER DOMAIN patch.Bruce Momjian2002-12-065-13/+75
|
* Back out V6 code, caused postmaster startup failure.Bruce Momjian2002-12-063-21/+2
|
* Add missing v6utils file.Bruce Momjian2002-12-061-0/+17
|
* We have just finished porting the old KAME IPv6 patch over toBruce Momjian2002-12-062-2/+4
| | | | | | | | | | | postgresql version 7.3, but yea... this patch adds full IPv6 support to postgres. I've tested it out on 7.2.3 and has been running perfectly stable. CREDITS: The KAME Project (Initial patch) Nigel Kukard <nkukard@lbsd.net> Johan Jordaan <johanj@lando.co.za>
* Back out ALTER DOMAIN patch until missing file appears.Bruce Momjian2002-12-064-45/+13
|
* ALTER DOMAIN .. SET / DROP NOT NULLBruce Momjian2002-12-064-13/+45
| | | | | | | | | | ALTER DOMAIN .. SET / DROP DEFAULT ALTER DOMAIN .. ADD / DROP CONSTRAINT New files: - doc/src/sgml/ref/alter_domain.sgml Rod Taylor
* Clearify variables names so it is clear which variable is theBruce Momjian2002-12-051-2/+2
| | | | client-supplied password and which is from pg_shadow.
* Allow 'password' encryption even when pg_shadow has MD5 passwords, perBruce Momjian2002-12-051-2/+2
| | | | | | report from Terry Yapt and Hiroshi. Backpatch to 7.3.
* Phase 1 of read-only-plans project: cause executor state nodes to pointTom Lane2002-12-0529-565/+470
| | | | | | | | | | to plan nodes, not vice-versa. All executor state nodes now inherit from struct PlanState. Copying of plan trees has been simplified by not storing a list of SubPlans in Plan nodes (eliminating duplicate links). The executor still needs such a list, but it can build it during ExecutorStart since it has to scan the plan tree anyway. No initdb forced since no stored-on-disk structures changed, but you will need a full recompile because of node-numbering changes.
* Document get/set bit/byte functions.Bruce Momjian2002-12-051-5/+5
|
* More cleanup of userid to be AclId rather than Oid.Bruce Momjian2002-12-054-19/+22
|
* Make usesysid consistently int4, not oid.Bruce Momjian2002-12-045-21/+24
| | | | | | Catalog patch from Alvaro Herrera for same. catversion updated. initdb required.
* Teach planner to expand sufficiently simple SQL-language functionsTom Lane2002-12-012-2/+5
| | | | | | | | ('SELECT expression') inline, like macros, during the constant-folding phase of planning. The actual expansion is not difficult, but checking that we're not changing the semantics of the call turns out to be more subtle than one might think; in particular must pay attention to permissions issues, strictness, and volatility.
* Fix ExecMakeTableFunctionResult() to work with generic expressions asTom Lane2002-12-011-2/+2
| | | | | | well as function calls. This is needed for cases where the planner has constant-folded or inlined the original function call. Possibly we should back-patch this change into 7.3 branch as well.
* Code review for IS DISTINCT FROM patch. Fix incorrect constant-foldingTom Lane2002-11-301-2/+8
| | | | | | logic, dissuade planner from thinking that 'x IS DISTINCT FROM 42' may be optimized into 'x = 42' (!!), cause dependency on = operator to be recorded correctly, minor other improvements.
* Be more realistic about plans involving Materialize nodes: take theirTom Lane2002-11-306-18/+25
| | | | cost into account while planning.
* Upgrade planner and executor to allow multiple hash keys for a hash join,Tom Lane2002-11-305-18/+18
| | | | | | instead of only one. This should speed up planning (only one hash path to consider for a given pair of relations) as well as allow more effective hashing, when there are multiple hashable joinclauses.
* Tighten selection of equality and ordering operators for groupingTom Lane2002-11-291-8/+9
| | | | | | | operations: make sure we use operators that are compatible, as determined by a mergejoin link in pg_operator. Also, add code to planner to ensure we don't try to use hashed grouping when the grouping operators aren't marked hashable.
* Improve some comments.Tom Lane2002-11-271-4/+8
|
* Use Params, rather than run-time-modified Const nodes, to handleTom Lane2002-11-261-2/+2
| | | | | | | sublink results and COPY's domain constraint checking. A Const that isn't really constant is just a Bad Idea(tm). Remove hacks in parse_coerce and other places that were needed because of the former klugery.
* Remove unused constisset and constiscast fields of Const nodes. CleanTom Lane2002-11-254-75/+67
| | | | up code and documentation associated with Param nodes.
* Restructure outfuncs and readfuncs to use macros in the same style asTom Lane2002-11-252-4/+4
| | | | | | | | just done for copyfuncs/equalfuncs. Read functions in particular get a lot shorter than before, and it's much easier to compare an out function with the corresponding read function to make sure they agree. initdb forced due to small changes in nodestring format (regularizing a few cases that were formerly idiosyncratic).
* Un-break triggers declared for INSERT OR DELETE OR UPDATE. This workedTom Lane2002-11-251-2/+2
| | | | | okay in 7.3, so I think it must have been busted in the recent triggers patch.
* Restructure planning of nestloop inner indexscans so that the set of usableTom Lane2002-11-245-44/+75
| | | | | | | | | | | joinclauses is determined accurately for each join. Formerly, the code only considered joinclauses that used all of the rels from the outer side of the join; thus for example FROM (a CROSS JOIN b) JOIN c ON (c.f1 = a.x AND c.f2 = b.y) could not exploit a two-column index on c(f1,f2), since neither of the qual clauses would be in the joininfo list it looked in. The new code does this correctly, and also is able to eliminate redundant clauses, thus fixing the problem noted 24-Oct-02 by Hans-Jürgen Schönig.
* Update regression for new patches. Bump up catversion.Bruce Momjian2002-11-231-2/+2
|
* Transaction safe TruncateBruce Momjian2002-11-231-1/+6
| | | | Rod Taylor
* This patch implements FOR EACH STATEMENT triggers, per my email toBruce Momjian2002-11-234-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -hackers a couple days ago. Notes/caveats: - added regression tests for the new functionality, all regression tests pass on my machine - added pg_dump support - updated PL/PgSQL to support per-statement triggers; didn't look at the other procedural languages. - there's (even) more code duplication in trigger.c than there was previously. Any suggestions on how to refactor the ExecXXXTriggers() functions to reuse more code would be welcome -- I took a brief look at it, but couldn't see an easy way to do it (there are several subtly-different versions of the code in question) - updated the documentation. I also took the liberty of removing a big chunk of duplicated syntax documentation in the Programmer's Guide on triggers, and moving that information to the CREATE TRIGGER reference page. - I also included some spelling fixes and similar small cleanups I noticed while making the changes. If you'd like me to split those into a separate patch, let me know. Neil Conway
* Redesign internal logic of nodeLimit so that it does not need to fetchTom Lane2002-11-221-4/+15
| | | | | | one more row from the subplan than the COUNT would appear to require. This costs a little more logic but a number of people have complained about the old implementation.
* TAS code originally written for s390 (32-bit) does not work for s390xTom Lane2002-11-221-2/+29
| | | | (64-bit). Fix it. Per report from Permaine Cheung.
* Finish implementation of hashed aggregation. Add enable_hashagg GUCTom Lane2002-11-212-7/+21
| | | | | | parameter to allow it to be forced off for comparison purposes. Add ORDER BY clauses to a bunch of regression test queries that will otherwise produce randomly-ordered output in the new regime.
* Add an at-least-marginally-plausible method of estimating the numberTom Lane2002-11-193-5/+13
| | | | | | of groups produced by GROUP BY. This improves the accuracy of planning estimates for grouped subselects, and is needed to check whether a hashed aggregation plan risks memory overflow.
* Put back error test for DECLARE CURSOR outside a transaction block ...Tom Lane2002-11-181-1/+2
| | | | but do it correctly now.
* New version attached. The following is implemented:Bruce Momjian2002-11-152-4/+5
| | | | | | | | | | | - CLUSTER ALL clusters all the tables that have some index with indisclustered set and the calling user owns. - CLUSTER tablename clusters the named table, using the index with indisclustered set. If no index has the bit set, throws elog(ERROR). - The multi-relation version (CLUSTER ALL) uses a multitransaction approach, similar to what VACUUM does. Alvaro Herrera
* Add DOMAIN check constraints.Bruce Momjian2002-11-157-12/+52
| | | | Rod Taylor
* Add checkpoint_warning to warn of excessive checkpoints caused by tooBruce Momjian2002-11-151-1/+2
| | | | few WAL files.
* Rename hostname_lookup to log_hostname.Bruce Momjian2002-11-151-2/+2
|
* Rename show_source_port to log_source_port.Bruce Momjian2002-11-151-2/+2
|
* Rename:Bruce Momjian2002-11-151-8/+8
| | | | | | | | | | | | | | ! #show_parser_stats = false ! #show_planner_stats = false ! #show_executor_stats = false ! #show_statement_stats = false TO: ! #log_parser_stats = false ! #log_planner_stats = false ! #log_executor_stats = false ! #log_statement_stats = false
* Rename server_min_messages to log_min_messages. Part of consolidationBruce Momjian2002-11-141-5/+5
| | | | of log_ settings.
* Update xact.c comments for clarity.Bruce Momjian2002-11-131-7/+8
|
* Make MOVE/FETCH 0 actually move/fetch 0. Add MOVE LAST to move to endBruce Momjian2002-11-132-4/+4
| | | | of cursor.
* Split MemSet into three parts to constant comparisons can be optimizedBruce Momjian2002-11-132-21/+35
| | | | away by the compiler; used by palloc0.
* Remove NO_MKTIME_BEFORE_1970. I had speculated that it was not neededTom Lane2002-11-122-2/+2
| | | | | | anymore given the mktime() workaround now done in DetermineLocalTimeZone. This has now been confirmed by Robert Bruccoleri for Irix, and I'm going to extrapolate to AIX as well.
* Code review for ON COMMIT patch. Make the actual on-commit action happenTom Lane2002-11-113-29/+19
| | | | | | | | | before commit, not after :-( --- the original coding is not only unsafe if an error occurs while it's processing, but it generates an invalid sequence of WAL entries. Resurrect 7.2 logic for deleting items when no longer needed. Use an enum instead of random macros. Editorialize on names used for routines and constants. Teach backend/nodes routines about new field in CreateTable struct. Add a regression test.
* Back out use of palloc0 in place if palloc/MemSet. Seems constant lenBruce Momjian2002-11-111-3/+2
| | | | to MemSet is a performance boost.
* Add palloc0 function to inline MemSet for newNode call.Bruce Momjian2002-11-102-7/+23
|
* This trivial patch removes 2 unused defines from pg_config.h.in:Bruce Momjian2002-11-101-16/+1
| | | | | | FASTBUILD and DATEDEBUG weren't referenced by any other code. Neil Conway