summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-02-08Reduce WAL activity for page splits:Bruce Momjian
> Currently, an index split writes all the data on the split page to > WAL. That's a lot of WAL traffic. The tuples that are copied to the > right page need to be WAL logged, but the tuples that stay on the > original page don't. Heikki Linnakangas
2007-02-08Check if the role exists before doing more complex ident and KerberosBruce Momjian
authentication checks in the backend. Gavin Sherry
2007-02-08Update URL for "Generalized Partial Indexes" paper to point to a cachedBruce Momjian
version. Backpatch to 8.2.X.
2007-02-08Document that wal_sync_method open_* methods use O_DIRECT, if available.Bruce Momjian
Backpatch to 8.2.X.
2007-02-08Fix bug in our code when using to_timestamp() or to_date() without "TM".Bruce Momjian
Assume "TM" when input fields are variable-length, like month or day names. This matches Oracle behavior.
2007-02-07Add a function pg_stat_clear_snapshot() that discards any statistics snapshotTom Lane
already collected in the current transaction; this allows plpgsql functions to watch for stats updates even though they are confined to a single transaction. Use this instead of the previous kluge involving pg_stat_file() to wait for the stats collector to update in the stats regression test. Internally, decouple storage of stats snapshots from transaction boundaries; they'll now stick around until someone calls pgstat_clear_snapshot --- which xact.c still does at transaction end, to maintain the previous behavior. This makes the logic a lot cleaner, at the price of a couple dozen cycles per transaction exit.
2007-02-07Modify the stats regression test to delay until the stats file actuallyTom Lane
changes (with an upper limit of 30 seconds), and record the delay time in the postmaster log. This should give us some info about what's happening with the intermittent stats failures in buildfarm. After an idea of Andrew Dunstan's.
2007-02-07Remove the xlog-centric "database system is ready" message and replace it withTom Lane
"database system is ready to accept connections", which is issued by the postmaster when it really is ready to accept connections. Per proposal from Markus Schiltknecht and subsequent discussion.
2007-02-07The VC++ build needs to compile the new strlcat.c file. Patch from MagnusAlvaro Herrera
Hagander.
2007-02-07Stamp bug template for 8.3.Bruce Momjian
2007-02-07Stamp releases notes for 8.2.3, 8.1.8, 8.0.12.Bruce Momjian
2007-02-07Update for 8.2.3.Bruce Momjian
2007-02-07Replace some strncpy() by strlcpy().Peter Eisentraut
2007-02-07Use memcpy() instead of strncpy() for copying into varlena structures.Peter Eisentraut
2007-02-07Add strlcat() from OpenBSD, to be used for replacing strncat and otherPeter Eisentraut
strange coding practices.
2007-02-06Fix an error in the original coding of holdable cursors: PersistHoldablePortalTom Lane
thought that it didn't have to reposition the underlying tuplestore if the portal is atEnd. But this is not so, because tuplestores have separate read and write cursors ... and the read cursor hasn't moved from the start. This mistake explains bug #2970 from William Zhang. Note: the coding here is pretty inefficient, but given that no one has noticed this bug until now, I'd say hardly anyone uses the case where the cursor has been advanced before being persisted. So maybe it's not worth worrying about.
2007-02-06Update for 8.2.2 as most recent release.Bruce Momjian
2007-02-06Update workding for daylight savings time.Bruce Momjian
2007-02-06Update timezone FAQ item:Bruce Momjian
<P>USA saving time changes are included in PostgreSQL release 8.0.[4+], and all later major releases, e.g. 8.1. Canada and Western Australia changes are included in 8.0.[10+], 8.1.[6+], and all later major releases. PostgreSQL releases prior to 8.0 use the operating system's timezone database for daylight saving information.</P>
2007-02-06Remove typmod checking from the recent security-related patches. It turnsTom Lane
out that ExecEvalVar and friends don't necessarily have access to a tuple descriptor with correct typmod: it definitely can contain -1, and possibly might contain other values that are different from the Var's value. Arguably this should be cleaned up someday, but it's not a simple change, and in any case typmod discrepancies don't pose a security hazard. Per reports from numerous people :-( I'm not entirely sure whether the failure can occur in 8.0 --- the simple test cases reported so far don't trigger it there. But back-patch the change all the way anyway.
2007-02-06Split apart entries, one done now:Bruce Momjian
* -Move NAMEDATALEN from postgres_ext.h to pg_config_manual.h * Consider making NAMEDATALEN more configurable in future releases
2007-02-06Fix typo in comment.Tom Lane
2007-02-06Remove some dead code, per Heikki.Tom Lane
2007-02-06Move NAMEDATALEN definition from postgres_ext.h to pg_config_manual.h. ItPeter Eisentraut
used to be part of libpq's exported interface many releases ago, but now it's no longer necessary to make it accessible to clients.
2007-02-06Fix a performance regression in 8.2: optimization of MIN/MAX into indexscansTom Lane
had stopped working for tables buried inside views or sub-selects. This is because I had gotten rid of the simplify_jointree() preprocessing step, and optimize_minmax_aggregates() wasn't smart enough to deal with a non-canonical FromExpr. Per gripe from Bill Howe.
2007-02-06Docs updates for cross-type hashing.Tom Lane
2007-02-06Come to think of it, we should check that commutator pairs have the sameTom Lane
merges/hashes property settings.
2007-02-06Not only did we agree that this 'hint' doesn't belong here, but theTom Lane
markup's broken. So just remove it...
2007-02-06Add support for cross-type hashing in hashed subplans (hashed IN/NOT IN casesTom Lane
that aren't turned into true joins). Since this is the last missing bit of infrastructure, go ahead and fill out the hash integer_ops and float_ops opfamilies with cross-type operators. The operator family project is now DONE ... er, except for documentation ...
2007-02-05Trim down environment variable instructions for Win32, backpatch to 8.2.X.Bruce Momjian
2007-02-05Updated TODO item:Bruce Momjian
> o Add a \set variable to control whether \s displays line numbers > Another option is to add \# which lists line numbers, and > allows command execution. > http://archives.postgresql.org/pgsql-hackers/2006-12/msg00255.php
2007-02-05Modify:Bruce Momjian
< o Add \# to list command history like \s, but with line numbers > o Add \# to list and execute command history
2007-02-05Pass modern COPY syntax to backend, since copy (query) does not accept old ↵Andrew Dunstan
syntax. Per complaint from Michael Fuhr.
2007-02-05Rename MaxTupleSize to MaxHeapTupleSize to clarify that it's not meant toTom Lane
describe the maximum size of index tuples (which is typically AM-dependent anyway); and consequently remove the bogus deduction for "special space" that was built into it. Adjust TOAST_TUPLE_THRESHOLD and TOAST_MAX_CHUNK_SIZE to avoid wasting two bytes per toast chunk, and to ensure that the calculation correctly tracks any future changes in page header size. The computation had been inaccurate in a way that didn't cause any harm except space wastage, but future changes could have broken it more drastically. Fix the calculation of BTMaxItemSize, which was formerly computed as 1 byte more than it could safely be. This didn't cause any harm in practice because it's only compared against maxalign'd lengths, but future changes in the size of page headers or btree special space could have exposed the problem. initdb forced because of change in TOAST_MAX_CHUNK_SIZE, which alters the storage of toast tables.
2007-02-04Don't MAXALIGN in the checks to decide whether a tuple is over TOAST'sTom Lane
threshold for tuple length. On 4-byte-MAXALIGN machines, the toast code creates tuples that have t_len exactly TOAST_TUPLE_THRESHOLD ... but this number is not itself maxaligned, so if heap_insert maxaligns t_len before comparing to TOAST_TUPLE_THRESHOLD, it'll uselessly recurse back to tuptoaster.c, wasting cycles. (It turns out that this does not happen on 8-byte-MAXALIGN machines, because for them the outer MAXALIGN in the TOAST_MAX_CHUNK_SIZE macro reduces TOAST_MAX_CHUNK_SIZE so that toast tuples will be less than TOAST_TUPLE_THRESHOLD in size. That MAXALIGN is really incorrect, but we can't remove it now, see below.) There isn't any particular value in maxaligning before comparing to the thresholds, so just don't do that, which saves a small number of cycles in itself. These numbers should be rejiggered to minimize wasted space on toast-relation pages, but we can't do that in the back branches because changing TOAST_MAX_CHUNK_SIZE would force an initdb (by changing the contents of toast tables). We can move the toast decision thresholds a bit, though, which is what this patch effectively does. Thanks to Pavan Deolasee for discovering the unintended recursion. Back-patch into 8.2, but not further, pending more testing. (HEAD is about to get a further patch modifying the thresholds, so it won't help much for testing this form of the patch.)
2007-02-04Add:Bruce Momjian
> > * Allow custom variable classes that can restrict who can set the values > > http://archives.postgresql.org/pgsql-hackers/2006-11/msg00911.php >
2007-02-04Update wording.Bruce Momjian
2007-02-04Add documentation for Windows on how to set an environment variable.Bruce Momjian
Backpatch to 8.2.X.
2007-02-04Change vacuum lazy "compacting" warning message to:Bruce Momjian
errhint("Consider using VACUUM FULL on this relation or increasing the configuration parameter \"max_fsm_pages\".")));
2007-02-04Update URL for:Bruce Momjian
* Allow sequential scans to take advantage of other concurrent sequential scans, also called "Synchronised Scanning"
2007-02-04Add:Bruce Momjian
> > o Add \# to list command history like \s, but with line numbers > > http://archives.postgresql.org/pgsql-hackers/2006-12/msg00255.php >
2007-02-03Add URLs for:Bruce Momjian
* Allow sequential scans to take advantage of other concurrent sequential scans, also called "Synchronised Scanning" > http://archives.postgresql.org/pgsql-patches/2006-12/msg00076.php > http://archives.postgresql.org/pgsql-hackers/2006-12/msg00408.php
2007-02-03Document that a client-only install using:Bruce Momjian
gmake -C src/bin install does install a few server-only binaries.
2007-02-03Add:Bruce Momjian
> o Allow recovery.conf to allow the same syntax as > postgresql.conf, including quoting > > http://archives.postgresql.org/pgsql-hackers/2006-12/msg00497.php
2007-02-03Update SQL conformance information about XML features.Peter Eisentraut
2007-02-03Implement XMLSERIALIZE for real. Analogously, make the xml to text castPeter Eisentraut
observe the xmloption. Reorganize the representation of the XML option in the parse tree and the API to make it easier to manage and understand. Add regression tests for parsing back XML expressions.
2007-02-03Fix configure detection code when --with-ldap and --enable-thread-safetyBruce Momjian
are both used. Albe Laurenz
2007-02-03Add patches thread for:Bruce Momjian
* Reduce checkpoint performance degredation by forcing data to disk more evenly > http://archives.postgresql.org/pgsql-patches/2006-12/msg00104.php
2007-02-02Add URL for:Bruce Momjian
* Allow sequential scans to take advantage of other concurrent sequential scans, also called "Synchronised Scanning" > > http://archives.postgresql.org/pgsql-hackers/2006-12/msg00784.php
2007-02-02Add:Bruce Momjian
> * Reduce checkpoint performance degredation by forcing data to disk > more evenly > > http://archives.postgresql.org/pgsql-hackers/2006-12/msg00337.php > http://archives.postgresql.org/pgsql-hackers/2007-01/msg00079.php