summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-05-17Add, per Alvaro:Bruce Momjian
> > * Implement the SQL standard mechanism whereby REVOKE ROLE revokes only > the privilege granted by the invoking role, and not those granted > by other roles
2007-05-17Add:Bruce Momjian
> > * Fix problem with excessive logging during SSL disconnection > > http://archives.postgresql.org/pgsql-bugs/2006-12/msg00122.php > http://archives.postgresql.org/pgsql-bugs/2007-05/msg00065.php
2007-05-17Add CVS comment for recent commit:Bruce Momjian
Moved page-level functions from pgstattuple to contrib/pageinspect.
2007-05-17Removed mktime() call to hopefully get rid of some compatibility problems.Michael Meskes
2007-05-17Fix parameter recalculation for Limit nodes: during a ReScan call we mustTom Lane
recompute the limit/offset immediately, so that the updated values are available when the child's ReScan function is invoked. Add a regression test for this, too. Bug is new in HEAD (due to the bounded-sorting patch) so no need for back-patch. I did not do anything about merging this signaling with chgParam processing, but if we were to do that we'd still need to compute the updated values at this point rather than during the first ProcNode call. Per observation and test case from Greg Stark, though I didn't use his patch.
2007-05-17Add database page inspection /contrib module.Bruce Momjian
Simon and Heikki
2007-05-17Move the tuple freezing point in CLUSTER to a point further back in the past,Alvaro Herrera
to avoid losing useful Xid information in not-so-old tuples. This makes CLUSTER behave the same as VACUUM as far a tuple-freezing behavior goes (though CLUSTER does not yet advance the table's relfrozenxid). While at it, move the actual freezing operation in rewriteheap.c to a more appropriate place, and document it thoroughly. This part of the patch from Tom Lane.
2007-05-16Have TRUNCATE advance the affected table's relfrozenxid to RecentXmin, toAlvaro Herrera
avoid a later needless VACUUM for Xid-wraparound purposes. We can do this since the table is known to be left empty, so no Xid remains on it. Per discussion.
2007-05-16Have the rewriteheap code freeze old tuples. This is safe because it is onlyAlvaro Herrera
applied to live tuples older than a recent Xmin, not to tuples that may be part of an update chain. Those still keep their original markings. This patch makes it possible for CLUSTER to advance relfrozenxid, thus avoiding the need of vacuuming the table for Xid wraparound purposes. That will be patched separately. Patch from Heikki Linnakangas.
2007-05-15Avoid emitting empty role names in the GRANTED BY clause of GRANT ROLEAlvaro Herrera
when the grantor has been dropped. This is a workaround for the fact that we don't track the grantor as a shared dependency.
2007-05-15Remove directory qualification in <ossp/uuid.h> because it's not always ↵Andrew Dunstan
installed in ossp. Workaround for when it is: include the ossp directory using --with-includes.
2007-05-15Fix a bunch of bad grammar in the docs: "<link>, which see for moreNeil Conway
information" is un-good English.
2007-05-15Various fixes for the SGML docs. Consistently use spaces before/afterNeil Conway
parentheses in syntax descriptions. Consistently use the present tense when describing the basic purpose of each "DROP" command. Add a few more hyperlinks.
2007-05-15Update comments for PG_DETOAST_PACKED and VARDATA_ANY on a structuresBruce Momjian
that require alignment. Add a paragraph to the "User-Defined Types" chapter on using these macros since it seems like they're a hit. Gregory Stark
2007-05-15Make a few marginal improvements to the documentation for the AVNeil Conway
launcher daemon.
2007-05-15Add a note to the documentation to clarify that even whenNeil Conway
"autovacuum = off", the system may still periodically start autovacuum processes to prevent XID wraparound. Patch from David Fetter, with editorializing.
2007-05-15Add URLs for:Bruce Momjian
* Add support for SQL-standard GENERATED/IDENTITY columns > http://archives.postgresql.org/pgsql-hackers/2007-05/msg00344.php > http://archives.postgresql.org/pgsql-patches/2007-05/msg00076.php
2007-05-15fix perl thinkoAndrew Dunstan
2007-05-15Use configured pgport in MSVC config file.Andrew Dunstan
2007-05-14Get rid of the pg_shdepend entry for a TOAST table; it's unnecessary sinceTom Lane
there's an indirect dependency on the owner via the parent table. We were already handling indexes that way, but not toast tables for some reason. Saves a little catalog space and cuts down the verbosity of checkSharedDependencies reports.
2007-05-14Fix up grammar and translatability of recent checkSharedDependenciesTom Lane
patch; also make the code logic a bit more self-consistent.
2007-05-14Prevent RevalidateCachedPlan from making any permanent change inTom Lane
ActiveSnapshot. Having it affect ActiveSnapshot only in the unusual case of needing to replan seems a bad idea, and there's also the problem that the created snap might be in a relatively short-lived context, as noted by Jan Wieck. Also, there's no need to force a new snap at all unless we are called with no snap currently set, which is an unusual case in itself.
2007-05-14Report all dependent objects to the server log when a shared object is dropped,Alvaro Herrera
and only a truncated log of the objects in the current database to the client. Also, instead of reporting object counts for all databases on which the user might own objects, report only as many as fit in the predefined line count. This is to avoid flooding the client when the user owns too many objects, which could cause problems. Per report from Ed L. on April 4th and subsequent discussion.
2007-05-14Update instructions on creating TODO entry.Bruce Momjian
2007-05-13Log directory we're installing into.Magnus Hagander
Per request from Andrew Dunstan.
2007-05-13Mark as done, add URL for other item:Bruce Momjian
< o Add support for arrays of complex types > > http://archives.postgresql.org/pgsql-patches/2007-05/msg00114.php > > o -Add support for arrays of complex types
2007-05-12Add:Bruce Momjian
> * Have configure choose integer datetimes by default > > http://archives.postgresql.org/pgsql-patches/2007-05/msg00046.php
2007-05-12Add:Bruce Momjian
> o Allow data to be passed in native language formats, rather > than only text > http://archives.postgresql.org/pgsql-hackers/2007-05/msg00289.php
2007-05-12Improve predicate_refuted_by_simple_clause() to handle IS NULL and IS NOT NULLTom Lane
more completely. The motivation for having it understand IS NULL at all was to allow use of "foo IS NULL" as one of the subsets of a partitioning on "foo", but as reported by Aleksander Kmetec, it wasn't really getting the job done. Backpatch to 8.2 since this is arguably a performance bug.
2007-05-12Fix the problem that creating a user-defined type named _foo, followed by oneTom Lane
named foo, would work but the other ordering would not. If a user-specified type or table name collides with an existing auto-generated array name, just rename the array type out of the way by prepending more underscores. This should not create any backward-compatibility issues, since the cases in which this will happen would have failed outright in prior releases. Also fix an oversight in the arrays-of-composites patch: ALTER TABLE RENAME renamed the table's rowtype but not its array type.
2007-05-11Fix my oversight in enabling domains-of-domains: ALTER DOMAIN ADD CONSTRAINTTom Lane
needs to check the new constraint against columns of derived domains too. Also, make it error out if the domain to be modified is used within any composite-type columns. Eventually we should support that case, but it seems a bit painful, and not suitable for a back-patch. For the moment just let the user know we can't do it. Backpatch to 8.2, which is the only released version that allows nested domains. Possibly the other part should be back-patched further.
2007-05-11Improvements to the SGML docs for TRUNCATE and CLUSTER.Neil Conway
2007-05-11Support arrays of composite types, including the rowtypes of regular tablesTom Lane
and views (but not system catalogs, nor sequences or toast tables). Get rid of the hardwired convention that a type's array type is named exactly "_type", instead using a new column pg_type.typarray to provide the linkage. (It still will be named "_type", though, except in odd corner cases such as maximum-length type names.) Along the way, make tracking of owner and schema dependencies for types more uniform: a type directly created by the user has these dependencies, while a table rowtype or auto-generated array type does not have them, but depends on its parent object instead. David Fetter, Andrew Dunstan, Tom Lane
2007-05-10Added some more error logging.Michael Meskes
2007-05-10- Synced parser and keyword listMichael Meskes
- Renamed update test so it hopefully runs on Vista
2007-05-08Reserve some pg_statistic "kind" codes for use by the ESRI ST_GeometryTom Lane
datatype project. Per request from Ale Raza (araza at esri.com).
2007-05-08Add a hash function for "numeric". Mark the equality operator forNeil Conway
numerics as "oprcanhash", and make the corresponding system catalog updates. As a result, hash indexes, hashed aggregation, and hash joins can now be used with the numeric type. Bump the catversion. The only tricky aspect to doing this is writing a correct hash function: it's possible for two Numerics to be equal according to their equality operator, but have different in-memory bit patterns. To cope with this, the hash function doesn't consider the Numeric's "scale" or "sign", and explictly skips any leading or trailing zeros in the Numeric's digit buffer (the current implementation should suppress any such zeros, but it seems unwise to rely upon this). See discussion on pgsql-patches for more details.
2007-05-08Add an explicit comment about POSIX time zone names having the reverseTom Lane
sign convention from everyplace else in Postgres. I don't suppose that this will stop people from being confused, but at least we can say that it's documented.
2007-05-08The appended patch addresses the outstanding issues of the recent guc patch.Peter Eisentraut
It makes PGCLIENTENCODING work again and uses bsearch() instead of iterating over the array of guc variables in guc_get_index(). Joachim Wieland
2007-05-07Make sure we don't skip databases that are supposed to be vacuumed "exactlyAlvaro Herrera
now". This can happen if the time granularity is not very high. Per ITAGAKI Takahiro.
2007-05-07Grammar correctionPeter Eisentraut
2007-05-07Doc tweak: add an xref.Neil Conway
2007-05-05Check return code from strxfrm on Windows since it has aMagnus Hagander
non-standard way of indicating errors, so we don't try to allocate INT_MAX bytes to store a result in.
2007-05-05Done:Bruce Momjian
< Last updated: Sat May 5 10:47:39 EDT 2007 > Last updated: Sat May 5 11:39:57 EDT 2007 < * Flush cached query plans when the dependent objects change, < when the cardinality of parameters changes dramatically, or > * -Flush cached query plans when the dependent objects change or < < A more complex solution would be to save multiple plans for different < cardinality and use the appropriate plan based on the EXECUTE values. < < * Track dependencies in function bodies and recompile/invalidate < < This is particularly important for references to temporary tables < in PL/PgSQL because PL/PgSQL caches query plans. The only workaround < in PL/PgSQL is to use EXECUTE. One complexity is that a function < might itself drop and recreate dependent tables, causing it to < invalidate its own query plan. < < * Invalidate prepared queries, like INSERT, when the table definition > * -Track dependencies in function bodies and recompile/invalidate > * -Invalidate prepared queries, like INSERT, when the table definition
2007-05-05Move item:Bruce Momjian
< * Invalidate prepared queries, like INSERT, when the table definition < is altered > > * Invalidate prepared queries, like INSERT, when the table definition > is altered
2007-05-05Done:Bruce Momjian
> o -Allow multiple vacuums so large tables do not starve small
2007-05-05Wording update to FAQ_DEV..Bruce Momjian
2007-05-05Add note to FAQ_DEV that regression tests might need to be added.Bruce Momjian
2007-05-05In developer's FAQ, update list API, from Tom Lane.Bruce Momjian
2007-05-05Add FAQ item about how patches are reviewed.Bruce Momjian