summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-02-13Update /contrib/fuzzystrmatch error message to mention bytes, not justBruce Momjian
'length', which can be characters.
2007-02-13Add ORDER BY to vacummdb so databases are scaned in the same order asBruce Momjian
pg_dumpall.
2007-02-13Add:Bruce Momjian
> * Update our code to handle 64-bit timezone files to match the zic > source code, which now uses them
2007-02-13Un-break build on ANSI compilers (like msvc) by moving Assert to positionMagnus Hagander
after variable declarations.
2007-02-13Add script to run regression tests under vc++ without mingw. UpdateMagnus Hagander
clean script to properly clean up the result of it.
2007-02-13One more fix for makefile := to : change.Magnus Hagander
2007-02-13Properly parse Makefile after change from := to =.Magnus Hagander
2007-02-13Repair bug in 8.2's new logic for planning outer joins: we have to allow joinsTom Lane
that overlap an outer join's min_righthand but aren't fully contained in it, to support joining within the RHS after having performed an outer join that can commute with this one. Aside from the direct fix in make_join_rel(), fix has_join_restriction() and GEQO's desirable_join() to consider this possibility. Per report from Ian Harding.
2007-02-13Add comment to explain why O_EXCL and O_TRUNC can be ignored inBruce Momjian
openFlagsToCreateFileFlags() in certain cases.
2007-02-13Add comment that to_char() for broken glibc pt_BR might cause a problem.Bruce Momjian
2007-02-12Avoid infinite recursion when dumping new planner EquivalenceClass trees.Tom Lane
2007-02-12Fix backend crash in parsing incorrect tsquery.Teodor Sigaev
Per report from Jon Rosebaugh <jon@inklesspen.com>
2007-02-11Add support for optionally escaping periods when converting SQL identifiersPeter Eisentraut
to XML names, which will be required for supporting XML export.
2007-02-11Fix another erroneous =-for-:= substitution.Tom Lane
2007-02-11Fixed multibyte handling as reported by <harada.toshi@oss.ntt.co.jp>.Michael Meskes
2007-02-11Fix for early log messages during postmaster startup getting lost whenMagnus Hagander
running as a service on Win32. Per report from Harald Armin Massa.
2007-02-10Improve documentation for CREATE CONSTRAINT TRIGGER.Tom Lane
2007-02-10Fix pg_standby to build on msvc.Magnus Hagander
2007-02-10Add proper mapping of boolean type data to XML Schema.Peter Eisentraut
2007-02-10StrNCpy -> strlcpy (not complete)Peter Eisentraut
2007-02-10Put back some not-so-unnecessary-as-all-that := usages. Per buildfarm.Tom Lane
2007-02-10Hm, seems my hack on rowtypes regression test has made its output rowTom Lane
order platform-specific. Add an ORDER BY clause to stop buildfarm failures.
2007-02-09Unbreak the SGML doc build: ":=" is needed to assign to variables ifNeil Conway
the RHS of the assignment expands to a reference to the LHS.
2007-02-09Minor tweak to make rowtypes regression test run faster. We don'tTom Lane
currently have any better strategy for this query than re-running the sub-select over and over; it seems unlikely that doing so 10000 times is a more useful test than doing it a few dozen times.
2007-02-09Remove useless CPPFLAGS.Peter Eisentraut
2007-02-09Add $PostgreSQL$ marker to contrib makefiles.Peter Eisentraut
2007-02-09Call pgstat_drop_database during DROP DATABASE, so that any stats fileTom Lane
entries for the victim database go away sooner rather than later. We already did the equivalent thing at the per-relation level, not sure why it's not been done for whole databases. With this change, pgstat_vacuum_tabstat should usually not find anything to do; though we still need it as a backstop in case DROPDB or TABPURGE messages get lost under load.
2007-02-09Replace useless uses of := by = in makefiles.Peter Eisentraut
2007-02-09Remove blank lines in code.Bruce Momjian
2007-02-09Update FAQ for new 24-byte header, down from 28.Bruce Momjian
2007-02-09Add blank line.Bruce Momjian
2007-02-09Add URL for:Bruce Momjian
< > http://archives.postgresql.org/pgsql-hackers/2007-02/msg00435.php
2007-02-09Done!Bruce Momjian
< * Merge xmin/xmax/cmin/cmax back into three header fields < < Before subtransactions, there used to be only three fields needed to < store these four values. This was possible because only the current < transaction looks at the cmin/cmax values. If the current transaction < created and expired the row the fields stored where xmin (same as < xmax), cmin, cmax, and if the transaction was expiring a row from a < another transaction, the fields stored were xmin (cmin was not < needed), xmax, and cmax. Such a system worked because a transaction < could only see rows from another completed transaction. However, < subtransactions can see rows from outer transactions, and once the < subtransaction completes, the outer transaction continues, requiring < the storage of all four fields. With subtransactions, an outer < transaction can create a row, a subtransaction expire it, and when the < subtransaction completes, the outer transaction still has to have < proper visibility of the row's cmin, for example, for cursors. < < One possible solution is to create a phantom cid which represents a < cmin/cmax pair and is stored in local memory. Another idea is to < store both cmin and cmax only in local memory. < > * -Merge xmin/xmax/cmin/cmax back into three header fields
2007-02-09Combine cmin and cmax fields of HeapTupleHeaders into a single field, byTom Lane
keeping private state in each backend that has inserted and deleted the same tuple during its current top-level transaction. This is sufficient since there is no need to be able to determine the cmin/cmax from any other transaction. This gets us back down to 23-byte headers, removing a penalty paid in 8.0 to support subtransactions. Patch by Heikki Linnakangas, with minor revisions by moi, following a design hashed out awhile back on the pghackers list.
2007-02-09Remove blank line from C code.Bruce Momjian
2007-02-09Update:Bruce Momjian
< * Consider placing all sequences in a single table > * Consider placing all sequences in a single table, or create a system > view
2007-02-09Update:Bruce Momjian
< * Consider placing all sequences in a single table, now that system < tables are full transactional > * Consider placing all sequences in a single table
2007-02-09Add:Bruce Momjian
> * Consider placing all sequences in a single table, now that system > tables are full transactional
2007-02-08Add URL for:Bruce Momjian
* Add support for SQL-standard GENERATED/IDENTITY columns > http://archives.postgresql.org/pgsql-hackers/2006-08/msg00038.php
2007-02-08Add missing #define for mingw, per Magnus.Tom Lane
2007-02-08Fix an ancient logic error in plpgsql's exec_stmt_block: it thought it couldTom Lane
get away with not (re)initializing a local variable if the variable is marked "isconst" and not "isnull". Unfortunately it makes this decision after having already freed the old value, meaning that something like for i in 1..10 loop declare c constant text := 'hi there'; leads to subsequent accesses to freed memory, and hence probably crashes. (In particular, this is why Asif Ali Rehman's bug leads to crash and not just an unexpectedly-NULL value for SQLERRM: SQLERRM is marked CONSTANT and so triggers this error.) The whole thing seems wrong on its face anyway: CONSTANT means that you can't change the variable inside the block, not that the initializer expression is guaranteed not to change value across successive block entries. Hence, remove the "optimization" instead of trying to fix it.
2007-02-08Rearrange use of plpgsql_add_initdatums() so that only the parsing of aTom Lane
DECLARE section needs to know about it. Formerly, everyplace besides DECLARE that created variables needed to do "plpgsql_add_initdatums(NULL)" to prevent those variables from being sucked up as part of a subsequent DECLARE block. This is obviously error-prone, and in fact the SQLSTATE/SQLERRM patch had failed to do it for those two variables, leading to the bug recently exhibited by Asif Ali Rehman: a DECLARE within an exception handler tried to reinitialize SQLERRM. Although the SQLSTATE/SQLERRM patch isn't in any pre-8.1 branches, and so I can't point to a demonstrable failure there, it seems wise to back-patch this into the older branches anyway, just to keep the logic similar to HEAD.
2007-02-08Fix bug when localized to_char() day or month names were incorectlyBruce Momjian
trnasformed to lower or upper string. Pavel Stehule
2007-02-08This patch fixes shared_preload_libraries on Windows hosts. It forcesBruce Momjian
ach backend to re-load all shared_preload_libraries. Korry Douglas
2007-02-08Add lock matrix to documentation.Bruce Momjian
Teodor Sigaev
2007-02-08Win32 regression test fixes:Bruce Momjian
For win32 in general, this makes it possible to run the regression tests as an admin user by using the same restricted token method that's used by pg_ctl and initdb. For vc++, it adds building of pg_regress.exe, adds a resultmap, and fixes how it runs the install. Magnus Hagander
2007-02-08Add /contrib/pg_standby:Bruce Momjian
pg_standby is a production-ready program that can be used to create a Warm Standby server. Other configuration is required as well, all of which is described in the main server manual. Simon Riggs
2007-02-08Add /contrib/pg_standby:Bruce Momjian
pg_standby is a production-ready program that can be used to create a Warm Standby server. Other configuration is required as well, all of which is described in the main server manual. Simon Riggs
2007-02-08Fix reference-after-free in the new btree page split code, as reported byAlvaro Herrera
the buildfarm via Stefan Kaltenbrunner. Patch from Heikki Linnakangas.
2007-02-08Normalize fgets() calls to use sizeof() for calculating the buffer sizePeter Eisentraut
where possible, and fix some sites that apparently thought that fgets() will overwrite the buffer by one byte. Also add some strlcpy() to eliminate some weird memory handling.