summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-30Properly document that SIGTERM is OK for users to use on a postgresBruce Momjian
session, now that pg_terminate_backend() uses it. Josh Kupershmidt
2012-08-30Revert 1fbc30f1dca6624c01a9a6a9ff711a7036c68532 because theBruce Momjian
--enable-shared is about Plyton's configure, not ours.
2012-08-30Remove doc mention of --enable-shared, per Tom.Bruce Momjian
2012-08-30Document that max_locks_per_transaction might need to be increased forBruce Momjian
queries on parent tables, per suggestion from Josh Berkus.
2012-08-30Split tuple struct defs from htup.h to htup_details.hAlvaro Herrera
This reduces unnecessary exposure of other headers through htup.h, which is very widely included by many files. I have chosen to move the function prototypes to the new file as well, because that means htup.h no longer needs to include tupdesc.h. In itself this doesn't have much effect in indirect inclusion of tupdesc.h throughout the tree, because it's also required by execnodes.h; but it's something to explore in the future, and it seemed best to do the htup.h change now while I'm busy with it.
2012-08-30Remove configure flag --disable-shared, as it is no longer used by anyBruce Momjian
port. The last use was QNX, per Peter Eisentraut.
2012-08-30Fix checkpoint_timeout documentation to reflect current behavior.Robert Haas
Jeff Janes
2012-08-30Document that log_autovacuum_min_duration can be used to monitorBruce Momjian
autovacuum activity. Per report from Marc Mamin
2012-08-30Suppress creation of backwardly-indexed paths for LATERAL join clauses.Tom Lane
Given a query such as SELECT * FROM foo JOIN LATERAL (SELECT foo.var1) ss(x) ON ss.x = foo.var2 the existence of the join clause "ss.x = foo.var2" encourages indxpath.c to build a parameterized path for foo using any index available for foo.var2. This is completely useless activity, though, since foo has got to be on the outside not the inside of any nestloop join with ss. It's reasonably inexpensive to add tests that prevent creation of such paths, so let's do that.
2012-08-30Document how to prevent PostgreSQL itself from exhausting memory.Robert Haas
The existing documentation in Linux Memory Overcommit seemed to assume that PostgreSQL itself could never be the problem, or at least it didn't tell you what to do about it. Per discussion with Craig Ringer and Kevin Grittner.
2012-08-30Fix division by zero in the new range type histogram creation.Heikki Linnakangas
Report and analysis by Matthias.
2012-08-30Add missing period to detail message.Robert Haas
Per note from Peter Eisentraut.
2012-08-30Document that COPY OUT requires an absolute pathname.Robert Haas
As suggested by Etsuro Fujita, but with somewhat different wording.
2012-08-30Remove old documentation warnings about the use of bigint.Bruce Momjian
2012-08-30Fix logic bug in gistchoose and gistRelocateBuildBuffersOnSplit.Robert Haas
Every time the best-tuple-found-so-far changes, we need to reset all the penalty values in which_grow[] to the penalties for the new best tuple. The old code failed to do this, resulting in inferior index quality. The original patch from Alexander Korotkov was just two lines; I took the liberty of fleshing that out by adding a bunch of comments that I hope will make this logic easier for others to understand than it was for me.
2012-08-30Improve EXPLAIN's ability to cope with LATERAL references in plans.Tom Lane
push_child_plan/pop_child_plan didn't bother to adjust the "ancestors" list of parent plan nodes when descending to a child plan node. I think this was okay when it was written, but it's not okay in the presence of LATERAL references, since a subplan node could easily be returning a LATERAL value back up to the same nestloop node that provides the value. Per changed regression test results, the omission led to failure to interpret Param nodes that have perfectly good interpretations.
2012-08-30Comment fixes.Robert Haas
Jeff Davis, somewhat edited by me
2012-08-30Document that xslt-related RPMs may be needed to build docs.Robert Haas
2012-08-29Also check for Python platform-specific include directoryPeter Eisentraut
Python can be built to have two separate include directories: one for platform-independent files and one for platform-specific files. So far, this has apparently never mattered for a PL/Python build. But with the new multi-arch Python packages in Debian and Ubuntu, this is becoming the standard configuration on these platforms, so we must check these directories separately to be able to build there. Also add a bit of reporting in configure to be able to see better what is going on with this.
2012-08-29Adjust definition of cheapest_total_path to work better with LATERAL.Tom Lane
In the initial cut at LATERAL, I kept the rule that cheapest_total_path was always unparameterized, which meant it had to be NULL if the relation has no unparameterized paths. It turns out to work much more nicely if we always have *some* path nominated as cheapest-total for each relation. In particular, let's still say it's the cheapest unparameterized path if there is one; if not, take the cheapest-total-cost path among those of the minimum available parameterization. (The first rule is actually a special case of the second.) This allows reversion of some temporary lobotomizations I'd put in place. In particular, the planner can now consider hash and merge joins for joins below a parameter-supplying nestloop, even if there aren't any unparameterized paths available. This should bring planning of LATERAL-containing queries to the same level as queries not using that feature. Along the way, simplify management of parameterized paths in add_path() and friends. In the original coding for parameterized paths in 9.2, I tried to minimize the logic changes in add_path(), so it just treated parameterization as yet another dimension of comparison for paths. We later made it ignore pathkeys (sort ordering) of parameterized paths, on the grounds that ordering isn't a useful property for the path on the inside of a nestloop, so we might as well get rid of useless parameterized paths as quickly as possible. But we didn't take that reasoning as far as we should have. Startup cost isn't a useful property inside a nestloop either, so add_path() ought to discount startup cost of parameterized paths as well. Having done that, the secondary sorting I'd implemented (in add_parameterized_path) is no longer needed --- any parameterized path that survives add_path() at all is worth considering at higher levels. So this should be a bit faster as well as simpler.
2012-08-29Document that NOTIFY events are visible to all users.Bruce Momjian
2012-08-29Report postmaster.pid file as empty if it is empty, rather thanBruce Momjian
reporting in contains invalid data.
2012-08-29Optimize SP-GiST insertions.Heikki Linnakangas
This includes two micro-optimizations to the tight inner loop in descending the SP-GiST tree: 1. avoid an extra function call to index_getprocinfo when calling user-defined choose function, and 2. avoid a useless palloc+pfree when node labels are not used.
2012-08-28Fix assorted compilation failures in contribAlvaro Herrera
Evidently I failed to test a compile after my earlier header shuffling.
2012-08-28Add strerror() string to chdir() error messagePeter Eisentraut
2012-08-28Split heapam_xlog.h from heapam.hAlvaro Herrera
The heapam XLog functions are used by other modules, not all of which are interested in the rest of the heapam API. With this, we let them get just the XLog stuff in which they are interested and not pollute them with unrelated includes. Also, since heapam.h no longer requires xlog.h, many files that do include heapam.h no longer get xlog.h automatically, including a few headers. This is useful because heapam.h is getting pulled in by execnodes.h, which is in turn included by a lot of files.
2012-08-28remove catcache.h from syscache.hAlvaro Herrera
Instead, place a forward struct declaration for struct catclist in syscache.h. This reduces header proliferation somewhat.
2012-08-28Split resowner.hAlvaro Herrera
This lets files that are mere users of ResourceOwner not automatically include the headers for stuff that is managed by the resowner mechanism.
2012-08-28add #includes to plpy_subxactobject.h to make it compile standaloneAlvaro Herrera
2012-08-28Remove pg_stat_statements--1.0.sql, too.Tom Lane
Per Peter Geoghegan.
2012-08-28Remove hstore--1.0.sql.Tom Lane
Since we're not installing this file anymore, it has no reason to exist, other than as historical reference; but we have an SCM for that.
2012-08-28Adjust pg_test_timing to show shortest test durations first, placeBruce Momjian
percentage column before count column. Docs updated.
2012-08-28Prevent psql tab completion in SET from adding TO when the equals signBruce Momjian
has no space before it. Report by Erik Rijkers
2012-08-28Update doc mention of how to compute bigint advisory lock value, per TomBruce Momjian
Lane's correction.
2012-08-28syncrep.h must include xlogdefs.hAlvaro Herrera
2012-08-28Small punctuation fixesPeter Eisentraut
2012-08-27Document how to create advisory lock "bigint" values in SQL.Bruce Momjian
David E. Wheeler
2012-08-27Improve a couple of 9.2 release note entries.Tom Lane
Clarify the compatibility notes about EXTRACT() and about statistics timing columns.
2012-08-27Add section IDs to subsections of syntax.sgml that lacked them.Tom Lane
This is so that these sections will have stable HTML tags that one can link to, rather than things like "AEN1902". Perhaps we should mount a campaign to do this everywhere, but I've found myself pointing at syntax.sgml subsections often enough to be sure it's useful here.
2012-08-27Document the lack of reading the PGDATABASE environment variable inBruce Momjian
pg_restore.
2012-08-27pg_upgrade: Fix exec_prog API to be less flakyAlvaro Herrera
The previous signature made it very easy to pass something other than the printf-format specifier in the corresponding position, without any warning from the compiler. While at it, move some of the escaping, redirecting and quoting responsibilities from the callers into exec_prog() itself. This makes the callsites cleaner.
2012-08-27Fix thinko in commentAlvaro Herrera
It was confusing symlinks with hard links.
2012-08-27Remove analyze_new_cluster.sh on make clean, tooAlvaro Herrera
2012-08-27Fix DROP INDEX CONCURRENTLY IF EXISTS.Tom Lane
This threw ERROR, not the expected NOTICE, if the index didn't exist. The bug was actually visible in not-as-expected regression test output, so somebody wasn't paying too close attention in commit 8cb53654dbdb4c386369eb988062d0bbb6de725e. Per report from Brendan Byrd.
2012-08-27Have pgindent requre pg_bsd_indent version 1.2 now that a new versionBruce Momjian
has been created by adding #include <stdlib.h> to parse.c. per request from Kevin Grittner.
2012-08-27Collect and use histograms of lower and upper bounds for range types.Heikki Linnakangas
This enables selectivity estimation of the <<, >>, &<, &> and && operators, as well as the normal inequality operators: <, <=, >=, >. "range @> element" is also supported, but the range-variant @> and <@ operators are not, because they cannot be sensibly estimated with lower and upper bound histograms alone. We would need to make some assumption about the lengths of the ranges for that. Alexander's patch included a separate histogram of lengths for that, but I left that out of the patch for simplicity. Hopefully that will be added as a followup patch. The fraction of empty ranges is also calculated and used in estimation. Alexander Korotkov, heavily modified by me.
2012-08-27pg_basebackup: Correct error messagePeter Eisentraut
It still thought that the --xlog-method option argument could be empty, as in a previous version of this feature.
2012-08-26Update FreeBSD kernel configuration documentation.Bruce Momjian
Brad Davis
2012-08-26Fix up planner infrastructure to support LATERAL properly.Tom Lane
This patch takes care of a number of problems having to do with failure to choose valid join orders and incorrect handling of lateral references pulled up from subqueries. Notable changes: * Add a LateralJoinInfo data structure similar to SpecialJoinInfo, to represent join ordering constraints created by lateral references. (I first considered extending the SpecialJoinInfo structure, but the semantics are different enough that a separate data structure seems better.) Extend join_is_legal() and related functions to prevent trying to form unworkable joins, and to ensure that we will consider joins that satisfy lateral references even if the joins would be clauseless. * Fill in the infrastructure needed for the last few types of relation scan paths to support parameterization. We'd have wanted this eventually anyway, but it is necessary now because a relation that gets pulled up out of a UNION ALL subquery may acquire a reltargetlist containing lateral references, meaning that its paths *have* to be parameterized whether or not we have any code that can push join quals down into the scan. * Compute data about lateral references early in query_planner(), and save in RelOptInfo nodes, to avoid repetitive calculations later. * Assorted corner-case bug fixes. There's probably still some bugs left, but this is a lot closer to being real than it was before.
2012-08-26Clarify documentation that primary key and unique constraints are copiedBruce Momjian
for CREATE TABLE LIKE ... INCLUDING INDEXES. Per report from david.sahagian@emc.com