summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-11-15Push qual clauses containing subplans to the back of the qual listTom Lane
at each plan node. Per gripe from Ross Reedstrom.
2002-11-15Rename hostname_lookup to log_hostname.Bruce Momjian
2002-11-15Rename show_source_port to log_source_port.Bruce Momjian
2002-11-15Rename show_btree_build_stats to log_btree_build_statsBruce Momjian
2002-11-15Rename:Bruce Momjian
! #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
2002-11-14Rename server_min_messages to log_min_messages. Part of consolidationBruce Momjian
of log_ settings.
2002-11-14Fix planning bug introduced in recent code reorganization for hashedTom Lane
aggregates: tuple_fraction has to be adjusted before passing it to compare_fractional_path_costs().
2002-11-14Applied patch submitted by Mats Lofkvist fixing serious threading problem ↵Barry Lind
introduced in beta3. Fixed bug with using setNull()(or setXXX(x, null)) and serverside prepare statements. Improved error message when using a connection object that has already been closed. Modified Files: jdbc/org/postgresql/errors.properties jdbc/org/postgresql/core/Encoding.java jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2002-11-14There was an error in the gcc portion of the patch I sent you. Here isBruce Momjian
the fix. Billy G. Allie
2002-11-13Allow +1300 as a numeric timezone specifier; we already accept FJST as ↵Tom Lane
meaning +1300.
2002-11-13Use cat instead of echo or awk, to avoid portability problems with backslashes.Tom Lane
2002-11-13Update xact.c comments for clarity.Bruce Momjian
2002-11-13Make MOVE/FETCH 0 actually move/fetch 0. Add MOVE LAST to move to endBruce Momjian
of cursor.
2002-11-13Add new palloc0 call as merge of palloc and MemSet(0).Bruce Momjian
2002-11-13Split MemSet into three parts to constant comparisons can be optimizedBruce Momjian
away by the compiler; used by palloc0.
2002-11-12Update AIX resultmap for horology tests, per Andreas.Tom Lane
2002-11-12Improve comment: add note that grotty special case in mdread() isTom Lane
required by hash index implementation.
2002-11-12Fix broken GB18030 <--> UTF-8 conversion mapTatsuo Ishii
2002-11-12Remove NO_MKTIME_BEFORE_1970. I had speculated that it was not neededTom Lane
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.
2002-11-11Code review for ON COMMIT patch. Make the actual on-commit action happenTom Lane
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.
2002-11-11Fixes bug where join to pg_description was incorrect. Also modifies theBarry Lind
regression test to test for this case. Patch submitted by Kris Jurka. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
2002-11-11Add cast to suppress compile warning on Alphas.Tom Lane
2002-11-11Back out use of palloc0 in place if palloc/MemSet. Seems constant lenBruce Momjian
to MemSet is a performance boost.
2002-11-10Merge palloc()/MemSet(0) calls into a single palloc0() call.Bruce Momjian
2002-11-10Add palloc0 function to inline MemSet for newNode call.Bruce Momjian
2002-11-10This trivial patch removes 2 unused defines from pg_config.h.in:Bruce Momjian
FASTBUILD and DATEDEBUG weren't referenced by any other code. Neil Conway
2002-11-10I am attaching a patch file that will replace the previous one. It onlyBruce Momjian
contains the patches to Makefile.global.in and Makefile.unixware. The Makefile.unixware patch has been updated to include the contents of LD_LIBRARY_PATH, if present, to the -rpath (-R) option. This change will simplify configuring and building PostgreSQL on systems that support LD_LIBRARY_PATH. You can set LD_LIBRARY_PATH to include all the directorys you want to have searched for additional libraries, run configure, then run make. The paths in LD_LIBRARY_PATH will then be embedded in the executables via the -rpath (-R) option to the linker, and so will not require LD_LIBRARY_PATH in order to run. Billy G. Allie
2002-11-10This patch makes a minor cleanup to the implementation of PERFORM inBruce Momjian
PL/PgSQL. Previously, it had been bundled together with the assign statement implementation, for some reason that wasn't clear to me (they certainly don't share any code with one another). So I separated them and made PERFORM a statement like any other. No changes in functionality. Along the way, I added some regression tests for PERFORM, added a bunch more SGML tags to the PL/PgSQL docs, and removed an obsolete comment relating to the implementation of RETURN NEXT. Neil Conway
2002-11-10> > I'll re-check that with the ppc architecture guy here.Bruce Momjian
> > ... he is now about to write an inlined version that can go into > s_lock.h . I'll send the new patch later on... OK, here it comes: An inlined version of tas(), that works for both, powerpc and powerpc64. The patch is against 7.3b5 and passes the test suite on both architectures. Reinhard Max
2002-11-10I just discovered, that there is missing a const when passing a bufferBruce Momjian
to PQescapeBytea and PQunescapeBytea. I fixed it and tried to create a usable diff (I'm not so familar to diff). Tommi M?kitalo
2002-11-10Tweak CREATE SEQUENCE grammar to be more SQL1999 standards compliant.Bruce Momjian
Neil Conway
2002-11-09Add code to handle [ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP }]Bruce Momjian
for temp tables. Gavin Sherry
2002-11-08This patch removes a bunch of superfluous #include directives: ifBruce Momjian
postgres.h or c.h includes a system header (such as stdio.h or stdlib.h), there's no need to specifically include it in any of the .c files in the backend. Neil Conway
2002-11-08Revise geometry regression testing to eliminate most cross-platformTom Lane
variation. To do this, set extra_float_digits to -3 in the geometry test, and tweak the CIRCLE_TBL dataset to avoid values that suffer from severe cancellation error (eg, circles that just touch an axis). We still need two geometry 'expected' files to account for the difference between platforms that display minus zero as '-0' and those that just say '0', but with luck that's all we'll need.
2002-11-08Here is a patch that does just that, while maintaining theBruce Momjian
"traditional" behavior, so the change should be transparent. Use the command "\pset pager always" to turn it on. Anything else does the normal toggle between "on" and "off" Greg Sabino Mullane
2002-11-08Replace imprecise value of PI with a better one, and tweak circle_polyTom Lane
in hopes of reducing platform-to-platform variations in its results. This will cause the geometry regression test to start failing on some platforms. I plan to update the test later today.
2002-11-08Add extra_float_digits GUC parameter to allow adjustment of displayedTom Lane
precision for float4, float8, and geometric types. Set it in pg_dump so that float data can be dumped/reloaded exactly (at least on platforms where the float I/O support is properly implemented). Initial patch by Pedro Ferreira, some additional work by Tom Lane.
2002-11-08The "Allow easy display of usernames in a group (pg_hba.conf uses groupsBruce Momjian
now)" item on the open items, and subsequent plpgsql function I sent in, made me realize it was too hard to get the upper and lower bound of an array. The attached creates two functions that I think will be very useful when combined with the ability of plpgsql to return sets. array_lower(array, dim_num) - and - array_upper(array, dim_num) They return the value (as an int) of the upper and lower bound of the requested dim in the provided array. Joe Conway
2002-11-07Add #define _GNU_SOURCE to work around what seems to be Perl 5.8.0'sTom Lane
problem. Per recent discussions about plperl failing to build on Linux.
2002-11-07Move substitute extern declarations to end of file, so that they areTom Lane
not read until after we've read the port-specific header file. In particular this should make it safer to #include system headers for inet_aton; in general it seems that the port header file ought to be in a position to set definitions before we do stuff based on having a definition or not.
2002-11-07Remove inappropriate inclusions of OpenSSL internal header e_os.h,Tom Lane
as well as unnecessary (and incorrect on Windows) assignments to errno/SOCK_ERRNO.
2002-11-07Synced parser one more time.Michael Meskes
2002-11-07Remove no-longer-needed inclusions to improve backward compatibilityTom Lane
with older bison versions.
2002-11-06Phase 2 of hashed-aggregation project. nodeAgg.c now knows how to doTom Lane
hashed aggregation, but there's not yet planner support for it.
2002-11-06First phase of implementing hash-based grouping/aggregation. An AGG planTom Lane
node now does its own grouping of the input rows, and has no need for a preceding GROUP node in the plan pipeline. This allows elimination of the misnamed tuplePerGroup option for GROUP, and actually saves more code in nodeGroup.c than it costs in nodeAgg.c, as well as being presumably faster. Restructure the API of query_planner so that we do not commit to using a sorted or unsorted plan in query_planner; instead grouping_planner makes the decision. (Right now it isn't any smarter than query_planner was, but that will change as soon as it has the option to select a hash- based aggregation step.) Despite all the hackery, no initdb needed since only in-memory node types changed.
2002-11-04Fix inclusion order, per Andreas.Tom Lane
2002-11-04Remove unnecessary inclusion, per Andreas.Tom Lane
2002-11-04Remove no-longer-needed inclusion of bootstrap_tokens.h, per patchTom Lane
from Andreas.
2002-11-04Applied two patches from Kris Jurka.Barry Lind
- First fixes a problem with a recent patch allowing setNull on updateable resultsets - Second removed toLower() calls on database object names. Leave it to the caller to correctly pass lower, upper or mixed case. The driver already has methods that the caller can use to determine that postgres stores identifiers in lowercase. (unless the identifier was quoted when created). Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
2002-11-02Code review for recent patch to allow ALTER TABLE ADD COLUMN whenTom Lane
a child table already has a matching column. Acquire appropriate lock on child table; do the right thing with any CHECK constraints attached to the new parent column.