Filter:

Commits in 2009

Commits603 commits of which 135 backported
0Author
603Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterSuppress compiler warning, per buildfarm member narwhal
2aff8c42
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 31, 2009
CommitterSuppress compiler warning (pid_t isn't int everywhere)
bd8a3565
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 31, 2009
CommitterAdd missing 'static' tag.
b4594a66
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 31, 2009
CommitterRedefine Datum as uintptr_t, instead of unsigned long.
85d02a65
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 31, 2009
CommitterDept of second thoughts: recursive case in ANALYZE shouldn't emit a pgstats message. This might need to be done differently later, but with the current logic that's what should happen.
e6df063c
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 30, 2009
CommitterRevise pgstat's tracking of tuple changes to improve the reliability of decisions about when to auto-analyze.
48c192c1
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 30, 2009
CommitterBackportedSet errno to zero before invoking SSL_read or SSL_write. It appears that at least in some Windows versions, these functions are capable of returning a failure indication without setting errno. That puts us into an infinite loop if the previous value happened to be EINTR. Per report from Brendan Hill.
4847d595
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+15 more
No linked threadDec 30, 2009
CommitterAdd an index on pg_inherits.inhparent, and use it to avoid seqscans in find_inheritance_children(). This is a complete no-op in databases without any inheritance. In databases where there are just a few entries in pg_inherits, it could conceivably be a small loss. However, in databases with many inheritance parents, it can be a big win.
540e69a0
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 29, 2009
CommitterAdd the ability to store inheritance-tree statistics in pg_statistic, and teach ANALYZE to compute such stats for tables that have subclasses. Per my proposal of yesterday.
649b5ec7
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 29, 2009
CommitterAvoid memory leak if pgstat_vacuum_stat is interrupted partway through. The temporary hash tables made by pgstat_collect_oids should be allocated in a short-term memory context, which is not the default behavior of hash_create. Noted while looking through hash_create calls in connection with Robert Haas' recent complaint.
0b392314
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 27, 2009
CommitterRemove a couple of unnecessary calls of CreateCacheMemoryContext. These probably got there via blind copy-and-paste from one of the legitimate callers, so rearrange and comment that code a bit to make it clearer that this isn't a necessary prerequisite to hash_create. Per observation from Robert Haas.
d4d1885e
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 27, 2009
CommitterFix brain fade in join-removal patch: a pushed-down clause in the outer join's restrict list is not just something to ignore, it's actually grounds to abandon the optimization entirely. Per bug #5255 from Matteo Beccati.
f9845aca
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 25, 2009
CommitterTry to improve the clarity of the psql documentation for the \d family of commands, as per recent discussion. Includes suggestions from Adrian Klaver and Filip Rembialkowski.
5b7d2a94
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 24, 2009
CommitterBackportedFix wrong WAL info value generated when gistContinueInsert() performs an index page split. This would result in index corruption, or even more likely an error during WAL replay, if we were unlucky enough to crash during end-of-recovery cleanup after having completed an incomplete GIST insertion.
668e37d1
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+15 more
No linked threadDec 24, 2009
CommitterAllow the index name to be omitted in CREATE INDEX, causing the system to choose an index name the same as it would do for an unnamed index constraint. (My recent changes to the index naming logic have helped to ensure that this will be a reasonable choice.) Per a suggestion from Peter.
d68e08d1
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 23, 2009
CommitterRemove code that attempted to rename index columns to keep them in sync with their underlying table columns. That code was not bright enough to cope with collision situations (ie, new name conflicts with some other column of the index). Since there is no functional reason to do this at all, trying to upgrade the logic to be bulletproof doesn't seem worth the trouble.
c176e122
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 23, 2009
CommitterAdjust naming of indexes and their columns per recent discussion.
cfc5008a
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 23, 2009
CommitterDisallow comments on columns of relation types other than tables, views, and composite types, which are the only relkinds for which pg_dump support exists for dumping column comments. There is no obvious usefulness for comments on columns of sequences or toast tables; and while comments on index columns might have some value, it's not worth the risk of compatibility problems due to possible changes in the algorithm for assigning names to index columns. Per discussion.
b7d67954
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 22, 2009
CommitterThere is no good reason for the CREATE TABLE LIKE INCLUDING COMMENTS code to have hard-wired knowledge of the rules for naming index columns. It can just look at the actual names in the source index, instead. Do some minor formatting cleanup too.
cb05f538
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadDec 20, 2009
CommitterSigh, I managed to break the no-links-in-plain-text-docs rule too...
0e9c1b1c
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 19, 2009
CommitterBump catversion to reflect the fact that HS patch changed pg_proc contents, and PG_CONTROL_VERSION to reflect the fact that it changed pg_control contents. (I see we did at least remember to change XLOG_PAGE_MAGIC for the WAL contents changes.)
4fca795d
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 19, 2009
Committerplpgsql patch broke the MSVC build, too.
d37cda2c
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 19, 2009
CommitterJoin in the fun of editorializing on the alpha release notes.
d2903637
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 19, 2009
CommitterAdjust some more places in the documentation to match the fact that plpgsql is now installed by default.
c43d26c1
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 19, 2009
CommitterFix link that doesn't work in standalone INSTALL document.
b35b16e6
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 18, 2009
CommitterForce the TZ environment variable to be set during initdb. This is to short-circuit the rather expensive identify_system_timezone() procedure, which we have no real need for during initdb since nothing done here depends on the timezone setting. Since we launch quite a few standalone backends during the initdb sequence, this adds up to a significant savings, and seems worth doing to save developer time even though it will hardly matter to end users. Per my report today on pgsql-hackers.
be3a24de
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 18, 2009
CommitterBackportedAvoid a premature coercion failure in transformSetOperationTree() when presented with an UNKNOWN-type Var, which can happen in cases where an unknown literal appeared in a subquery. While many such cases will fail later on anyway in the planner, there are some cases where the planner is able to flatten the query and replace the Var by the constant before it has to coerce the union column to the final type. I had added this check in 8.4 to provide earlier/better error detection, but it causes a regression for some cases that worked OK before. Fix by not making the check if the input node is UNKNOWN type and not a Const or Param. If it isn't going to work, it will fail anyway at plan time, with the only real loss being inability to provide an error cursor. Per gripe from Britt Piehler.
52fc0075
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadDec 16, 2009
CommitterAvoid unnecessary copying of source string when generating a cloned TParser. For long source strings the copying results in O(N^2) behavior, and the multiplier can be significant if wide-char conversion is involved.
21d11e7e
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 15, 2009
CommitterAdd a hook to let loadable modules get control at ProcessUtility execution, and use it to extend contrib/pg_stat_statements to track utility commands.
a5495cd8
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 15, 2009
CommitterSupport ORDER BY within aggregate function calls, at long last providing a non-kluge method for controlling the order in which values are fed to an aggregate function. At the same time eliminate the old implementation restriction that DISTINCT was only supported for single-argument aggregates.
34d26872
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 15, 2009
CommitterFix broken markup.
6a6efb96
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 15, 2009
CommitterBackportedFix a bug introduced when set-returning SQL functions were made inline-able: we have to cope with the possibility that the declared result rowtype contains dropped columns. This fails in 8.4, as per bug #5240.
a620d500
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadDec 14, 2009
CommitterBackportedFix integer-to-bit-string conversions to handle the first fractional byte correctly when the output bit width is wider than the given integer by something other than a multiple of 8 bits.
a4e035b2
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+18 more
No linked threadDec 12, 2009
CommitterArrange to generate different random sequences in the different child processes of a pgbench run, when we are using -j > 1 and are emulating threads via fork(). Otherwise the children all inherit the same random sequence state and produce the same random-number sequence.
6b45e3b7
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 11, 2009
CommitterEnsure that the result tuple of an EvalPlanQual cycle gets materialized before we zap the input tuple. Otherwise, pass-by-reference columns of the result slot are likely to contain just references to the input tuple, leading to big trouble if the pfree'd space is reused. Per trouble report from Jaime Casanova. This is a new bug in the recent rewrite of EvalPlanQual, so nothing to back-patch.
d8e511fa
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 11, 2009
CommitterBackportedUpdate release notes for releases 8.4.2, 8.3.9, 8.2.15, 8.1.19, 8.0.23, 7.4.27.
03d7b064
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+19 more
No linked threadDec 10, 2009
CommitterBackportedPrevent indirect security attacks via changing session-local state within an allegedly immutable index function. It was previously recognized that we had to prevent such a function from executing SET/RESET ROLE/SESSION AUTHORIZATION, or it could trivially obtain the privileges of the session user. However, since there is in general no privilege checking for changes of session-local state, it is also possible for such a function to change settings in a way that might subvert later operations in the same session. Examples include changing search_path to cause an unexpected function to be called, or replacing an existing prepared statement with another one that will execute a function of the attacker's choosing.
62aba765
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+19 more
No linked threadDec 09, 2009
CommitterBackportedUpdate time zone data files to tzdata release 2009s: DST law changes in Antarctica, Argentina, Bangladesh, Fiji, Novokuznetsk, Pakistan, Palestine, Samoa, Syria. Also historical corrections for Hong Kong.
65ed2039
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+18 more
No linked threadDec 09, 2009
CommitterAdd exclusion constraints, which generalize the concept of uniqueness to support any indexable commutative operator, not just equality. Two rows violate the exclusion constraint if "row1.col OP row2.col" is TRUE for each of the columns in the constraint.
0cb65564
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 07, 2009
CommitterDon't use a duplicate OID for aclexplode().
8de7472b
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 06, 2009
CommitterClarify what's supposed to happen when a cursor FETCH is rolled back by aborting a subtransaction. Per discussion with Heikki.
dc588058
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 02, 2009
CommitterBackportedIgnore attempts to set "application_name" in the connection startup packet. This avoids a useless connection retry and complaint in the postmaster log when receiving a connection from 8.5 or later libpq.
e461436f
REL8_4_STABLE8.4.2REL8_3_STABLE8.3.9REL8_2_STABLE8.2.15REL8_1_STABLE8.1.19REL8_0_STABLE8.0.23REL7_4_STABLE7.4.27
No linked threadDec 02, 2009
CommitterMark application_name as GUC_REPORT so that the value will be reported back to the client by the server. This might seem pretty pointless but apparently it will help pgbouncer, and perhaps other connection poolers. Anyway it's practically free to do so for the normal use-case where appname is only set in the startup packet --- we're just adding a few more bytes to the initial ParameterStatus response packet. Per comments from Marko Kreen.
59ed94ad
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 02, 2009
CommitterInstead of sending application_name as a SET command after the connection is made, include it in the startup-packet options. This makes it work more like every other libpq connection option, in particular it now has the same response to RESET ALL as the rest. This also saves one network round trip for new applications using application_name. The cost is that if the server is pre-8.5, it'll reject the startup packet altogether, forcing us to retry the entire connection cycle. But on balance we shouldn't be optimizing that case in preference to the behavior with a new server, especially when doing so creates visible behavioral oddities. Per discussion.
3dfcf8cc
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 02, 2009
CommitterTeach the regular expression functions to do case-insensitive matching and locale-dependent character classification properly when the database encoding is UTF8.
0d323425
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadDec 01, 2009
CommitterBackportedAvoid core dump on empty thesaurus dictionary. Per report from Robert Gravsjö.
90885420
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+15 more
No linked threadNov 30, 2009
CommitterBackportedFix session-lifespan memory leak when a plperl function is redefined: we have to tell Perl it can release its compiled copy of the function text. Noted by Alexey Klyukin.
67ec9ada
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+16 more
No linked threadNov 29, 2009
CommitterAdd some opr_sanity checks that the lengths of the various argument-info arrays in a pg_proc entry match. Seems like an easy mistake to make when manually adjusting these values in a pg_proc.h entry.
c19781ac
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 29, 2009
CommitterMake pg_stat_activity.application_name visible to all users, rather than being hidden when current_query is. Relocate it to a column position more consistent with that behavior. Per discussion.
0c61cff5
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 29, 2009
CommitterAdd support for anonymous code blocks (DO blocks) to PL/Perl.
42b2907d
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 29, 2009
CommitterAdd support for an application_name parameter, which is displayed in pg_stat_activity and recorded in log entries.
8217cfbd
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 28, 2009
CommitterEliminate a lot of list-management overhead within join_search_one_level by adding a requirement that build_join_rel add new join RelOptInfos to the appropriate list immediately at creation. Per report from Robert Haas, the list_concat_unique_ptr() calls that this change eliminates were taking the lion's share of the runtime in larger join problems. This doesn't do anything to fix the fundamental combinatorial explosion in large join problems, but it should push out the threshold of pain a bit further.
1a95f127
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 28, 2009
CommitterFix missing end tag, per Jeff Davis.
f0edaecd
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 26, 2009
CommitterSimplify psql's new linestyle behavior to default to linestyle=ascii all the time, rather than hoping we can tell whether the terminal supports UTF8 characters. Per discussion.
da29cc80
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 25, 2009
CommitterUse diff's -w switch only on Windows, to avoid problems with inconsistent newline representations. Per buildfarm results and subsequent discussion. Sync up a couple of other places that had their own policies.
8d97c1dc
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 23, 2009
CommitterAssorted wordsmithing on the documentation of \pset --- try to make it a bit more consistent and less obviously written by different people at different times.
c194ff20
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 22, 2009
CommitterAdjust expected-results spacing per buildfarm results.
1fe41927
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 22, 2009
CommitterRemove -w (--ignore-all-space) option from pg_regress's diff calls.
ce3153fa
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 22, 2009
CommitterOoops, forgot to check the libxml cases for psql output wrapping change.
1c499591
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 22, 2009
CommitterImprove psql's tabular display of wrapped-around data by inserting markers in the formerly-always-blank columns just to left and right of the data. Different marking is used for a line break caused by a newline in the data than for a straight wraparound. A newline break is signaled by a "+" in the right margin column in ASCII mode, or a carriage return arrow in UNICODE mode. Wraparound is signaled by a dot in the right margin as well as the following left margin in ASCII mode, or an ellipsis symbol in the same places in UNICODE mode. "\pset linestyle old-ascii" is added to make the previous behavior available if anyone really wants it.
1753337c
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 22, 2009
CommitterBackportedRefactor ecpg grammar so that it uses the core grammar's unreserved_keyword list, minus a few specific words that have to be treated specially. This replaces a hard-wired list of keywords that would have needed manual maintenance, and was not getting it. The 8.4 coding was already missing these words, causing ecpg to incorrectly treat them as reserved words: CALLED, CATALOG, DEFINER, ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION, PRECEDING, RANGE, SECURITY, SERVER, UNBOUNDED, WRAPPER. In HEAD we were additionally missing COMMENTS, FUNCTIONS, SEQUENCES, TABLES. Per gripe from Bosco Rama.
e6c63bf6
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadNov 21, 2009
CommitterFix display and dumping of UPDATE OR TRUNCATE triggers (a bizarre combination maybe, but we should get it right). Bug noted while reviewing TRIGGER WHEN patch. Already fixed in HEAD.
00d144dd
REL8_4_STABLE8.4.2
No linked threadNov 20, 2009
CommitterAdd a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be checked to determine whether the trigger should be fired.
7fc0f062
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 20, 2009
CommitterBackportedFix memory leak in syslogger: logfile_rotate() would leak a copy of the output filename if CSV logging was enabled and only one of the two possible output files got rotated during a particular call (which would, in fact, typically be the case during a size-based rotation). This would amount to about MAXPGPATH (1KB) per rotation, and it's been there since the CSV code was put in, so it's surprising that nobody noticed it before. Per bug #5196 from Thomas Poindessous.
b1d55dca
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+15 more
No linked threadNov 19, 2009
CommitterAdd a hook to CREATE/ALTER ROLE to allow an external module to check the strength of database passwords, and create a sample implementation of such a hook as a new contrib module "passwordcheck".
c742b795
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 18, 2009
CommitterProvide a parenthesized-options syntax for VACUUM, analogous to that recently adopted for EXPLAIN. This will allow additional options to be implemented in future without having to make them fully-reserved keywords. The old syntax remains available for existing options, however.
5e66a51c
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 16, 2009
CommitterBackportedWhile doing the final setrefs.c pass over a plan tree, try to match up non-Var sort/group expressions using ressortgroupref labels instead of depending entirely on equal()-ity of the upper node's tlist expressions to the lower node's. This avoids emitting the wrong outputs in cases where there are textually identical volatile sort/group expressions, as for example select distinct random(),random() from generate_series(1,10); Per report from Andrew Gierth.
49ed392c
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadNov 16, 2009
CommitterImprove planning of Materialize nodes inserted atop the inner input of a mergejoin to shield it from doing mark/restore and refetches. Put an explicit flag in MergePath so we can centralize the logic that knows about this, and add costing logic that considers using Materialize even when it's not forced by the previously-existing considerations. This is in response to a discussion back in August that suggested that materializing an inner indexscan can be helpful when the refetch percentage is high enough.
caf9c830
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 15, 2009
CommitterMake unaccent's install/uninstall scripts look more like all the others. Set search_path explicitly, don't use IF EXISTS, etc.
29faadcd
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 14, 2009
CommitterClean up a couple of bizarre code formatting choices in recent CREATE LIKE patch.
ef679ff6
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 13, 2009
CommitterAvoid assuming that enum CreateStmtLikeOption is unsigned. Zdenek Kotala
82121aff
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 13, 2009
CommitterAdd control knobs for plpgsql's variable resolution behavior, and make the default be "throw error on conflict", as per discussions. The GUC variable is plpgsql.variable_conflict, with values "error", "use_variable", "use_column". The behavior can also be specified per-function by inserting one of #variable_conflict error #variable_conflict use_variable #variable_conflict use_column at the start of the function body.
63176099
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 13, 2009
CommitterThe recent patch to log changes in postgresql.conf settings dumped core if the initial value of a string variable was NULL, which is entirely possible. Noted while experimenting with custom_variable_classes.
0894c6b8
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 12, 2009
CommitterCheck for C/POSIX before assuming that nl_langinfo or win32_langinfo will work. Per buildfarm results.
8539a0e0
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 12, 2009
CommitterMake initdb behave sanely when the selected locale has codeset "US-ASCII". Per discussion, this should result in defaulting to SQL_ASCII encoding. The original coding could not support that because it conflated selection of SQL_ASCII encoding with not being able to determine the encoding. Adjust pg_get_encoding_from_locale()'s API to distinguish these cases, and fix callers appropriately. Only initdb actually changes behavior, since the other callers were perfectly content to consider these cases equivalent.
8f8a5df6
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 12, 2009
CommitterRemove pg_parse_string_token() --- not needed anymore.
19d80276
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 12, 2009
CommitterRemove plpgsql's separate lexer (finally!), in favor of using the core lexer directly. This was a lot of trouble, but should be worth it in terms of not having to keep the plpgsql lexer in step with core anymore. In addition the handling of keywords is significantly better-structured, allowing us to de-reserve a number of words that plpgsql formerly treated as reserved.
2dee828c
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 12, 2009
CommitterBackportedDo not build psql's flex module on its own, but instead include it in mainloop.c. This ensures that postgres_fe.h is read before including any system headers, which is necessary to avoid problems on some platforms where we make nondefault selections of feature macros for stdio.h or other headers. We have had this policy for flex modules in the backend for many years, but for some reason it was not applied to psql. Per trouble report from Alexandra Roy and diagnosis by Albe Laurenz.
90bfe999
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+18 more
No linked threadNov 10, 2009
CommitterRevert the temporary patch to work around Snow Leopard readdir() bug. Apple has fixed that bug in 10.6.2, and we should encourage users to update to that version rather than trusting this cosmetic patch. As was recently noted by Stephen Tyler, this patch was only masking the problem in the context of DROP TABLESPACE, but the failure could occur in other places such as pg_xlog cleanup.
21e3edd6
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 10, 2009
CommitterMore incremental refactoring in plpgsql: get rid of gram.y dependencies on yytext. This is a necessary change if we're going to have a lexer interface layer that does lookahead, since yytext won't necessarily be in step with what the grammar thinks is the current token. yylval and yylloc should be the only side-variables that we need to manage when doing lookahead.
73a2f6c6
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 10, 2009
CommitterRe-refactor the core scanner's API, in order to get out from under the problem of different parsers having different YYSTYPE unions that they want to use with it. I defined a new union core_YYSTYPE that is just the (very short) list of semantic values returned by the core scanner. I had originally worried that this would require an extra interface layer, but actually we can have parser.c's base_yylex (formerly filtered_base_yylex) take care of that at no extra cost. Names associated with the core scanner are now "core_yy_foo", with "base_yy_foo" being used in the core Bison parser and the parser.c interface layer.
10bcfa18
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 09, 2009
CommitterFix WHERE CURRENT OF to work as designed within plpgsql. The argument can be the name of a plpgsql cursor variable, which formerly was converted to $N before the core parser saw it, but that's no longer the case. Deal with plain name references to plpgsql variables, and add a regression test case that exposes the failure.
2ace38d2
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 09, 2009
CommitterModernize plpgsql's handling of parse locations, making it look a lot more like the core parser's code. In particular, track locations at the character rather than line level during parsing, allowing many more parse-time error conditions to be reported with precise error pointers rather than just "near line N".
39bd3fd1
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 09, 2009
CommitterRemove ancient text file containing plpgsql installation instructions. This was long ago superseded by the standard build process and main SGML documentation.
fb60af41
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 07, 2009
CommitterRearrange plpgsql parsing to simplify and speed it up a bit.
f2b7692e
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 07, 2009
CommitterChange plpgsql from using textual substitution to insert variable references into SQL expressions, to using the newly added parser callback hooks.
0772f1e5
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 06, 2009
CommitterDon't treat NEW and OLD as reserved words anymore. For the purposes of rules it works just as well to have them be ordinary identifiers, and this gets rid of a number of ugly special cases. Plus we aren't interfering with non-rule usage of these names.
593f4b85
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 05, 2009
CommitterRemove plpgsql's RENAME declaration, which has bizarre and mostly nonfunctional behavior, and is so little used that no one has been interested in fixing it. To ensure that possible uses are covered, remove the ALIAS declaration's arbitrary restriction that only $n identifiers can be aliased.
c29ae527
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 05, 2009
CommitterBackportedAllow binary-coercible cases in ri_HashCompareOp; there are some such cases that are not handled by find_coercion_pathway, notably composite->RECORD. Now that 8.4 supports composites as primary keys, it's worth dealing with this case.
8e792776
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadNov 05, 2009
CommitterRename some encoding conversion modules to keep pathnames in our source tarballs under 100 characters. This should avoid failures with certain untarring tools (WinZip and Midnight Commander have been mentioned as likely suspects). Per my proposal of yesterday. catversion bumped since the initial contents of pg_proc change.
6bef82b3
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 04, 2009
CommitterMake expression locations for LIKE and SIMILAR TO constructs uniformly point at the first keyword of the expression, rather than drawing a rather artificial distinction between the ESCAPE subclause and the rest. Per gripe from Gokulakannan Somasundaram and subsequent discusssion.
9ab6c303
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 04, 2009
CommitterAdd support for invoking parser callback hooks via SPI and in cached plans.
9bedd128
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadNov 04, 2009
CommitterBackportedDept of second thoughts: after studying index_getnext() a bit more I realize that it can scribble on scan->xs_ctup.t_self while following HOT chains, so we can't rely on that to stay valid between hashgettuple() calls. Introduce a private variable in HashScanOpaque, instead.
7d535ebe
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadNov 01, 2009
CommitterBackportedFix two serious bugs introduced into hash indexes by the 8.4 patch that made hash indexes keep entries sorted by hash value. First, the original plans for concurrency assumed that insertions would happen only at the end of a page, which is no longer true; this could cause scans to transiently fail to find index entries in the presence of concurrent insertions. We can compensate by teaching scans to re-find their position after re-acquiring read locks. Second, neither the bucket split nor the bucket compaction logic had been fixed to preserve hashvalue ordering, so application of either of those processes could lead to permanent corruption of an index, in the sense that searches might fail to find entries that are present.
c4afdca4
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadNov 01, 2009
CommitterBackportedEnsure the previous Perl interpreter selection is restored upon exit from plperl_call_handler, in both the normal and error-exit paths. Per report from Alexey Klyukin.
ef59fa04
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+16 more
No linked threadOct 31, 2009
CommitterImplement parser hooks for processing ColumnRef and ParamRef nodes, as per my recent proposal. As proof of concept, remove knowledge of Params from the core parser, arranging for them to be handled entirely by parser hook functions. It turns out we need an additional hook for that --- I had forgotten about the code that handles inferring a parameter's type from context.
fb5d0580
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 31, 2009
CommitterBackportedMake the overflow guards in ExecChooseHashTableSize be more protective. The original coding ensured nbuckets and nbatch didn't exceed INT_MAX, which while not insane on its own terms did nothing to protect subsequent code like "palloc(nbatch * sizeof(BufFile *))". Since enormous join size estimates might well be planner error rather than reality, it seems best to constrain the initial sizes to be not more than work_mem/sizeof(pointer), thus ensuring the allocated arrays don't exceed work_mem. We will allow nbatch to get bigger than that during subsequent ExecHashIncreaseNumBatches calls, but we should still guard against integer overflow in those palloc requests. Per bug #5145 from Bernt Marius Johnsen.
8442317b
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+19 more
No linked threadOct 30, 2009
CommitterUn-break EXPLAIN for Append plans. I messed this up a few days ago while adding the ModifyTable node type --- I had been thinking ModifyTable should replace Append as a special case in push_plan(), but actually both of them have to be special-cased.
77c666fe
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 28, 2009
CommitterBackportedFix \df to re-allow regexp special characters in the function name pattern. This has always worked, up until somebody's thinko here: http://archives.postgresql.org/pgsql-committers/2009-04/msg00233.php Per bug #5143 from Piotr Wolinski.
be6899f1
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadOct 28, 2009
CommitterFix AcquireRewriteLocks to be sure that it acquires the right lock strength when FOR UPDATE is propagated down into a sub-select expanded from a view. Similar bug to parser's isLockedRel issue that I fixed yesterday; likewise seems not quite worth the effort to back-patch.
cbcd1701
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 28, 2009
CommitterWhen FOR UPDATE/SHARE is used with LIMIT, put the LockRows plan node underneath the Limit node, not atop it. This fixes the old problem that such a query might unexpectedly return fewer rows than the LIMIT says, due to LockRows discarding updated rows.
46e3a16b
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 28, 2009
CommitterBackportedFix AfterTriggerSaveEvent to use a test and elog, not just Assert, to check that it's called within an AfterTriggerBeginQuery/AfterTriggerEndQuery pair. The RI cascade triggers suppress that overhead on the assumption that they are always run non-deferred, so it's possible to violate the condition if someone mistakenly changes pg_trigger to mark such a trigger deferred. We don't really care about supporting that, but throwing an error instead of crashing seems desirable. Per report from Marcelo Costa.
44956c52
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+18 more
No linked threadOct 27, 2009
CommitterBackportedMake FOR UPDATE/SHARE in the primary query not propagate into WITH queries; for example in WITH w AS (SELECT * FROM foo) SELECT * FROM w, bar ... FOR UPDATE the FOR UPDATE will now affect bar but not foo. This is more useful and consistent than the original 8.4 behavior, which tried to propagate FOR UPDATE into the WITH query but always failed due to assorted implementation restrictions. Even though we are in process of removing those restrictions, it seems correct on philosophical grounds to not let the outer query's FOR UPDATE affect the WITH query.
61e53282
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more
No linked threadOct 27, 2009
CommitterRe-implement EvalPlanQual processing to improve its performance and eliminate a lot of strange behaviors that occurred in join cases. We now identify the "current" row for every joined relation in UPDATE, DELETE, and SELECT FOR UPDATE/SHARE queries. If an EvalPlanQual recheck is necessary, we jam the appropriate row into each scan node in the rechecking plan, forcing it to emit only that one row. The former behavior could rescan the whole of each joined relation for each recheck, which was terrible for performance, and what's much worse could result in duplicated output tuples.
9f2ee8f2
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 26, 2009
CommitterRemove regex_flavor GUC, so that regular expressions are always "advanced" style by default. Per discussion, there seems to be hardly anything that really relies on being able to change the regex flavor, so the ability to select it via embedded options ought to be enough for any stragglers. Also, if we didn't remove the GUC, we'd really be morally obligated to mark the regex functions non-immutable, which'd possibly create performance issues.
ab61df9e
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 21, 2009
CommitterRemove add_missing_from GUC and associated parser support for "implicit RTEs". Per recent discussion, add_missing_from has been deprecated for long enough to consider removing, and it's getting in the way of planned parser refactoring. The system now always behaves as though add_missing_from were OFF.
289e2905
master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more
No linked threadOct 21, 2009
CommitterBackportedRewrite pam_passwd_conv_proc to be more robust: avoid assuming that the pam_message array contains exactly one PAM_PROMPT_ECHO_OFF message. Instead, deal with however many messages there are, and don't throw error for PAM_ERROR_MSG and PAM_TEXT_INFO messages. This logic is borrowed from openssh 5.2p1, which hopefully has seen more real-world PAM usage than we have. Per bug #5121 from Ryan Douglas, which turned out to be caused by the conv_proc being called with zero messages. Apparently that is normal behavior given the combination of Linux pam_krb5 with MS Active Directory as the domain controller.
76c09dbe
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more
No linked threadOct 16, 2009
CommitterFirst committed version of plpython_unicode_0.out did not actually contain the required \200 bytes. Let's see if this commit works, or if CVS is messing it up.
198483a2
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 15, 2009
CommitterSupport SQL-compliant triggers on columns, ie fire only if certain columns are named in the UPDATE's SET list.
b2734a0d
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 14, 2009
CommitterAdd "\pset linestyle ascii/unicode" option to psql, allowing our traditional ASCII-art style of table output to be upgraded to use Unicode box drawing characters if desired. By default, psql will use the Unicode characters whenever client_encoding is UTF8.
42ec8ad6
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 13, 2009
CommitterBackportedFix ts_stat's failure on empty tsvector. Also insert a couple of Asserts that check for stack overflow. Bogus coding appears to be new in 8.4 --- older releases had a much simpler algorithm here. Per bug #5111.
b1407116
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadOct 13, 2009
CommitterCode review for LIKE INCLUDING patch --- clean up some cosmetic and not so cosmetic stuff.
8d54c248
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 13, 2009
CommitterUse plurals (TABLES, FUNCTIONS, etc) in ALTER DEFAULT PRIVILEGES. We have the keywords as a consequence of the GRANT ALL patch, so we might as well use them and make the ALTER commands read more naturally.
5ec13411
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 12, 2009
CommitterSupport GRANT/REVOKE ON ALL TABLES/SEQUENCES/FUNCTIONS IN SCHEMA.
11ca04b4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 12, 2009
CommitterMove the handling of SELECT FOR UPDATE locking and rechecking out of execMain.c and into a new plan node type LockRows. Like the recent change to put table updating into a ModifyTable plan node, this increases planning flexibility by allowing the operations to occur below the top level of the plan tree. It's necessary in any case to restore the previous behavior of having FOR UPDATE locking occur before ModifyTable does.
0adaf4cb
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 12, 2009
CommitterImprove similar_escape() in two different ways:
05d24971
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 10, 2009
CommitterSplit the processing of INSERT/UPDATE/DELETE operations out of execMain.c. They are now handled by a new plan node type called ModifyTable, which is placed at the top of the plan tree. In itself this change doesn't do much, except perhaps make the handling of RETURNING lists and inherited UPDATEs a tad less klugy. But it is necessary preparation for the intended extension of allowing RETURNING queries inside WITH.
8a5849b7
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 10, 2009
CommitterRemove very ancient tuple-counting infrastructure (IncrRetrieved() and friends). This code has all been ifdef'd out for many years, and doesn't seem to have any prospect of becoming any more useful in the future. EXPLAIN ANALYZE is what people use in practice, and I think if we did want process-wide counters we'd be more likely to put in dtrace events for that than try to resurrect this code. Get rid of it so as to have one less detail to worry about while refactoring execMain.c.
c970292a
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 08, 2009
CommitterUpdate plhandler.sgml to describe validators and inline handlers for procedural languages.
822b0159
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 08, 2009
CommitterSupport use of function argument names to identify which actual arguments match which function parameters. The syntax uses AS, for example funcname(value AS arg1, anothervalue AS arg2)
717fa274
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 08, 2009
CommitterBackportedChange CREATE TABLE so that column default expressions coming from different inheritance parent tables are compared using equal(), instead of doing strcmp() on the nodeToString representation. The old implementation was always a tad cheesy, and it finally fails completely as of 8.4, now that the node tree might contain syntax location information. equal() knows it's supposed to ignore those fields, but strcmp() hardly can. Per recent report from Scott Ribe.
e0c433c4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadOct 06, 2009
CommitterCreate an ALTER DEFAULT PRIVILEGES command, which allows users to adjust the privileges that will be applied to subsequently-created objects.
249724cb
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 05, 2009
CommitterBackportedFix assorted memory leaks in pg_hba.conf parsing. Over a sufficiently large number of SIGHUP cycles, these would have run the postmaster out of memory. Noted while testing memory-leak scenario in postgresql.conf configuration-change-printing patch.
35a173ab
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadOct 03, 2009
CommitterFix a couple of issues in recent patch to print updates to postgresql.conf settings: avoid calling superuser() in contexts where it's not defined, don't leak the transient copies of GetConfigOption output, and avoid the whole exercise in postmaster child processes.
54d60bbd
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 03, 2009
CommitterBackportedFix an oversight in an 8.3-era patch: pgstat_initstats should allow stats to be collected for sequences.
66a8417f
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+16 more
No linked threadOct 02, 2009
CommitterBackportedMake sure that GIN fast-insert and regular code paths enforce the same tuple size limit. Improve the error message for index-tuple-too-large so that it includes the actual size, the limit, and the index name. Sync with the btree occurrences of the same error.
e66d7143
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadOct 02, 2009
CommitterBackportedFix erroneous handling of shared dependencies (ie dependencies on roles) in CREATE OR REPLACE FUNCTION. The original code would update pg_shdepend as if a new function was being created, even if it wasn't, with two bad consequences: pg_shdepend might record the wrong owner for the function, and any dependencies for roles mentioned in the function's ACL would be lost. The fix is very easy: just don't touch pg_shdepend at all when doing a function replacement.
d691cb91
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+18 more
No linked threadOct 02, 2009
CommitterSupport "samehost" and "samenet" specifications in pg_hba.conf, by enumerating the machine's IP interfaces to look for a match.
f3aec2c7
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadOct 01, 2009
CommitterFix bogus Assert, per buildfarm results.
f7082f26
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 30, 2009
CommitterAssorted improvements in contrib/hstore.
172eacba
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 30, 2009
CommitterAllow MOVE FORWARD n, MOVE BACKWARD n, MOVE FORWARD ALL, MOVE BACKWARD ALL in plpgsql. Clean up a couple of corner cases in the MOVE/FETCH syntax.
960d7ff0
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 29, 2009
CommitterBackportedFix equivclass.c's not-quite-right strategy for handling X=X clauses.
25549edb
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+16 more
No linked threadSep 29, 2009
CommitterRemove no-longer-needed ExecCountSlots infrastructure.
421d7d8e
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 27, 2009
CommitterReplace the array-style TupleTable data structure with a simple List of TupleTableSlot nodes. This eliminates the need to count in advance how many Slots will be needed, which seems more than worth the small increase in the amount of palloc traffic during executor startup.
f92e8a4b
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 27, 2009
CommitterMake libpq reject non-numeric and out-of-range port numbers with a suitable error message, rather than blundering on and failing with something opaque.
61be11ff
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 27, 2009
CommitterSync psql's scanner with recent changes in backend scanner's flex rules. Marko Kreen, Tom Lane
799ac992
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 27, 2009
CommitterOoops, fix to Genbki.pm for ROWTYPE_OID wasn't quite right. Also, make a few spacing tweaks so it produces exactly the same output as genbki.sh.
3686bcb9
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 27, 2009
CommitterSimplify the bootstrap (BKI) code by getting rid of a useless table of all the strings seen during the bootstrap run. There might have been some actual point to doing that, many years ago, but as far as I can see the only value now is to conserve a bit of memory. Even if we cared about wasting a megabyte or so during the initdb run, it'd be far more effective to arrange to release memory at the end of each BKI command, instead of intentionally hanging onto strings that might never be used again. Not maintaining the table probably makes it faster too; but the main point of this patch is to get rid of a couple hundred lines of unnecessary and rather crufty code.
12d8fae4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 27, 2009
CommitterHmm, seems a lot of the buildfarm is running versions of awk that don't have gensub(). Use sub() instead, tedious though it be.
23cf415a
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 26, 2009
CommitterRevert my ill-considered change that made formrdesc not insert the correct relation rowtype OID into the relcache entries it builds. This ensures that catcache copies of the relation tupdescs will be fully correct. While the deficiency doesn't seem to have any effect in the current sources, we have been bitten by not-quite-right catcache tupdescs before, so it seems like a good idea to maintain the rule that they should be right.
ca70c3cf
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 26, 2009
CommitterExtend the BKI infrastructure to allow system catalogs to be given hand-assigned rowtype OIDs, even when they are not "bootstrapped" catalogs that have handmade type rows in pg_type.h. Give pg_database such an OID. Restore the availability of C macros for the rowtype OIDs of the bootstrapped catalogs. (These macros are now in the individual catalogs' .h files, though, not in pg_type.h.)
49856352
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 26, 2009
CommitterBackportedFix RelationCacheInitializePhase2 (Phase3, in HEAD) to cope with the possibility of shared-inval messages causing a relcache flush while it tries to fill in missing data in preloaded relcache entries. There are actually two distinct failure modes here:
c2e228d4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more
No linked threadSep 26, 2009
CommitterImprove example for DO, per Petr Jelinek.
e33eeb24
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 23, 2009
CommitterImplement the DO statement to support execution of PL code without having to create a function for it.
9048b731
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 22, 2009
CommitterBackportedFix crash if a DROP is attempted on an internally-dependent object. Introduced in 8.4 rewrite of dependency.c. Per bug #5072 from Amit Khandekar.
d5a43ffd
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 22, 2009
CommitterDefine a new, more extensible syntax for COPY options.
923413ac
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 21, 2009
CommitterAllow plpgsql IN parameters to be assigned to. Since the parameters are just preinitialized local variables, this does not affect the function's semantics as seen by callers; allowing assignment simply avoids the need to create more local variables in some cases. In any case we were being rather inconsistent since only scalar parameters were getting marked constant.
0f427dfe
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 20, 2009
CommitterRemove a couple hundred lines of ugly and tedious-to-maintain code by not trying to parse COPY options exactly in psql's \copy support. Instead, just send the options as-is and let the backend sort it out.
94f238cf
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 19, 2009
Committersql_help.c needs to be cvsignore'd.
9dcc9c6b
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 19, 2009
CommitterRename new subroutine, per discussion with Robert Haas.
9a98dd49
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 19, 2009
CommitterBackportedA bit more wordsmithing on the COPY CSV NULL business.
726725d4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 18, 2009
CommitterMarginal code cleanup in joinpath.c: factor out clause variable-membership tests into a small common subroutine, and eliminate an unnecessary difference in the order in which conditions are tested. Per a comment from Robert Haas.
1bd26353
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 18, 2009
CommitterImplement "join removal" for cases where the inner side of a left join is unique and is not referenced above the join. In this case the inner side doesn't affect the query result and can be thrown away entirely. Although perhaps nobody would ever write such a thing by hand, it's a reasonably common case in machine-generated SQL.
488d70ab
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 17, 2009
CommitterBackportedFix two distinct errors in creation of GIN_INSERT_LISTPAGE xlog records. In practice these mistakes were always masked when full_page_writes was on, because XLogInsert would always choose to log the full page, and then ginRedoInsertListPage wouldn't try to do anything. But with full_page_writes off a WAL replay failure was certain.
384cad5c
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 15, 2009
CommitterFix possible buffer overrun and/or unportable behavior in pg_md5_encrypt() if salt_len == 0. This seems to be mostly academic, since nearly all calling code paths guarantee nonempty salt; the only case that doesn't is PQencryptPassword where the caller could mistakenly pass an empty username. So, fix it but don't bother backpatching. Per ljb.
9a3f5301
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 15, 2009
CommitterWrite psql's ~/.psql_history file using history_truncate_file() and append_history(), if libreadline is new enough to have those functions (they seem to be present at least since 4.2; but libedit may not have them). This gives significantly saner behavior when two or more sessions overlap in their use of the history file; although having two sessions exit at just the same time is still perilous to your history. The behavior of \s remains unchanged, ie, overwrite whatever was there. Per bug #5052 from Marek Wójtowicz.
e97281c4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 13, 2009
CommitterRewrite the planner's handling of materialized plan types so that there is an explicit model of rescan costs being different from first-time costs. The costing of Material nodes in particular now has some visible relationship to the actual runtime behavior, where before it was essentially fantasy. This also fixes up a couple of places where different materialized plan types were treated differently for no very good reason (probably just oversights).
9bb34281
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 12, 2009
CommitterImprove GRANT reference page's description of object ownership privileges by mentioning the possibility of granting membership in the owning role.
5f1b32dd
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 12, 2009
CommitterInstall a hopefully-temporary workaround for Snow Leopard readdir() bug. If Apple doesn't fix that reasonably soon, we'll have to consider back-patching a workaround; but for now, just hack it in HEAD so that we can get buildfarm reports on HEAD from OS X machines. Per Jan Otto.
325aeb4a
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 12, 2009
CommitterBackportedFix assertion failure when a SELECT DISTINCT ON expression is volatile. In this case we generate two PathKey references to the expression (one for DISTINCT and one for ORDER BY) and they really need to refer to the same EquivalenceClass. However get_eclass_for_sort_expr was being overly paranoid and creating two different EC's. Correct behavior is to use the SortGroupRef index to decide whether two references to volatile expressions that are equal() (ie textually equivalent) should be considered the same.
d5a4b69c
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 12, 2009
CommitterIncrease the maximum value of extra_float_digits to 3, and have pg_dump use that value when the backend is new enough to allow it. This responds to bug report from Keh-Cheng Chu pointing out that although 2 extra digits should be sufficient to dump and restore float8 exactly, it is possible to need 3 extra digits for float4 values.
8c5463a5
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 11, 2009
CommitterBackportedFix bug with WITH RECURSIVE immediately inside WITH RECURSIVE. 99% of the code was already okay with this, but the hack that obtained the output column types of a recursive union in advance of doing real parse analysis of the recursive union forgot to handle the case where there was an inner WITH clause available to the non-recursive term. Best fix seems to be to refactor so that we don't need the "throwaway" parse analysis step at all. Instead, teach the transformSetOperationStmt code to set up the CTE's output column information after it's processed the non-recursive term normally. Per report from David Fetter.
255f66ef
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 09, 2009
CommitterRemove any -arch switches given in ExtUtils::Embed's ldopts from our perl_embed_ldflags setting. On OS X it seems that ExtUtils::Embed is trying to force a universal binary to be built, but you need to specify that a lot further upstream if you want Postgres built that way; the only result of including -arch in perl_embed_ldflags is some warnings at the plperl.so link step. Per my complaint and Jan Otto's suggestion.
d69a419e
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 08, 2009
CommitterAdd a boolean GUC parameter "bonjour" to control whether a Bonjour-enabled build actually attempts to advertise itself via Bonjour. Formerly it always did so, which meant that packagers had to decide for their users whether this behavior was wanted or not. The default is "off" to be on the safe side, though this represents a change in the default behavior of a Bonjour-enabled build. Per discussion.
eeb6cb14
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 08, 2009
CommitterReplace use of the long-deprecated Bonjour API DNSServiceRegistrationCreate with the not-so-deprecated DNSServiceRegister. This patch shouldn't change any user-visible behavior, it just gets rid of a deprecation warning in --with-bonjour builds. The new code will fail on OS X releases before 10.3, but it seems unlikely that anyone will want to run Postgres 8.5 on 10.2.
59b9f3d3
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 08, 2009
CommitterBackportedRemove outside-the-scanner references to "yyleng".
4d3456e8
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more
No linked threadSep 08, 2009
CommitterBackportedUpdate the tznames reference files, and add IDT (Israel Daylight Time) to the Default timezone abbreviation set.
03650589
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+17 more
No linked threadSep 06, 2009
CommitterAdd a note warning that COPY BINARY is very datatype-specific. Per a complaint from Gordon Shannon.
a2367f89
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 05, 2009
CommitterBackportedPut back "ifeq ($(PORTNAME), solaris)", this time with some documentation of why it's not as broken as it appears on first glance.
e3b3878a
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 05, 2009
CommitterBackportedRevert ill-considered restriction of dtrace support to Solaris only.
db13a81a
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 04, 2009
CommitterRemove pgstat's discrimination against MsgVacuum and MsgAnalyze messages.
47ef623c
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 04, 2009
CommitterBackportedFinal updates of release notes for 8.4.1, 8.3.8, 8.2.14, 8.1.18, 8.0.22, 7.4.26.
1608489b
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more
No linked threadSep 03, 2009
CommitterBackportedMake LOAD of an already-loaded library into a no-op, instead of attempting to unload and re-load the library.
602a9ef5
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+17 more
No linked threadSep 03, 2009
CommitterBackportedDisallow RESET ROLE and RESET SESSION AUTHORIZATION inside security-definer functions.
187e5d89
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more
No linked threadSep 03, 2009
CommitterBackportedInstall a workaround for a longstanding gcc bug that allows SIGFPE traps to occur for division by zero, even though the code is carefully avoiding that. All available evidence is that the only functions affected are int24div, int48div, and int28div, so patch just those three functions to include a "return" after the ereport() call.
d0a368c6
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 03, 2009
CommitterBackportedUpdate time zone data files to tzdata release 2009l: DST law changes in Egypt, Mauritius, Bangladesh.
49d960c4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+19 more
No linked threadSep 03, 2009
CommitterRemove initdb's rather gratuitous check to see if the backend created a flat password file, because it never will anymore. We had managed to miss this during the recent flat-file-ectomy because it only happens if --pwfile or --pwprompt is specified to initdb. Apparently, few hackers use those. Reported by Erik Rijkers.
b02c32e1
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 03, 2009
CommitterBackportedFix subquery pullup to wrap a PlaceHolderVar around the entire RowExpr that's generated for a whole-row Var referencing the subquery, when the subquery is in the nullable side of an outer join. The previous coding instead put PlaceHolderVars around the elements of the RowExpr. The effect was that when the outer join made the subquery outputs go to null, the whole-row Var produced ROW(NULL,NULL,...) rather than just NULL. There are arguments afoot about whether those things ought to be semantically indistinguishable, but for the moment they are not entirely so, and the planner needs to take care that its machinations preserve the difference. Per bug #5025.
57c9dff9
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadSep 02, 2009
CommitterBackportedFix pg_ctl's readfile() to not go into infinite loop on an empty file (could happen if either postgresql.conf or postmaster.opts is empty). It's been broken since the C version was written for 8.0, so patch all the way back.
040f28b4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+19 more
No linked threadSep 02, 2009
CommitterForce VACUUM to recalculate oldestXmin even when we haven't changed our own database's datfrozenxid, if the current value is old enough to be forcing autovacuums or warning messages. This ensures that a bogus value is replaced as soon as possible. Per a comment from Heikki.
794e3e81
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 01, 2009
CommitterActually, we need to bump the format identifier on twophase files because of readjustment of 2PC rmgr IDs for flatfile removal.
14f445fc
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 01, 2009
CommitterBump catversion for flat-file-ectomy. Also remove a missed dead extern declaration.
b92f7a22
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 01, 2009
CommitterMove processing of startup-packet switches and GUC settings into InitPostgres, to fix the problem that SetClientEncoding needs to be done before InitializeClientEncoding, as reported by Zdenek Kotala. We get at least the small consolation of being able to remove the bizarre API detail that had InitPostgres returning whether user is a superuser.
0905e8ae
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadSep 01, 2009
CommitterChange the autovacuum launcher to read pg_database directly, rather than via the "flat files" facility. This requires making it enough like a backend to be able to run transactions; it's no longer an "auxiliary process" but more like the autovacuum worker processes. Also, its signal handling has to be brought into line with backends/workers. In particular, since it now has to handle procsignal.c processing, the special autovac-launcher-only signal conditions are moved to SIGUSR2.
00e6a16d
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 31, 2009
CommitterTrack the current XID wrap limit (or more accurately, the oldest unfrozen XID) in checkpoint records. This eliminates the need to recompute the value from scratch during database startup, which is one of the two remaining reasons for the flatfile code to exist. It should also simplify life for hot-standby operation.
25ec228e
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 31, 2009
CommitterRemove some useless assignments of the result of fread(). Quiets warnings from clang static checker, and makes the code more readable anyway IMO.
e1cc6419
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 30, 2009
CommitterBackportedRemove duplicate variable initializations identified by clang static checker. One of these represents a nontrivial bug (a promptly-leaked palloc), so backpatch.
dd6de24e
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+16 more
No linked threadAug 30, 2009
CommitterRemove the use of the pg_auth flat file for client authentication. (That flat file is now completely useless, but removal will come later.)
e710b65c
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 29, 2009
CommitterRemove useless code that propagated FrontendProtocol to a backend via a PostgresMain switch. In point of fact, FrontendProtocol is already set in a backend process, since ProcessStartupPacket() is executed inside the backend --- it hasn't been run by the postmaster for many years. And if it were, we'd still certainly want FrontendProtocol to be set before we get as far as PostgresMain, so that startup errors get reported in the right protocol.
0a00c9a8
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 28, 2009
CommitterNon-Windows EXEC_BACKEND path was broken by recent write_inheritable_socket change ... it's got to return true.
c66d9ce7
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 28, 2009
CommitterBackportedModify the definition of window-function PARTITION BY and ORDER BY clauses so that their elements are always taken as simple expressions over the query's input columns. It originally seemed like a good idea to make them act exactly like GROUP BY and ORDER BY, right down to the SQL92-era behavior of accepting output column names or numbers. However, that was not such a great idea, for two reasons:
bb16dc49
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadAug 27, 2009
CommitterMake the .DEF file generation rules safe against tabs in exports.txt. Per bug #5016, although I think the MSVC build scripts may need a similar fix.
3d167209
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 27, 2009
CommitterMake it reasonably safe to use pg_ctl to start the postmaster from a boot-time script.
8f5500e6
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 27, 2009
CommitterRemove some unnecessary variable assignments, per results of "clang" static checker. Paul Matthews
aaa9f7d4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 27, 2009
CommitterBackportedTry to make silent_mode behave somewhat reasonably.
8bed238c
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadAug 24, 2009
CommitterBackportedSmall correction to previous patch: we shouldn't ReleasePostmasterChildSlot for a dead_end child, because we didn't AssignPostmasterChildSlot.
5a4f7638
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadAug 24, 2009
CommitterBackportedFix inclusions of readline/editline header files so that we only attempt to #include the version of history.h that is in the same directory as the readline.h we are using. This avoids problems in some scenarios where both readline and editline are installed. Report and patch by Zdenek Kotala.
9b708f1f
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more
No linked threadAug 24, 2009
CommitterRun the "tablespace" regression test first not last. The former placement renders useless one of the few test methodologies we have for WAL replay, which is to intentionally crash the system just after completing the regression tests and see if it recovers to the expected database state. The reason is that DROP TABLESPACE forces a checkpoint, so there's essentially no WAL available for replay after the tests complete.
3bee0a46
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 24, 2009
CommitterBackportedFix a violation of WAL coding rules in the recent patch to include an "all tuples visible" flag in heap page headers. The flag update *must* be applied before calling XLogInsert, but heap_update and the tuple moving routines in VACUUM FULL were ignoring this rule. A crash and replay could therefore leave the flag incorrectly set, causing rows to appear visible in seqscans when they should not be. This might explain recent reports of data corruption from Jeff Ross and others.
7fc7a7c4
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadAug 24, 2009
CommitterMake TRUNCATE do truncate-in-place when processing a relation that was created or previously truncated in the current (sub)transaction. This is safe since if the (sub)transaction later rolls back, we'd just discard the rel's current physical file anyway. This avoids unreasonable growth in the number of transient files when a relation is repeatedly truncated. Per a performance gripe a couple weeks ago from Todd Cook.
cab9a065
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 23, 2009
CommitterBackportedTweak ExecIndexEvalRuntimeKeys to forcibly detoast any toasted comparison values before they get passed to the index access method. This avoids repeated detoastings that will otherwise ensue as the comparison value is examined by various index support functions. We have seen a couple of reports of cases where repeated detoastings result in an order-of-magnitude slowdown, so it seems worth adding a bit of extra logic to prevent this.
c38b7594
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more
No linked threadAug 23, 2009
CommitterInclude resjunk columns in EXPLAIN VERBOSE output lists. Per discussion.
56e985d0
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 22, 2009
CommitterFix version_stamp.pl to allow 'alphaN' version stamps. Not sure how Peter did that without fixing this ...
e59686f0
master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more
No linked threadAug 19, 2009
CommitterAllow mixing of traditional and SQL:2008 LIMIT/OFFSET syntax. Being rigid about it doesn't simplify the grammar at all, and it does invite confusion among those who only read the SELECT syntax summary and not the full details. Per gripe from Jaime Casanova.
be4cd18f
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 18, 2009
CommitterBackportedFix overflow for INTERVAL 'x ms' where x is more than a couple million, and integer datetimes are in use. Per bug report from Hubert Depesz Lubaczewski.
3bd22411
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+21 more
No linked threadAug 18, 2009
CommitterPrint the actual DB encoding in the unaccent regression test. This is to help make it more obvious what the problem is, if the encoding isn't what the test expects.
4b98b613
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 18, 2009
CommitterFix some *other* compiler warnings from a different gcc version.
13845d26
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 18, 2009
CommitterFix copy-and-pasteo that might explain some of the buildfarm's indigestion about this module.
ed05063d
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 18, 2009
CommitterSuppress compiler warnings about uninitialized variables.
ec812846
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 18, 2009
CommitterDepartment of marginal improvements: teach tupconvert.c to avoid doing a physical conversion when there are dropped columns in the same places in the input and output tupdescs. This avoids possible performance loss from the recent patch to improve dropped-column handling, in some cases where the old code would have worked.
67a5f8ff
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 17, 2009
CommitterBackportedFix imprecise documentation of random(): it never returns 1.0. This was changed in 8.2 but the documentation was not corrected. Per gripe from Sam Mason.
26a90c65
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+18 more
No linked threadAug 16, 2009
CommitterBackportedFix incorrect encoding-aware name truncation in makeArrayTypeName().
785cfee0
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+17 more
No linked threadAug 16, 2009
CommitterRemove Wisconsin benchmark files.
a05a4b47
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 15, 2009
CommitterMake sure that 'make distclean' cleans out all files that are not meant to be shipped. Also, allow 'make clean' to remove intermediate working files.
b3288537
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 15, 2009
CommitterRepair breakage of Wisconsin benchmark due to change of command line syntax for standalone backends.
3718b0c5
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 14, 2009
CommitterAdd a simple test case covering a join against an inheritance tree, since we're evidently not testing that at all right now :-(
50125511
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 13, 2009
CommitterBackportedPut back adjust_appendrel_attrs()'s code for dealing with RestrictInfo. I mistakenly removed it last month, thinking it was no longer needed --- but it is still needed for dealing with joininfo lists. Fortunately this bit of brain fade hadn't made it into any released versions yet.
f959390c
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadAug 13, 2009
CommitterImprove error message for the case where a requested foreign key constraint does match some unique index on the referenced table, but that index is only deferrably unique. We were doing this nicely for the default-to-primary-key case, but were being lazy for the other case.
b6bde524
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 12, 2009
CommitterThe html-stamp and man-stamp files also need to be cvsignore'd.
5d3e2324
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 12, 2009
CommitterAllow backends to start up without use of the flat-file copy of pg_database.
04011cc9
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 12, 2009
CommitterBackportedFix old bug in log_autovacuum_min_duration code: it was relying on being able to access a Relation entry it had just closed. I happened to be testing with CLOBBER_CACHE_ALWAYS, which made this a guaranteed core dump (at least on machines where sprintf %s isn't forgiving of a NULL pointer). It's probably quite unlikely that it would fail in the field, but a bug is a bug. Fix by moving the relation_close call down past the logging action.
a1f0c9ba
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+17 more
No linked threadAug 12, 2009
CommitterSupport EEEE (scientific notation) in to_char().
e61fd4ac
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 10, 2009
CommitterAdjust extract(epoch) example to clarify that it includes fractional seconds, per gripe from Richard Neill. Also, add a cross-reference to the to_timestamp function.
f3f6737a
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 10, 2009
CommitterExtend EXPLAIN to support output in XML or JSON format.
9bd27b7c
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 10, 2009
CommitterBackportedDocument that LocalSetXLogInsertAllowed can be re-executed. Per comment from Simon.
97e14f6e
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadAug 08, 2009
CommitterModify parallel pg_restore to track pending and ready items by means of two new lists, rather than repeatedly rescanning the main TOC list. This avoids a potential O(N^2) slowdown, although you'd need a *lot* of tables to make that really significant; and it might simplify future improvements in the scheduling algorithm by making the set of ready items more easily inspectable. The original thought that it would in itself result in a more efficient job dispatch order doesn't seem to have been borne out in testing, but it seems worth doing anyway.
f033f6d2
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 07, 2009
CommitterBackportedTry to defend against the possibility that libpq is still in COPY_IN state when we reach the post-COPY "pump it dry" error recovery code that was added 2006-11-24. Per a report from Neil Best, there is at least one code path in which this occurs, leading to an infinite loop in code that's supposed to be making it more robust not less so. A reasonable response seems to be to call PQputCopyEnd() again, so let's try that.
e605fbcc
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+21 more
No linked threadAug 07, 2009
CommitterBackportedrm_cleanup functions need to be allowed to write WAL entries. This oversight appears to explain the recent reports of "PANIC: cannot make new WAL entries during recovery".
87740caa
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadAug 07, 2009
CommitterRemove long-since-unused file commands/version.h. Noticed by Itagaki Takahiro.
3783c9d4
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 07, 2009
CommitterBackportedFix some omissions in the dependency-object-class support for SQL/MED objects.
b1114f55
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadAug 07, 2009
CommitterImprove plpgsql's ability to cope with rowtypes containing dropped columns, by supporting conversions in places that used to demand exact rowtype match.
dcb2bda9
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 06, 2009
CommitterAdd matchorig, matchsynonyms, and keepsynonyms options to contrib/dict_xsyn.
25bd9ce3
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 05, 2009
CommitterFix pg_dump to do the right thing when escaping the contents of large objects.
b1732111
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterFix an ecpg test, too. Are we there yet?
466a4925
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterFix some more regression tests (missed these because they're only run when built with --with-openssl).
c83d1fb1
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterSuppress pointer-signedness warning.
8476f055
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterOoops, missed that a couple of contrib modules have calls to byteacmp. Add bytea.h inclusions as needed. Some of the contrib regression tests need to be de-hexified, too. Per buildfarm.
bcba09e2
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterTeach PQescapeByteaConn() to use hex format when the target connection is to a server >= 8.5. Per my proposal in discussion of hex-format patch.
5b8ee5c1
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterSupport hex-string input and output for type BYTEA.
a2a8c7a6
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterCause pg_proc.probin to be declared as text, not bytea. Everything was already treating it as text anyway, to the point that I couldn't find anything to change except the datatype markings in catalog/*.h. The only effect that the bytea declaration had was to cause byteaout() to be invoked when pg_dump (or another client program) inspected the column value. Since pg_dump wasn't expecting that, but just treating what it got as text, the net result is that dump and reload would mangle any backslashes or non-ASCII characters in the filename string for a C-language function. That is a very long-standing bug, but given the lack of field complaints it doesn't seem worth trying to find a back-patchable fix. We'll just make this change to fix it going forward.
f192e4a5
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 04, 2009
CommitterPortability and documentation fixes for threaded pgbench patch.
7ffb14f9
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 03, 2009
CommitterAdd ALTER TABLE ... ALTER COLUMN ... SET STATISTICS DISTINCT
90725929
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 02, 2009
CommitterDepartment of second thoughts: let's show the exact key during unique index build failures, too. Refactor a bit more since that error message isn't spelled the same.
527f0ae3
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 01, 2009
CommitterImprove unique-constraint-violation error messages to include the exact values being complained of.
b680ae4b
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadAug 01, 2009
CommitterCreate a multiplexing structure for signals to Postgres child processes.
2487d872
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 31, 2009
CommitterMerge the Constraint and FkConstraint node types into a single type.
060baf27
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 30, 2009
CommitterBackportedFix time_part and timetz_part (ie, EXTRACT() for those datatypes) to include a fractional part in the output for MILLISECOND and SECOND cases, rather than truncating the source value. This is what the float-timestamp code has always done, and it was clearly the code author's intent to do the same for integer timestamps, but he forgot about integer division in C. The other datatypes supported by EXTRACT() already do this correctly.
78aef14c
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 29, 2009
CommitterSupport deferrable uniqueness constraints.
25d9bf2e
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 29, 2009
CommitterBackportedFix a thinko introduced into CountActiveBackends by a recent patch: we should ignore NULL array entries, not non-NULL ones. This had the effect of disabling commit_delay, and could have caused a crash in the rare race condition the patch was intended to fix.
85049057
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+19 more
No linked threadJul 29, 2009
CommitterAdd system catalog columns pg_constraint.conindid and pg_trigger.tgconstrindid.
c1b9ec24
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 28, 2009
CommitterAdd s_lock support for SuperH architecture.
aac3c301
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 27, 2009
CommitterBackportedImprove comment, per gripe from Alvaro.
cfbd2af9
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 27, 2009
CommitterBackportedFix pg_stat_statements for EXEC_BACKEND case.
e4b9e653
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 27, 2009
CommitterExperiment with using EXPLAIN COSTS OFF in regression tests.
8835d63b
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 27, 2009
CommitterExtend EXPLAIN to allow generic options to be specified.
d4382c4a
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 26, 2009
CommitterCode review for FORCE QUOTE * patch: fix error checking to consider FORCE QUOTE * as a variety of FORCE QUOTE, and update psql documentation to include the option. (The actual psql code doesn't seem to need any changes.)
a07e5ace
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 25, 2009
CommitterAssorted minor refactoring in EXPLAIN.
8af12bca
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 24, 2009
CommitterAvoid extra system calls to block SIGPIPE if the platform provides either sockopt(SO_NOSIGPIPE) or the MSG_NOSIGNAL flag to send().
cea80e72
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 24, 2009
CommitterAdd commentary about Cygwin's broken erand48, per report from Andrew Dunstan.
655473a7
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 24, 2009
CommitterTeach pg_dump to dump comments attached to the columns of a composite type.
0d6909ea
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 23, 2009
CommitterSave a few cycles in EXPLAIN and related commands by not bothering to form a physical tuple in do_tup_output(). A virtual tuple is easier to set up and also easier for most tuple receivers to process. Per my comment on Robert Haas' recent patch in this code.
adfa0429
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 23, 2009
CommitterBackportedIn a non-hashed Agg node, reset the "aggcontext" at group boundaries, instead of individually pfree'ing pass-by-reference transition values. This should be at least as fast as the prior coding, and it has the major advantage of clearing out any working data an aggregate function may have stored in or underneath the aggcontext. This avoids memory leakage when an aggregate such as array_agg() is used in GROUP BY mode. Per report from Chris Spotts.
6a0865e4
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 23, 2009
CommitterBackportedFix another thinko in join_is_legal's handling of semijoins: we have to test for the case that the semijoin was implemented within either input by unique-ifying its RHS before we test to see if it appears to match the current join situation. The previous coding would select semijoin logic in situations where we'd already unique-ified the RHS and joined it to some unrelated relation(s), and then came to join it to the semijoin's LHS. That still gave the right answer as far as the semijoin itself was concerned, but would lead to incorrectly examining only an arbitrary one of the matchable rows from the unrelated relation(s). The cause of this thinko was incorrect unification of the pre-8.4 logic for IN joins and OUTER joins --- the comparable case for outer joins can be handled after making the match test, but that's because there is nothing like the unique-ification escape hatch for outer joins. Per bug #4934 from Benjamin Reed.
1ca695db
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 23, 2009
CommitterChange do_tup_output() to take Datum/isnull arrays instead of a char * array, so it doesn't go through BuildTupleFromCStrings. This is more or less a wash for current uses, but will avoid inefficiency for planned changes to EXPLAIN.
846c364d
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 22, 2009
CommitterTweak TOAST code so that columns marked with MAIN storage strategy are not forced out-of-line unless that is necessary to make the row fit on a page. Previously, they were forced out-of-line if needed to get the row down to the default target size (1/4th page).
ca7c8168
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 22, 2009
CommitterMake pg_dump/pg_restore --clean options drop large objects too. In passing, make invocations of lo_xxx functions a bit more schema-safe.
a5375bf9
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 21, 2009
CommitterSpeed up AllocSetFreeIndex, which is a significant cost in palloc and pfree, by using a lookup table instead of a naive shift-and-count loop. Based on code originally posted by Sean Eron Anderson at http://graphics.stanford.edu/%7eseander/bithacks.html. Greg Stark did the research and benchmarking to show that this is what we should use. Jeremy Kerr first noticed that this is a hotspot that could be optimized, though we ended up not using his suggestion of platform-specific bit-searching code.
ab5b4e2f
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 21, 2009
CommitterBackportedFix another semijoin-ordering bug. We already knew that we couldn't reorder a semijoin into or out of the righthand side of another semijoin, but actually it doesn't work to reorder it into or out of the righthand side of a left or antijoin, either. Per bug #4906 from Mathieu Fenniak.
b2c51e6e
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 21, 2009
CommitterBackportedRemove unnecessary and version-sensitive dependence on the exact set of column names to be found in a sequence. Per gripe from Bruce.
888d3335
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 20, 2009
CommitterTeach simplify_boolean_equality to simplify the forms foo <> true and foo <> false, along with its previous duties of simplifying foo = true and foo = false. (All of these are equivalent to just foo or NOT foo as the case may be.) It's not clear how often this is really useful; but it costs almost nothing to do, and it seems some people think we should be smart about such cases. Per recent bug report.
31d1f233
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 20, 2009
CommitterRewrite GEQO's gimme_tree function so that it always finds a legal join sequence, even when the input "tour" doesn't lead directly to such a sequence. The stack logic that was added in 2004 only supported cases where relations that had to be joined to each other (due to join order restrictions) were adjacent in the tour. However, relying on a random search to figure that out is tremendously inefficient in large join problems, and could even fail completely (leading to "failed to make a valid plan" errors) if random_init_pool ran out of patience. It seems better to make the tour-to-plan transformation a little bit fuzzier so that every tour can form a legal plan, even though this means that apparently different tours will sometimes yield the same plan.
400e2c93
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 19, 2009
CommitterBackportedFix a thinko in join_is_legal: when we decide we can implement a semijoin by unique-ifying the RHS and then inner-joining to some other relation, that is not grounds for violating the RHS of some other outer join. Noticed while regression-testing new GEQO code, which will blindly follow any path that join_is_legal says is legal, and then complain later if that leads to a dead end.
a43b190e
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 19, 2009
CommitterBackportedFix error cleanup failure caused by 8.4 changes in plpgsql to try to avoid memory leakage in error recovery. We were calling FreeExprContext, and therefore invoking ExprContextCallback callbacks, in both normal and error exits from subtransactions. However this isn't very safe, as shown in recent trouble report from Frank van Vugt, in which releasing a tupledesc refcount failed. It's also unnecessary, since the resources that callbacks might wish to release should be cleaned up by other error recovery mechanisms (ie the resource owners). We only really want FreeExprContext to release memory attached to the exprcontext in the error-exit case. So, add a bool parameter to FreeExprContext to tell it not to call the callbacks.
011eae60
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 18, 2009
CommitterBackportedRepair bug #4926 "too few pathkeys for mergeclauses". This example shows that the sanity checking I added to create_mergejoin_plan() in 8.3 was a few bricks shy of a load: the mergeclauses could reference pathkeys in a noncanonical order such as x,y,x, not only cases like x,x,y which is all that the code had allowed for. The odd cases only turn up when using redundant clauses in an outer join condition, which is why no one had noticed before.
fb180559
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+17 more
No linked threadJul 17, 2009
CommitterMake GEQO's planning deterministic by having it start from a predictable random number seed each time. This is how it used to work years ago, but we got rid of the seed reset because it was resetting the main random() sequence and thus having undesirable effects on the rest of the system. To fix, establish a private random number state for each execution of geqo(), and initialize the state using the new GUC variable geqo_seed. People who want to experiment with different random searches can do so by changing geqo_seed, but you'll always get the same plan for the same value of geqo_seed (if holding all other planner inputs constant, of course).
f5bc7419
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 16, 2009
CommitterAdd erand48() to the set of functions supported by our src/port/ library, and extend configure to test for it properly instead of hard-wiring an assumption that everybody but Windows has the rand48 functions. (We do cheat to the extent of assuming that probing for erand48 will do for the entire rand48 family.)
c43feefa
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 16, 2009
CommitterRemove duplicate definition of TYPECAST token. (Apparently, some but not all versions of Bison will warn about this.)
4baaaf7a
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 14, 2009
CommitterTweak the core scanner so that it can be used by plpgsql too.
1aa58d3a
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 14, 2009
CommitterBackportedDo a conditional SPI_push/SPI_pop when replanning a query in RevalidateCachedPlan. This is to avoid a "SPI_ERROR_CONNECT" failure when the planner calls a SPI-using function and we are already inside one. The alternative fix is to expect callers of RevalidateCachedPlan to do this, which seems likely to result in additional hard-to-detect bugs of omission. Per reports from Frank van Vugt and Marek Lewczuk.
0d4899e4
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+17 more
No linked threadJul 14, 2009
CommitterMake the configure messages rejecting old bison and flex versions include the full path and version of the program being rejected.
dcc9d373
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 13, 2009
CommitterAlthough the flex documentation avers that yyalloc and yyrealloc take size_t arguments, the emitted scanner actually prototypes them with type yy_size_t, which is sometimes not the same thing depending on flex version and platform. Easiest fix seems to be to use yy_size_t. Per buildfarm results.
34a11144
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 13, 2009
CommitterConvert the core lexer and parser into fully reentrant code, by making use of features added to flex and bison since this code was originally written. This change doesn't in itself offer any new capability, but it's needed infrastructure for planned improvements in plpgsql.
91e71929
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 13, 2009
CommitterAdvance the minimum required version of "flex" from 2.5.4 to 2.5.31, and update documentation accordingly. This is required in order to have support for a reentrant scanner. I'm committing this bit separately in order to have an easy reference if we later decide to make the minimum something different (like 2.5.33).
da4b9001
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 13, 2009
CommitterFix up PGDLLIMPORT marking for standard_conforming_strings. Moving it into a header file that plpgsql's scan.l can see broke the previous kluge. Per buildfarm results.
f1d9c299
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 13, 2009
CommitterMove some declarations in the raw-parser header files to create a clearer distinction between the external API (parser.h) and declarations that only need to be visible within the raw parser code (gramparse.h, which now is only included by parser.c, gram.y, scan.l, and keywords.c). This is in preparation for the upcoming change to a reentrant lexer, which will require referencing YYSTYPE in the declarations of base_yylex and filtered_base_yylex, hence gram.h will have to be included by gramparse.h. We don't want any more files than absolutely necessary to depend on gram.h, so some cleanup is called for.
6566e37e
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 12, 2009
CommitterBackportedFix set_rel_width() to do something reasonable with non-Var items in a RelOptInfo targetlist. It used to be that the only possibility other than a Var was a RowExpr representing a whole-row child Var, but as of 8.4's expanded ability to flatten appendrel members, we can get arbitrary expressions in there. Use the expression's type info and get_typavgwidth() to produce an at-least-marginally-sane result. Note that get_typavgwidth()'s fallback estimate (32 bytes) is the same as what was here before, so there will be no behavioral change for RowExprs. Noted while looking at recent gripe about constant quals pushed down to FunctionScan appendrel members ... not only were we failing to recognize the constant qual, we were getting the width estimate wrong :-(
014be150
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 11, 2009
CommitterBackportedFix xslt_process() to ensure that it inserts a NULL terminator after the last pair of parameter name/value strings, even when there are MAXPARAMS of them. Aboriginal bug in contrib/xml2, noted while studying bug #4912 (though I'm not sure whether there's something else involved in that report).
e7370bab
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+20 more
No linked threadJul 10, 2009
CommitterBackportedRemove no-longer-necessary transmission of postmaster's LC_COLLATE and LC_CTYPE settings to children via BackendParameters. Per discussion, the postmaster is now just using system defaults anyway, so we might as well save a few cycles during backend startup.
b11ce560
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 08, 2009
CommitterBackportedAdd missing HOUR TO SECOND option to list of possible INTERVAL field sets, as noted by Sebastien Flaesch. Also update the claim that we simply throw away fields outside this set --- that got changed later to only discard less-significant fields.
53e72292
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 08, 2009
CommitterJust a little more schema-qualification ...
e01d732d
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 07, 2009
CommitterDon't use 'return' where you should use 'PG_RETURN_xxx'.
ba3fb57d
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 07, 2009
CommitterQuery in SQL function still not schema-safe; add a couple more pg_catalog. qualifications.
fc9dd12d
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 07, 2009
CommitterFix typo in comment.
8fe8ac5f
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 07, 2009
CommitterCode review for patch to show definition of index columns in \d on index. Safely schema-qualify the pg_get_indexdef call, make the query a bit prettier in -E mode, remove useless join to pg_index, make it more obvious that the header[] array is not overrun.
788d8e51
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 07, 2009
CommitterUse floor() not rint() when reducing precision of fractional seconds in timestamp_trunc, timestamptz_trunc, and interval_trunc(). This change only affects the float-datetime case; the integer-datetime case already behaved like truncation instead of rounding. Per gripe from Mario Splivalo.
47386fed
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 06, 2009
CommitterBackportedFix set_append_rel_pathlist() to deal intelligently with cases where substituting a child rel's output expressions into the appendrel's restriction clauses yields a pseudoconstant restriction. We might be able to skip scanning that child rel entirely (if we get constant FALSE), or generate a one-time filter. 8.3 more or less accidentally generated plans that weren't completely stupid in these cases, but that was only because an extra recursive level of subquery_planner() always occurred and allowed const-simplification to happen. 8.4's ability to pull up appendrel members with non-Var outputs exposes the fact that we need to work harder here. Per gripe from Sergey Burladyan.
9b27eab7
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 06, 2009
CommitterBackportedPer SQL spec (in particular, the grammar in SQL:2008 7.13) we should allow parentheses around the <query expression body> that follows a WITH clause, eg with cte(foo) as ( values(0) ) ((select foo from cte)); This seems to be just an oversight/thinko in gram.y. Noted while experimenting with bug #4902.
869312e6
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 06, 2009
CommitterBackportedFix handling of changed-Param signaling for CteScan plan nodes. We were using the "cteParam" as a proxy for the possibility that the underlying CTE plan depends on outer-level variables or Params, but that doesn't work very well because it sometimes causes calling subqueries to be treated as SubPlans when they could be InitPlans. This is inefficient and also causes the outright failure exhibited in bug #4902. Instead, leave the cteParam out of it and copy the underlying CTE plan's extParams directly. Per bug #4902 from Marko Tiikkaja.
9298d2ff
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 06, 2009
CommitterBackportedFix up pg_dump's --binary-upgrade option so that it behaves properly with inherited columns and check constraints. Per my recent trouble report.
53fa850c
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 02, 2009
CommitterBackportedRemove useless References column for pg_listener catalog description. Per Shigehiro Honda.
47f6699d
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 01, 2009
CommitterStamp HEAD as 8.5devel.
f4ab0b03
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 01, 2009
CommitterBackportedAdd missed src/include/foreign subdirectory to the set installed into INSTALLDIR/include/server/. Itagaki Takahiro
2c3c2c1c
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJun 30, 2009
CommitterRevert addition of "o" to tar options. This was intended to fix bug #4883, but the cure appears to be worse than the disease. It turns out that GNU tar versions 1.14.x misinterpret -o as --same-owner, not --no-same-owner, leading to exactly the wrong behavior for both root and nonroot users. While that bug has been fixed for nearly five years, these tar versions are still found in the wild, notably in OS X 10.4. Given that #4883 was the first complaint we'd heard, it's definitely not worth fixing at the risk of breaking things for other users. Perhaps revisit at a later date when we're not up against a release deadline.
4d53a2f9
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 27, 2009
CommitterUpdate release notes in final preparation for 8.4.0.
730e1a9c
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 26, 2009
CommitterAdd a note about SystemTap vs DTrace spelling of probe names.
9d6469c9
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 26, 2009
CommitterMarginal improvement of description of recovery_end_command.
df858fe5
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 26, 2009
CommitterCleanup and code review for the patch that made bgwriter active during archive recovery. Invent a separate state variable and inquiry function for XLogInsertAllowed() to clarify some tests and make the management of writing the end-of-recovery checkpoint less klugy. Fix several places that were incorrectly testing InRecovery when they should be looking at RecoveryInProgress or XLogInsertAllowed (because they will now be executed in the bgwriter not startup process). Clarify handling of bad LSNs passed to XLogFlush during recovery. Use a spinlock for setting/testing SharedRecoveryInProgress. Improve quite a lot of comments.
2de48a83
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 26, 2009
CommitterAdd __attribute__((format_arg(1))) to the declaration of err_gettext(), to restore gcc's ability to crosscheck format arguments within elog.c. Noted in a test compilation with -Wformat-nonliteral enabled.
7a58167e
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 25, 2009
CommitterMake prior patch pgindent-safe.
888bcdb9
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 25, 2009
CommitterProvide a link to the UPDATE reference page in the 'Updating Data' section of the docs. Per suggestion from Brad Bowman.
d82e9f72
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 23, 2009
CommitterBackportedFix an ancient error in dist_ps (distance from point to line segment), which a number of other geometric operators also depend on. It miscalculated the slope of the perpendicular to the given line segment anytime that slope was other than 0, infinite, or +/-1. In some cases the error would be masked because the true closest point on the line segment was one of its endpoints rather than the intersection point, but in other cases it could give an arbitrarily bad answer. Per bug #4872 from Nick Roosevelt.
b087b018
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+21 more
No linked threadJun 23, 2009
CommitterFix the makefiles to fail cleanly if Perl is needed but not present. This used to work as intended, but got broken some time ago (a quoted empty string is not an empty string), and got broken some more by the changes to generate ecpg's preproc.y automatically. Given all the unprotected uses of $(PERL) elsewhere, it seems best to make use of the $(missing) script rather than trying to ensure each such use is protected individually. Also fix various bits of documentation that omitted to mention Perl as a requirement for building from a CVS pull. Per a complaint from Robert Haas.
8d355d7b
master8.4.0REL_19_STABLE8.4.0REL_18_STABLE8.4.0REL_17_STABLE8.4.0REL_16_STABLE8.4.0REL_15_STABLE8.4.0REL_14_STABLE8.4.0REL_13_STABLE8.4.0+16 more
No linked threadJun 23, 2009
CommitterFor bulk write operations (eg COPY IN), use a ring buffer of 16MB instead of the 256KB limit originally enforced by a patch committed 2008-11-06. Per recent test results, the smaller size resulted in an undesirable decrease in bulk data loading speed, due to COPY processing frequently getting blocked for WAL flushing. This area might need more tweaking later, but this setting seems to be good enough for 8.4.
6382448c
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 22, 2009
CommitterMake to_timestamp and friends skip leading spaces before an integer field, even when not in FM mode. This improves compatibility with Oracle and with our pre-8.4 behavior, as per bug #4862.
3f1e529e
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 22, 2009
CommitterRevert dubious message wording change.
1c8f03d4
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 22, 2009
CommitterFix things so that array_agg_finalfn does not modify or free its input ArrayBuildState, per trouble report from Merlin Moncure. By adopting this fix, we are essentially deciding that aggregate final-functions should not modify their inputs ever. Adjust documentation and comments to match that conclusion.
82480e28
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 20, 2009
CommitterFix the just-reported problem that you can't specify all four trigger event types in CREATE TRIGGER. While at it, clean up the amazingly tedious and inextensible way that the trigger event type list was handled. Per report from Greg Sabino Mullane.
f08e5e92
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 18, 2009
CommitterProofreading for Bruce's recent round of documentation proofreading. Most of those changes were good, but some not so good ...
c30446b9
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 17, 2009
CommitterExecAgg() failed to finish running out set-returning functions in the last aggregated tuple of a run. Per report from Laurenz Albe. This is a new bug in 8.4, but only because prior versions rejected SRFs in an Agg plan node altogether.
e8d78d35
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 17, 2009
CommitterBackportedChange test tables in copy2 regression test to be temporary tables. This prevents autovacuum from reclaiming free space in them and causing the test's output row order to change, which is causing intermittent bogus failure reports in the buildfarm.
f51c9a66
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+17 more
No linked threadJun 14, 2009
CommitterFix get_sort_group_operators() so that it doesn't think arrays can be grouped via hashing. Eventually we ought to make that possible, but it won't happen for 8.4. Per yesterday's report from Robert Haas.
5f6a1407
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 13, 2009
CommitterImprove documentation about GiST opclass support functions. Dimitri Fontaine
a0a3883d
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 12, 2009
CommitterFix several places where a function was declared static and then defined without static. Per testing with a compiler that complains about this.
bfd06a71
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 12, 2009
CommitterAdd info about minimum recommended AIX fix levels, per Laurenz Albe.
63e183ca
master8.4rc2REL_19_STABLE8.4rc2REL_18_STABLE8.4rc2REL_17_STABLE8.4rc2REL_16_STABLE8.4rc2REL_15_STABLE8.4rc2REL_14_STABLE8.4rc2REL_13_STABLE8.4rc2+16 more
No linked threadJun 12, 2009
CommitterUpdate release notes to today.
ae8a2d1a
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 11, 2009
CommitterRevisit AlterTableCreateToastTable's API once again, hoping to make it what pg_migrator actually needs and not just a partial solution. We have to be able to specify the OID that the new toast table should be created with.
44aa60fa
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 11, 2009
CommitterRemove our inadequate kluge that tried to get AIX's various broken versions of getaddrinfo() to work. Instead, recommend updating the OS to get a working version of getaddrinfo. Per recent discussions.
db16e773
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 11, 2009
CommitterMark contrib's GiST and GIN opclass support functions as STRICT, for safety. (Note: GiST penalty functions could possibly be non-strict, but none are at present.)
d94582f4
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 11, 2009
CommitterBackportedUpdate time zone data files to tzdata release 2009i: DST law changes in Bangladesh, Egypt, Jordan, Pakistan.
4c817527
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+20 more
No linked threadJun 11, 2009
CommitterFix things so that you can still do "select foo()" where foo is a SQL function returning setof record. This used to work, more or less accidentally, but I had broken it while extending the code to allow materialize-mode functions to be called in select lists. Add a regression test case so it doesn't get broken again. Per gripe from Greg Davidson.
0c19f058
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 11, 2009
CommitterSomebody seems to have thought they could get away without checking for rsinfo->expectedDesc == NULL in deflist_to_tuplestore(), but that doesn't look very safe to me. Noted in passing while studying problem report from Greg Davidson.
772a074d
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 11, 2009
CommitterFix ill-advised whitespace prettification, per buildfarm.
14ba9fde
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 10, 2009
CommitterProperly mark pg_freespace() function as strict. Also update uninstall script to match reality.
15a3fe6d
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 10, 2009
CommitterSupport Kerberos on platforms where libcom_err depends on OpenSSL, as reportedly is true on OpenBSD. Also support OpenBSD's spelling of -Wl,--as-needed. Per Simon Bertrang.
cb10e3af
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 10, 2009
CommitterAdd warning that xpath() doesn't work with non-UTF8 data.
14180f92
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 10, 2009
CommitterAdd a warning about possible strange behavior of volatile functions in cursors. This has always been the case, but given the lack of user complaints about it, I'm not going to bother back-patching this.
661b3e79
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 10, 2009
CommitterBackportedKeep rs_startblock the same during heap_rescan, so that a rescan of a SeqScan node starts from the same place as the first scan did. This avoids surprising behavior of scrollable and WITH HOLD cursors, as seen in Mark Kirkwood's bug report of yesterday.
61dd4185
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+17 more
No linked threadJun 10, 2009
CommitterBackportedFix cash_in() to behave properly in locales where frac_digits is zero, eg Japan. Report and fix by Itagaki Takahiro. Also fix CASHDEBUG printout format for branches with 64-bit money type, and some minor comment cleanup.
2ef8c1ac
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+21 more
No linked threadJun 10, 2009
CommitterMake handling of INTERVAL DAY TO MINUTE and INTERVAL DAY TO SECOND input more consistent with other cases, by having an unlabeled integer field be treated as a number of minutes or seconds respectively. These cases are outside the spec (which insists on full "dd hh:mm" or "dd hh:mm:ss" input respectively), so it's not much help to us in deciding what to do. But with this change, it's uniformly the case that an unlabeled integer will be considered as being a number of the interval's rightmost field. The change also takes us back to the 8.3 behavior of throwing error for certain ambiguous inputs such as INTERVAL '1 2' DAY TO MINUTE. Per recent discussion.
5cca35a6
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 10, 2009
CommitterBackportedEnsure xmlFree(NULL) is a no-op instead of a core dump. Per report from Sergey Burladyan, there are at least some dank corners of libxml2 that assume this behavior, even though their published documentation suggests they shouldn't.
0dcc73fe
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+17 more
No linked threadJun 10, 2009
CommitterMark internal_in as not strict, so that the construct "null::internal" will throw an error, rather than possibly allowing someone to synthesize a manual call to an internal-accepting function. As of CVS HEAD and existing releases, all such functions are either STRICT or careful about null inputs, so there is no current security issue here. But it seems like a good idea to lock this down to protect against future mistakes.
e343eaaf
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 09, 2009
CommitterSwitch order of tests to avoid possible Assert failure for "array_agg_finalfn(null)". We should modify pg_proc entries to prevent this query from being accepted, but let's just make the function itself secure too. Per my note of today.
59fb29ca
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 09, 2009
CommitterRestore dblink_current_query() to being a C-language function, so as to not create an ABI break between 8.3 and 8.4. It is still just a wrapper around the built-in current_query() function, but at a different implementation level. Per my proposal.
f3e122fc
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 09, 2009
CommitterFix failure to double-quote function argument names when needed, in pg_get_function_arguments() and related functions. Per report from Andreas Nolte.
adaf6013
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 09, 2009
CommitterFix contrib/pageinspect to not create an ABI breakage between 8.3 and 8.4. The original implementation of the 3-argument form of get_raw_page() risked core dumps if the 8.3 SQL function definition was mistakenly used with the 8.4 module, which is entirely likely after a dump-and-reload upgrade. To protect 8.4 beta testers against upgrade problems, add a check on PG_NARGS.
a1fd650d
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 08, 2009
CommitterBe a bit more verbose about the effects of string literal processing changes in plpgsql. Per bug #4843.
506183e4
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 08, 2009
CommitterRevert my patch of 2009-04-04 that removed contrib/intarray's definitions of the <@ and @> operators. These are not in fact equivalent to the built-in anyarray operators of the same names, because they have different behavior for empty arrays, namely they don't think empty arrays are contained in anything. That is mathematically wrong, no doubt, but until we can persuade GIN indexes to implement the mathematical definition we should probably not change this. Another reason for not changing it now is that we can't yet ensure the opclasses will be updated correctly in a dump-and-reload upgrade. Per recent discussions.
156475a5
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 07, 2009
CommitterImprove the IndexVacuumInfo/IndexBulkDeleteResult API to allow somewhat sane behavior in cases where we don't know the heap tuple count accurately; in particular partial vacuum, but this also makes the API a bit more useful for ANALYZE. This patch adds "estimated_count" flags to both structs so that an approximate count can be flagged as such, and adjusts the logic so that approximate counts are not used for updating pg_class.reltuples.
32ea2363
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 06, 2009
CommitterMove variable declaration to avoid 'unused variable' warning when the ifdef doesn't trigger. Not worth back-patching. Per buildfarm reports.
af98bb2a
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 06, 2009
CommitterFix a serious bug introduced into GIN in 8.4: now that MergeItemPointers() is supposed to remove duplicate heap TIDs, we have to be sure to reduce the tuple size and posting-item count accordingly in addItemPointersToTuple(). Failing to do so resulted in the effective injection of garbage TIDs into the index contents, ie, whatever happened to be in the memory palloc'd for the new tuple. I'm not sure that this fully explains the index corruption reported by Tatsuo Ishii, but the test case I'm using no longer fails.
356eea24
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 06, 2009
CommitterBackportedGIN's ItemPointerIsMin, ItemPointerIsMax, and ItemPointerIsLossyPage macros should use GinItemPointerGetBlockNumber/GinItemPointerGetOffsetNumber, not ItemPointerGetBlockNumber/ItemPointerGetOffsetNumber, because the latter will Assert() on ip_posid == 0, ie a "Min" pointer. (Thus, ItemPointerIsMin has never worked at all, but it seems unused at present.) I'm not certain that the case can occur in normal functioning, but it's blowing up on me while investigating Tatsuo-san's data corruption problem. In any case it seems like a problem waiting to bite someone.
52f0fc70
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+18 more
No linked threadJun 05, 2009
CommitterTrivial code style cleanup around a couple of ngettext calls.
0d547819
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 04, 2009
CommitterRemove a couple of debugging messages that have been #ifdef'd out for ages. Seems silly to ask translators to expend work on these, especially in pluralized variants.
20d4005c
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 04, 2009
CommitterImprove the recently-added support for properly pluralized error messages by extending the ereport() API to cater for pluralization directly. This is better than the original method of calling ngettext outside the elog.c code because (1) it avoids double translation, which wastes cycles and in the worst case could give a wrong result; and (2) it avoids having to use a different coding method in PL code than in the core backend. The client-side uses of ngettext are not touched since neither of these concerns is very pressing in the client environment. Per my proposal of yesterday.
76d4abf2
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 04, 2009
CommitterClean up ecpg's use of mmerror(): const-ify the format argument, add an __attribute__() marker so that gcc can validate the format string against the actual arguments, get rid of overcomplicated and unsafe usage in base_yyerror().
b5c838e1
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 03, 2009
CommitterFix tsquerysel() to not fail on an empty TSQuery. Per report from Tatsuo Ishii.
a734979e
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 03, 2009
CommitterChange rather bizarre code ordering in get_id(). This isn't strictly cosmetic --- I'm wondering if geteuid could have side effects on errno, thus possibly resulting in a misleading error message after failure of getpwuid.
a7a7f5ca
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 03, 2009
CommitterImprove comment about 'if (1)' hack in copy.c macros.
e5507631
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 03, 2009
CommitterRemove the old advice to keep from_collapse_limit less than geqo_threshold, instead just pointing out that a larger value may trigger use of GEQO. Per Robert Haas.
ade91586
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 02, 2009
CommitterChange AdjustIntervalForTypmod to not discard higher-order field values on the grounds that they don't fit into the specified interval qualifier (typmod). This behavior, while of long standing, is clearly wrong per spec --- for example the value INTERVAL '999' SECOND means 999 seconds and should not be reduced to less than 60 seconds.
bac2ad38
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 01, 2009
CommitterFix DecodeInterval to report an error for multiple occurrences of DAY, WEEK, YEAR, DECADE, CENTURY, or MILLENIUM fields, just as it always has done for other types of fields. The previous behavior seems to have been a hack to avoid defining bit-positions for all these field types in DTK_M() masks, rather than something that was really considered to be desired behavior. But there is room in the masks for these, and we really need to tighten up at least the behavior of DAY and YEAR fields to avoid unexpected behavior associated with the 8.4 changes to interpret ambiguous fields based on the interval qualifier (typmod) value. Per my example and proposed patch.
b3b89fd1
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadJun 01, 2009
CommitterUpdate obsolete comment in index_drop(). When the comment was written, queries frequently took no lock at all on individual indexes. That's not true any more, but we still need lock on the parent table to make it safe to use cached lists of index OIDs.
5377ccbe
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 31, 2009
CommitterImprove release note explanation of the change in libpq's handling of default usernames versus Kerberos tickets. Per confusion about what bug #4824 was really about.
ee3980eb
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 27, 2009
CommitterIgnore RECHECK in CREATE OPERATOR CLASS, just throwing a NOTICE, instead of throwing an error as 8.4 had been doing. The error interfered with porting old database definitions (particularly for pg_migrator) without really buying any safety. Per bug #4817 and subsequent discussion.
6ec07531
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 27, 2009
CommitterImprove documentation about function volatility: mention the snapshot visibility effects in a couple of places where people are likely to look for it. Per discussion of recent question from Karl Nack.
253ff58a
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 27, 2009
CommitterAllow the second argument of pg_get_expr() to be just zero when deparsing an expression that's not supposed to contain variables. Per discussion with Gevik Babakhani, this eliminates the need for an ugly kluge (namely, specifying some unrelated relation name). Remove one such kluge from pg_dump.
48938ab5
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 26, 2009
CommitterRemove the useless and rather inconsistent return values of EncodeDateOnly, EncodeTimeOnly, EncodeDateTime, EncodeInterval. These don't have any good reason to fail, and their callers were mostly not checking anyway.
99bf3282
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 26, 2009
CommitterRemove unused declarations of EncodeTimeOnly and DecodeTimeOnly.
8af641ac
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 26, 2009
CommitterAdd range checks to time_recv() and timetz_recv(), to prevent binary input of time values that would not be accepted via textual input. Per gripe from Andrew McNamara.
dd96d13a
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 26, 2009
CommitterUse more-portable coding for the check on handing out the last available relopt_kind value in add_reloption_kind(). Per Zdenek Kotala.
c3707a4f
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 24, 2009
CommitterBackportedFix LIKE's special-case code for % followed by _. I'm not entirely sure that this case is worth a special code path, but a special code path that gets the boundary condition wrong is definitely no good. Per bug #4821 from Andrew Gierth.
fc2660fc
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+17 more
No linked threadMay 24, 2009
CommitterFix bug #4814 (wrong subscript in consistent-function call), and add some minimal regression test coverage for matchPartialInPendingList().
7280fab7
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 19, 2009
CommitterMake pwdfMatchesString() a little more careful about matching * fields.
2c39ab12
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 18, 2009
CommitterMinor copy-editing for description of partial-table vacuuming.
606f5d17
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 16, 2009
CommitterMinor editorialization on storage.sgml's documentation of free space maps.
03a5ff0d
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 16, 2009
CommitterMake an editorial pass over the Client Authentication material.
2d6e2323
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 16, 2009
CommitterImprove comments in pg_ident.conf.sample.
36260432
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 16, 2009
CommitterFix all the server-side SIGQUIT handlers (grumble ... why so many identical copies?) to ensure they really don't run proc_exit/shmem_exit callbacks, as was intended. I broke this behavior recently by installing atexit callbacks without thinking about the one case where we truly don't want to run those callback functions. Noted in an example from Dave Page.
4616d57d
master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more
No linked threadMay 15, 2009
CommitterInclude recovery_end_command in recovery.conf.sample. Per suggestion of Jaime Casanova.
bfab3f19
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 14, 2009
CommitterUpdate release notes to today.
1b6f549d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 14, 2009
CommitterClean up overly hasty docs patch for pg_standby.
a6df0535
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 14, 2009
CommitterImprove a couple of comments.
284e12c3
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 14, 2009
CommitterAdd checks to DefineQueryRewrite() to prohibit attaching rules to relations that aren't RELKIND_RELATION or RELKIND_VIEW, and to disallow attaching rules to system relations unless allowSystemTableMods is on. This is to make the behavior of CREATE RULE more like CREATE TRIGGER, which disallows the comparable cases. Per discussion of bug #4808.
a7107136
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 13, 2009
CommitterRemove a useless backslash from a pattern-match example. Michael Toews
19586031
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 13, 2009
CommitterRewrite xml.c's memory management (yet again). Give up on the idea of redirecting libxml's allocations into a Postgres context. Instead, just let it use malloc directly, and add PG_TRY blocks as needed to be sure we release libxml data structures in error recovery code paths. This is ugly but seems much more likely to play nicely with third-party uses of libxml, as seen in recent trouble reports about using Perl XML facilities in pl/perl and bug #4774 about contrib/xml2.
23543c73
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 13, 2009
CommitterUpdate release notes for changes through 2009-05-11. Also some minor copy-editing and reordering of items.
db6e0b2d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterBackportedFix intratransaction memory leaks in xml_recv, xmlconcat, xmlroot, and xml_parse, all arising from the same sloppy usage of parse_xml_decl. The original coding had that function returning its output string parameters in the libxml context, which is long-lived, and all but one of its callers neglected to free the strings afterwards. The easiest and most bulletproof fix is to return the strings in the local palloc context instead, since that's short-lived. This was only costing a dozen or two bytes per function call, but that adds up fast if the function is called repeatedly ...
546454f8
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+17 more
No linked threadMay 12, 2009
CommitterFix LOCK TABLE to eliminate the race condition that could make it give weird errors when tables are concurrently dropped. To do this we must take lock on each relation before we check its privileges. The old code was trying to do that the other way around, which is a bit pointless when there are lots of other commands that lock relations before checking privileges. I did keep it checking each relation's privilege before locking the next relation, which is a detail that ALTER TABLE isn't too picky about.
f23bdda3
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterModify find_inheritance_children() and find_all_inheritors() to add the ability to lock relations as they scan pg_inherits, and to ignore any relations that have disappeared by the time we get lock on them. This makes uses of these functions safe against concurrent DROP operations on child tables: we will effectively ignore any just-dropped child, rather than possibly throwing an error as in recent bug report from Thomas Johansson (and similar past complaints). The behavior should not change otherwise, since the code was acquiring those same locks anyway, just a little bit later.
d4a363cd
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterDo some minor code refactoring in preparation for changing the APIs of find_inheritance_children() and find_all_inheritors(). I got annoyed that these are buried inside the planner but mostly used elsewhere. So, create a new file catalog/pg_inherits.c and put them there, along with a couple of other functions that search pg_inherits.
0ada5591
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterBackportedPartially revert my patch of 2008-11-12 that installed a limit on the number of AND/OR clause branches that predtest.c would attempt to deal with. As noted in bug #4721, that change disabled proof attempts for sizes of problems that people are actually expecting it to work for. The original complaint it was trying to solve was O(N^2) behavior for long IN-lists, so let's try applying the limit to just ScalarArrayOpExprs rather than everything. Another case of "foolish consistency" I fear.
6480c143
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+18 more
No linked threadMay 11, 2009
CommitterMake a marginal performance improvement in predicate_implied_by and predicate_refuted_by: if either top-level input is a single-element list, reduce it to its lone member before proceeding. This avoids a useless level of AND-recursion within the recursive proof routines. It's worth doing because, for example, if the clause is a 100-element list and the predicate is a 1-element list then we'd otherwise strip the predicate's list structure 100 times as we iterate through the clause. It's only needed at top level because there won't be any trivial ANDs below that --- this situation is an artifact of the decision to represent even single-item conditions as Lists in the "implicit AND" format, and that format is only used at the top level of any predicate or restriction condition.
723476c7
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 10, 2009
CommitterAdjust pg_dumpall so that it emits ENCODING, LC_COLLATE, and LC_CTYPE options in its CREATE DATABASE commands only for databases that have settings different from the installation defaults. This is a low-tech method of avoiding unnecessary platform dependencies in dump files. Eventually we ought to have a platform-independent way of specifying LC_COLLATE and LC_CTYPE, but that's not going to happen for 8.4, and this patch at least avoids the issue for people who aren't setting up per-database locales. ENCODING doesn't have the platform dependency problem, but it seems consistent to make it act the same as the locale settings.
4db44b43
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 10, 2009
CommitterFix cost_nestloop and cost_hashjoin to model the behavior of semi and anti joins a bit better, ie, understand the differing cost functions for matched and unmatched outer tuples. There is more that could be done in cost_hashjoin but this already helps a great deal. Per discussions with Robert Haas.
8dcf1841
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 09, 2009
CommitterAdd an option to AlterTableCreateToastTable() to allow its caller to force a toast table to be built, even if the sum-of-column-widths calculation indicates one isn't needed. This is needed by pg_migrator because if the old table has a toast table, we have to migrate over the toast table since it might contain some live data, even though subsequent column drops could mean that no recently-added rows could require toasting.
1e06ed1a
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 07, 2009
CommitterChange pgbench to use the table names pgbench_accounts, pgbench_branches, pgbench_history, and pgbench_tellers, rather than just accounts, branches, history, and tellers. This is to prevent accidental conflicts with real application tables, as has been reported to happen at least once. Also remove the automatic "SET search_path = public" that it did at startup, as this seems to restrict testing flexibility without actually buying much. Per proposal by Joshua Drake and ensuing discussion.
48caf91b
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 07, 2009
CommitterOoops ... make_outerjoininfo wasn't actually enforcing the join order restrictions specified for semijoins in optimizer/README, to wit that you can't reassociate outer joins into or out of the RHS of a semijoin. Per report from Heikki.
fdd48b18
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 07, 2009
CommitterTweak distribute_qual_to_rels so that when we decide a pseudoconstant qual can be pushed to the top of the join tree, we update both the relids and qualscope variables to keep them in sync. This prevents a possible later failure of an Assert clause, and affects nothing else since qualscope isn't used later except for that Assert. At the moment the Assert shouldn't be reachable when we've pushed the qual up; but this is cheap insurance, and it's more sensible anyway in terms of the overall logic of the routine. Per analysis of a bug report from Stefan Huehner.
1f36fece
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 06, 2009
CommitterModify CREATE DATABASE to enforce that the source database's encoding setting must be used for the new database, except when copying from template0. This is the same rule that we now enforce for locale settings, and it has the same motivation: databases other than template0 might contain data that would be invalid according to a different setting. This represents another step in a continuing process of locking down ways in which encoding violations could occur inside the backend. Per discussion of a few days ago.
421c66b7
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 06, 2009
CommitterFix ecpg tests for change that disallowed Unicode literals unless standard_conforming_strings is on.
ab4e386a
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 06, 2009
CommitterTweak a comment to agree a bit better with the new dispensation that locales are database-wide, not server-wide.
d7ee3355
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterMinor improvement: avoid assuming that GetLastError value cannot be affected by CloseHandle() or Sleep().
2fe0f296
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterMake new complaint about unsafe Unicode literals include an error location. Every other ereport in scan.l has one, this should too.
1bbbcb04
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterInstall an atexit(2) callback that ensures that proc_exit's cleanup processing will still be performed if something in a backend process calls exit() directly, instead of going through proc_exit() as we prefer. This is a second response to the issue that we might load third-party code that doesn't know it should not call exit(). Such a call will now cause a reasonably graceful backend shutdown, if possible. (Of course, if the reason for the exit() call is out-of-memory or some such, we might not be able to recover, but at least we will try.)
249a899f
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterInstall a "dead man switch" to allow the postmaster to detect cases where a backend has done exit(0) or exit(1) without having disengaged itself from shared memory. We are at risk for this whenever third-party code is loaded into a backend, since such code might not know it's supposed to go through proc_exit() instead. Also, it is reported that under Windows there are ways to externally kill a process that cause the status code returned to the postmaster to be indistinguishable from a voluntary exit (thank you, Microsoft). If this does happen then the system is probably hosed --- for instance, the dead session might still be holding locks. So the best recovery method is to treat this like a backend crash.
969d7cd4
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterInsert CHECK_FOR_INTERRUPTS() calls into btree and hash index scans at the points where we step right or left to the next page. This should ensure reasonable response time to a query cancel request during an unsuccessful index scan, as seen in recent gripe from Marc Cousin. It's a bit trickier than it might seem at first glance, because CHECK_FOR_INTERRUPTS() is a no-op if executed while holding a buffer lock. So we have to do it just at the point where we've dropped one page lock and not yet acquired the next.
8f348112
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterUpdate comment for _bt_relandgetbuf.
2aa5ca95
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterAvoid integer overflow in the loop that extracts histogram entries from ANALYZE's total sample. The original coding is at risk of overflow for statistics targets exceeding about 2675; this was not a problem before 8.4 but it is now. Per bug #4793 from Dennis Noordsij.
616bceb8
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterCode review for \df rewrite: fix assorted bugs, make type and volatility columns localizable.
9f4e9bfa
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 05, 2009
CommitterFix missed usage of DLNewElem()
4071e0c2
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 04, 2009
CommitterBackportedFix pg_resetxlog to remove archive status files along with WAL segment files.
d85c6883
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+19 more
No linked threadMay 03, 2009
CommitterFix mis-description of XML Schema functions, per discussion.
c52963ac
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 03, 2009
CommitterFix unintelligible description created by removing only part of a parenthetical remark.
71907f7d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 03, 2009
CommitterFix assign_pgstat_temp_directory() to ensure the directory path is canonicalized. Avoid the need to elog(FATAL) on out-of-memory.
04f24038
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 03, 2009
CommitterFix already-obsolete hint message ... sslverify parameter is no more.
ac73ced7
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 03, 2009
CommitterInstall some simple defenses in postmaster startup to help ensure a useful error message if the installation directory layout is messed up (or at least, something more useful than the behavior exhibited in bug #4787). During postmaster startup, check that get_pkglib_path resolves as a readable directory; and if ParseTzFile() fails to open the expected timezone abbreviation file, check the possibility that the directory is missing rather than just the specified file. In case of either failure, issue a hint suggesting that the installation is broken. These two checks cover the lib/ and share/ trees of a full installation, which should take care of most scenarios where a sysadmin decides to get cute.
d90984f4
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 02, 2009
CommitterWe don't need major_release_split any more.
a16e007c
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 02, 2009
CommitterBackportedSplit the release notes into a separate file for each (active) major branch, as per my recent proposal. release.sgml itself is now just a stub that should change rarely; ideally, only once per major release to add a new include line. Most editing work will occur in the release-N.N.sgml files. To update a back branch for a minor release, just copy the appropriate release-N.N.sgml file(s) into the back branch.
008fad58
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+21 more
No linked threadMay 02, 2009
CommitterFix plpgsql's EXIT so that an EXIT without a label only matches a loop, never a BEGIN block. This is required for Oracle compatibility and is also plainly stated to be the behavior by our original documentation (up until 8.1, in which the docs were adjusted to match the code's behavior; but actually the old docs said the correct thing and the code was wrong).
c91bf01b
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 02, 2009
CommitterFix a couple of cases where the plpgsql grammar looked for T_WORD and failed to consider the possibility that it would get T_SCALAR, T_RECORD, or T_ROW instead because the word happens to match a plpgsql variable name. In particular, give "duplicate declaration" rather than generic "syntax error" if the same identifier is declared twice in the same block, as per my recent complaint. Also behave more sanely when decl_aliasitem or proc_condition or opt_lblname is coincidentally not T_WORD. Refactor the related productions a bit to reduce duplication.
ccc6759d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 01, 2009
CommitterBackportedWhen checking for datetime field overflow, we should allow a fractional-second part that rounds up to exactly 1.0 second. The previous coding rejected input like "00:12:57.9999999999999999999999999999", with the exact number of nines needed to cause failure varying depending on float-timestamp option and possibly on platform. Obviously this should round up to the next integral second, if we don't have enough precision to distinguish the value from that. Per bug #4789 from Robert Kruus.
fe1b07a6
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+21 more
No linked threadMay 01, 2009
CommitterImprove pull_up_subqueries logic so that it doesn't insert unnecessary PlaceHolderVar nodes in join quals appearing in or below the lowest outer join that could null the subquery being pulled up. This improves the planner's ability to recognize constant join quals, and probably helps with detection of common sort keys (equivalence classes) as well.
c59d8dd4
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 28, 2009
CommitterSome more work on the 8.4 release notes. Document a few changes that Bruce apparently found uninteresting, and do minor wordsmithing on a number of the existing entries.
23a9ac61
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 26, 2009
CommitterRemove Windows-specific definition of S_ISDIR(). This should not be here; if there are any Windows configurations where port/win32.h fails to provide the macro, it should be fixed in the latter file not here.
1d3a1613
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 26, 2009
CommitterTypo fix.
f5c572a8
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 26, 2009
CommitterUpdate citext expected output to exactly match the real output, rather than having some whitespace discrepancy. Although whitespace is supposed to be ignored in our regression tests, for some reason buildfarm member spoonbill doesn't like it.
5efb84f2
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 26, 2009
CommitterBackportedFix the handling of sub-SELECTs appearing in the arguments of an outer-level aggregate function. By definition, such a sub-SELECT cannot reference any variables of query levels between itself and the aggregate's semantic level (else the aggregate would've been assigned to that lower level instead). So the correct, most efficient implementation is to treat the sub-SELECT as being a sub-select of that outer query level, not the level the aggregate syntactically appears in. Not doing so also confuses the heck out of our parameter-passing logic, as illustrated in bug report from Daniel Grace.
20a3ddbb
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+21 more
No linked threadApr 25, 2009
CommitterFix some more 'variable may be used uninitialized' warnings from gcc 4.4.
096a30b5
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 24, 2009
CommitterSuppress some 'variable may be used uninitialized' warnings from gcc 4.4.
9563afaf
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 23, 2009
CommitterDon't use the result of strcmp as if it were a boolean. A service of your local coding style police.
b9e9775e
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 23, 2009
CommitterChange the default value of max_prepared_transactions to zero, and add documentation warnings against setting it nonzero unless active use of prepared transactions is intended and a suitable transaction manager has been installed. This should help to prevent the type of scenario we've seen several times now where a prepared transaction is forgotten and eventually causes severe maintenance problems (or even anti-wraparound shutdown).
8d4f2ecd
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 23, 2009
CommitterRemove the long-obsolete homebrew dl*() functions for AIX, in favor of just using the system functions all the time. (These files are now just copies of the osf.* files.) The homebrew functions were not getting used anyway on AIX versions that have dlopen(), that is 4.3 and up, so they are not needed on any AIX that is even remotely supported by the vendor anymore. We'd have probably left them here anyway, except some questions were raised about the copyright.
f2cc453d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 21, 2009
CommitterFix obsolete cross-reference (this file isn't called alpha.c anymore)
fea16882
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 21, 2009
CommitterAssorted portability fixes for Borland C, from Pavel Golub.
ce53791b
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 19, 2009
CommitterRethink the idea of having plpgsql depend on parser/gram.h. Aside from the fact that this is breaking the MSVC build, it's probably not really a good idea to expand the dependencies of gram.h any further than the core parser; for instance the value of SCONST might depend on which bison version you'd built with. Better to expose an additional call point in parser.c, so move what I had put into pl_funcs.c into parser.c. Also PGDLLIMPORT'ify the reference to standard_conforming_strings, per buildfarm results.
85128e5d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 19, 2009
CommitterFix de-escaping checks so that we will reject \000 as well as other invalidly encoded sequences. Per discussion of a couple of days ago.
22c92226
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 19, 2009
CommitterBackportedFix textsearch documentation examples to not recommend concatenating separate fields without putting a space between. Per gripe from Rick Schumeyer.
c1c40e58
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+17 more
No linked threadApr 19, 2009
CommitterFix estimate_num_groups() to not fail on PlaceHolderVars, per report from Stefan Kaltenbrunner. The most reasonable behavior (at least for the near term) seems to be to ignore the PlaceHolderVar and examine its argument instead. In support of this, change the API of pull_var_clause() to allow callers to request recursion into PlaceHolderVars. Currently estimate_num_groups() is the only customer for that behavior, but where there's one there may be others.
1d97c19a
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 19, 2009
CommitterRevise plpgsql's scanner to process comments and string literals in a way more nearly matching the core SQL scanner. The user-visible effects are:
3a624e92
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 19, 2009
CommitterMention as a potential incompatibility the fact that SELECT DISTINCT, UNION, etc are no longer guaranteed to produce sorted output; per gripe from Ian Barwick. Also improve the release note entries about to_timestamp(), per Brendan Jurd.
7f2f798b
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 19, 2009
CommitterBump disable_cost up from 1e8 to 1e10, per gripe from Kris Jurka.
b24c02ff
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 17, 2009
CommitterBackportedFix planner to restore its previous level of intelligence about pushing constants through full joins, as in
d7a6a04d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+17 more
No linked threadApr 16, 2009
CommitterFix broken {xufailed} production that made HEAD fail on select u&42 from table-with-a-u-column; Also fix missing SET_YYLLOC() in the {dolqfailed} production that I suppose this was based on. The latter is a pre-existing bug, but the only effect is to misplace the error cursor by one token, so probably not worth backpatching.
6a68f7fd
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 14, 2009
CommitterDo some copy-editing on description of ts_headline().
bda9dc7e
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 14, 2009
CommitterMake a copy-editing pass over the 8.4 release notes.
15aa0252
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 13, 2009
CommitterFix pg_dumpall so that when --clean is specified, it drops roles and tablespaces in an order that has some chance of working. Per a complaint from Kevin Bailey.
e1e17e2a
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 11, 2009
CommitterAdd cross-references from the DECLARE and FETCH reference pages to the plpgsql documentation about cursors. Per a suggestion from Matthew Wakeling.
843c6546
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadApr 10, 2009
CommitterUpdate release notes through yesterday; some minor wordsmithing.
6c34acce
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 09, 2009
CommitterBackportedUpdate time zone data files to tzdata release 2009e: DST law changes in Argentina/San_Luis, Cuba, Jordan (historical correction only), Morocco, Palestine, Syria, Tunisia.
6e4cd594
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more
No linked threadApr 09, 2009
CommitterUpdate GIN limitations documentation to match current reality.
b6e42bdd
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 09, 2009
CommitterRemove SQL-compatibility function cardinality(). It is not exactly clear how this ought to behave for multi-dimensional arrays. Per discussion, not having it at all seems better than having it with what might prove to be the wrong behavior. We can always add it later when we have consensus on the correct behavior.
06e27572
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 09, 2009
CommitterTreat EOF like \n for line-counting purposes in ParseConfigFile, per bug #4752. Fujii Masao
b060c878
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 09, 2009
CommitterFix the plpgsql memory leak exhibited in bug #4677. That leak was introduced by my patch of 2007-01-28 to use per-subtransaction ExprContexts/EStates: since we re-prepared any expression tree when the current subtransaction ID changed, we'd accumulate more and more leaked expression state trees in the outermost subtransaction if the same function was executed at multiple levels of subtransaction nesting. To fix, go back to the previous scheme where there was only one EState per transaction for simple plpgsql expressions. We really only need an ExprContext per subtransaction, not a whole EState, so it's possible to keep prepared expression state trees in the one EState throughout the transaction. This should be more efficient as well as not leaking memory for cases involving lots of subtransactions.
03cd7571
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 09, 2009
CommitterRemove psql's ancient hack that suppressed functions taking or returning cstring from the output of \df. Now that the default behavior is to exclude all system functions, the de-cluttering rationale for this behavior seems pretty weak; and it was always quite confusing/unhelpful if you were actually looking for I/O functions. (Not to mention if you were looking for encoding converters or other cases that might take or return cstring.)
4703250a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 08, 2009
CommitterAllow leading and trailing spaces around NaN in numeric_in.
e0daf7fc
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 08, 2009
CommitterBackportedFix contrib/pg_freespacemap's underestimate of the number of pages it could find in the FSM. Per report from Dimitri Fontaine and Andrew Gierth.
03baf4dd
REL8_3_STABLE8.3.8REL8_2_STABLE8.2.14
No linked threadApr 07, 2009
CommitterRemove useless (leftover?) extern declaration.
b89ab7e0
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 07, 2009
CommitterBackportedDefend against non-ASCII letters in fuzzystrmatch code. The functions still don't behave very sanely for multibyte encodings, but at least they won't be indexing off the ends of static arrays.
bb6bbc32
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadApr 07, 2009
CommitterAdd an optional parameter to pg_start_backup() that specifies whether to do the checkpoint in immediate or lazy mode. This is to address complaints that pg_start_backup() takes a long time even when there's no need to minimize its I/O consumption.
38706095
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 07, 2009
CommitterDocument the fact that fuzzystrmatch doesn't work in multibyte encodings.
e7c11056
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 06, 2009
CommitterCorrect keywords table for status of COLLATE vs LC_COLLATE.
25a76c31
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 06, 2009
CommitterChange cardinality() into a C-code function, instead of a SQL-language alias for array_length(v,1). The efficiency gain here is doubtless negligible --- what I'm interested in is making sure that if we have second thoughts about the definition, we will not have to force a post-beta initdb to change the implementation.
f2110a75
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 05, 2009
CommitterMake ExecInitExpr build the list of SubPlans found in a plan tree in order of discovery, rather than reverse order. This doesn't matter functionally (I suppose the previous coding dates from the time when lcons was markedly cheaper than lappend). However now that EXPLAIN is labeling subplans with IDs that are based on order of creation, this may help produce a slightly less surprising printout.
eb4c723e
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 05, 2009
CommitterChange EXPLAIN output so that subplans and initplans (particularly CTEs) are individually labeled, rather than just grouped under an "InitPlan" or "SubPlan" heading. This in turn makes it possible for decompilation of a subplan reference to usefully identify which subplan it's referencing. I also made InitPlans identify which parameter symbol(s) they compute, so that references to those parameters elsewhere in the plan tree can be connected to the initplan that will be executed. Per a gripe from Robert Haas about EXPLAIN output of a WITH query being inadequate, plus some longstanding pet peeves of my own.
fbcce080
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 05, 2009
CommitterRemove a boatload of useless definitions of 'int optreset'. If we are using our own ports of getopt or getopt_long, those will define the variable for themselves; and if not, we don't need these, because we never touch the variable anyway.
27fbfd39
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 05, 2009
CommitterI had always wondered why pg_config.h.win32 claimed that Windows provides optreset. Current mastodon results prove that in fact it does not; it was only because getopt.c defined the variable anyway that things failed to fall over.
2227e2f1
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 05, 2009
CommitterRemove contrib/intarray's definitions of the <@ and @> operators, so that they don't cause confusion with the built-in anyarray versions of those operators. Adjust the module's index opclasses to support the built-in operators in place of the private ones.
65e758a4
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 05, 2009
CommitterHmm, baiji thinks we need explicit 'extern' here.
eb3a10b0
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterMake an attempt at fixing our current Solaris 11 breakage: add a configure probe for opterr (exactly like the one for optreset) and have getopt.c define the variables only if configure doesn't find them in libc.
1d26226d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterRemove the recently added node types ReloptElem and OptionDefElem in favor of adding optional namespace and action fields to DefElem. Having three node types that do essentially the same thing bloats the code and leads to errors of confusion, such as in yesterday's bug report from Khee Chin.
090173a3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterA session that does not have any live snapshots does not have to be waited for when we are waiting for old snapshots to go away during a concurrent index build. In particular, this rule lets us avoid waiting for idle-in-transaction sessions.
c973051a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterBackportedRewrite interval_hash() so that the hashcodes are equal for values that interval_eq() considers equal. I'm not sure how that fundamental requirement escaped us through multiple revisions of this hash function, but there it is; it's been wrong since interval_hash was first written for PG 7.1. Per bug #4748 from Roman Kononov.
1c2d408c
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadApr 04, 2009
CommitterImprove obsolete comment.
591f2944
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterMake \dt \di and friends more consistent about the treatment of TOAST tables and indexes; to wit, never show either. (You can examine them with plain \d if you're really so inclined.)
81fc5df8
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterMinor wordsmithing on descriptions of some \d commands.
dbca713c
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 04, 2009
CommitterAdd missing help output for \ef option. Andrew Gierth
5b021741
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 03, 2009
CommitterBackportedUse (unsigned char) cast in argument of pg_tolower(). Maybe it works on Windows without that, but we shouldn't put bad examples where people might copy them. Also, reformat slightly to improve the odds that pgindent won't go nuts on this.
5d7f6993
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadApr 03, 2009
CommitterAdd a comment documenting the question of whether PrefetchBuffer should try to protect an already-existing buffer from being evicted. This was left as an open issue when the posix_fadvise patch was committed. I'm not sure there's any evidence to justify more work in this area, but we should have some record about it in the source code.
1b2bb33a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 03, 2009
CommitterDefend against possible crash if a plpython function does not specify names for its arguments. Also add a regression test, since someone apparently changed every single plpython test case to use only named parameters; else we'd have noticed this sooner.
cd331e4b
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 03, 2009
CommitterRefactor ExecProject and associated routines so that fast-path code is used for simple Var targetlist entries all the time, even when there are other entries that are not simple Vars. Also, ensure that we prefetch attributes (with slot_getsomeattrs) for all Vars in the targetlist, even those buried within expressions. In combination these changes seem to significantly reduce the runtime for cases where tlists are mostly but not exclusively Vars. Per my proposal of yesterday.
85369f88
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 02, 2009
CommitterMinor code beautification/consolidation.
735cb969
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 02, 2009
CommitterFix SetClientEncoding() to maintain a cache of previously selected encoding conversion functions. This allows transaction rollback to revert to a previous client_encoding setting without doing fresh catalog lookups. I believe that this explains and fixes the recent report of "failed to commit client_encoding" failures.
c26ffb1e
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 02, 2009
CommitterBackportedFix GUC's reports of assign_hook failure to always include the parameter value we failed to assign, even in "can't happen" cases. Motivated by wondering what's going on in a recent trouble report where "failed to commit" did happen.
248891f0
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadApr 02, 2009
CommitterBackportedplpgsql's exec_simple_cast_value() mistakenly supposed that it could bypass casting effort whenever the input value was NULL. However this prevents application of not-null domain constraints in the cases that use this function, as illustrated in bug #4741. Since this function isn't meant for use in performance-critical paths anyway, this certainly seems like another case of "premature optimization is the root of all evil".
24a814f4
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadApr 02, 2009
CommitterBackportedImprove pg_dump's query for retrieving BLOB comments to be more efficient when there are many blobs and not so many comments. Tamas Vincze
bfd17f94
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadApr 01, 2009
CommitterIndex some array functions, per Mario Splivalo.
dff26735
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 01, 2009
CommitterRemove last references to the crypt auth method, per Andreas Scherbaum.
7cdfa488
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadApr 01, 2009
CommitterBackportedFix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read temporary tables of other sessions; that is unsafe because of the way our buffer management works. Per report from Stuart Bishop. This is redundant with the bufmgr.c checks in HEAD, but not at all redundant in the back branches.
c029a6a4
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadMar 31, 2009
CommitterModify the relcache to record the temp status of both local and nonlocal temp relations; this is no more expensive than before, now that we have pg_class.relistemp. Insert tests into bufmgr.c to prevent attempting to fetch pages from nonlocal temp relations. This provides a low-level defense against bugs-of-omission allowing temp pages to be loaded into shared buffers, as in the contrib/pgstattuple problem reported by Stuart Bishop. While at it, tweak a bunch of places to use new relcache tests (instead of expensive probes into pg_namespace) to detect local or nonlocal temp tables.
948d6ec9
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 31, 2009
CommitterAdd a "relistemp" boolean column to pg_class, which is true for temporary relations (including a temp table's indexes and toast table/index), and false for normal relations. For ease of checking, this commit just adds the column and fills it correctly --- revising the relation access machinery to use it will come separately.
df13324f
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 31, 2009
CommitterAdd PQinitOpenSSL() function to support applications that use libcrypto but not OpenSSL (or perhaps vice versa, if that's possible).
97503a52
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 31, 2009
CommitterFix window function plan generation to cope with volatile sort expressions. (Not clear how useful these really are, but failing is no good...) Per report from David Fetter and Robert Treat.
943337ee
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 30, 2009
CommitterBackportedFix an oversight in the support for storing/retrieving "minimal tuples" in TupleTableSlots. We have functions for retrieving a minimal tuple from a slot after storing a regular tuple in it, or vice versa; but these were implemented by converting the internal storage from one format to the other. The problem with that is it invalidates any pass-by-reference Datums that were already fetched from the slot, since they'll be pointing into the just-freed version of the tuple. The known problem cases involve fetching both a whole-row variable and a pass-by-reference value from a slot that is fed from a tuplestore or tuplesort object. The added regression tests illustrate some simple cases, but there may be other failure scenarios traceable to the same bug. Note that the added tests probably only fail on unpatched code if it's built with --enable-cassert; otherwise the bug leads to fetching from freed memory, which will not have been overwritten without additional conditions.
793d5662
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadMar 30, 2009
CommitterAdd documentation of the fact that dtrace probes evaluate their parameters even when not active. Explain how to prevent that with an ENABLED() check.
2938f8c4
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 28, 2009
CommitterOn Solaris, we should only force use of our own getopt(); it's okay to use the system's getopt_long(). The previous coding was the result of a sloppy discussion that failed to draw this distinction. The result was that PG programs don't handle options as users of that platform expect. Per gripe from Chuck McDevitt.
3da36407
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 27, 2009
CommitterAdd an errdetail explaining why we reject infinite dates and timestamps while converting to XML. Bernd Helmle
fc92450e
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 27, 2009
CommitterFix possible failures when a tuplestore switches from in-memory to on-disk mode while callers hold pointers to in-memory tuples. I reported this for the case of nodeWindowAgg's primary scan tuple, but inspection of the code shows that all of the calls in nodeWindowAgg and nodeCtescan are at risk. For the moment, fix it with a rather brute-force approach of copying whenever one of the at-risk callers requests a tuple. Later we might think of some sort of reference-count approach to reduce tuple copying.
25bf7f8b
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 27, 2009
CommitterTeach reindex_index() to clear pg_index.indcheckxmin when possible. Greg Stark, slightly modified by me.
a95307b6
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 27, 2009
CommitterBackportedMake pg_standby's maxretries option do what one would expect. Fujii Masao
c7662960
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadMar 26, 2009
CommitterFix a couple of places that still claimed LC_COLLATE and LC_CTYPE can't be changed after initdb.
845693f7
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 26, 2009
CommitterAdjust phrasing of complaints about multi-byte COPY delimiter strings. Per pgsql-hackers discussion of 2009-02-17.
b793e834
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 26, 2009
CommitterIf we expect a hash join to be performed in multiple batches, suppress "physical tlist" optimization on the outer relation (ie, force a projection step to occur in its scan). This avoids storing useless column values when the outer relation's tuples are written to temporary batch files.
f38fbf31
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 26, 2009
CommitterFix markup so that 'make HISTORY' works. A couple very minor editorial improvements.
04c779d3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 26, 2009
CommitterAdd btree_gin contrib module.
9151e1bb
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 25, 2009
CommitterAdjust the APIs for GIN opclass support functions to allow the extractQuery() method to pass extra data to the consistent() and comparePartial() methods. This is the core infrastructure needed to support the soon-to-appear contrib/btree_gin module. The APIs are still upward compatible with the definitions used in 8.3 and before, although *not* with the previous 8.4devel function definitions.
87b8db37
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 25, 2009
CommitterBackportedFix old thinko in pgp.h: the idea is to declare some named enum types, not global variables of anonymous enum types. This didn't actually hurt much because most linkers will just merge the duplicated definitions ... but some will complain. Per bug #4731 from Ceriel Jacobs.
050a78dd
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more
No linked threadMar 25, 2009
CommitterBackportedInstall a search tree depth limit in GIN bulk-insert operations, to prevent them from degrading badly when the input is sorted or nearly so. In this scenario the tree is unbalanced to the point of becoming a mere linked list, so insertions become O(N^2). The easiest and most safely back-patchable solution is to stop growing the tree sooner, ie limit the growth of N. We might later consider a rebalancing tree algorithm, but it's not clear that the benefit would be worth the cost and complexity. Per report from Sergey Burladyan and an earlier complaint from Heikki.
e5efda44
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadMar 24, 2009
CommitterFix stupid parenthesization mistake. Per bug #4728 from Bruce Toll.
fc022d72
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 24, 2009
CommitterImplement "fastupdate" support for GIN indexes, in which we try to accumulate multiple index entries in a holding area before adding them to the main index structure. This helps because bulk insert is (usually) significantly faster than retail insert for GIN.
ff301d6e
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 24, 2009
CommitterConst-ify the parse table passed to fillRelOptions. The previous coding meant it had to be built on-the-fly at each entry to default_reloptions.
10795649
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 23, 2009
CommitterMore fixes for 8.4 DTrace probes. Remove useless BUFFER_HIT/BUFFER_MISS probes --- the BUFFER_READ_DONE probe provides the same information and more besides. Expand the LOCK_WAIT_START/DONE probe arguments so that there's actually some chance of telling what is being waited for. Update and clean up the documentation.
471913a6
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 23, 2009
CommitterAdd isExtend to the parameters of the buffer_read_start and buffer_read_done DTrace probes, so that ordinary reads can be distinguished from relation extension operations. Move buffer_read_start probe to before the smgrnblocks() call that's needed in the isExtend case, since really that step should be charged as part of the time needed for the extension operation. (This makes it slightly harder to match the read_start with the associated read_done, since now you can't match them on blockNumber, but it should still be possible since isExtend operations on the same relation can never be interleaved.) Per recent discussion.
44023dc5
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 22, 2009
CommitterClean up pg_SSPI_error() coding a little bit: make the messages more consistent, translate where intended, const-ify declarations. Resolves a gripe from Alvaro as well as some stuff I didn't like.
727ffa1d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 22, 2009
CommitterRemove the -d and -D options of pg_dump and pg_dumpall. The functionality is still available, but you must now write the long equivalent --inserts or --column-inserts. This change is made to eliminate confusion with the use of -d to specify a database name in most other Postgres client programs. Original patch by Greg Mullane, modified per subsequent discussion.
5698f6b9
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 22, 2009
CommitterRemove the datetime keywords ABSTIME and RELTIME, which we'd been treating as noise words for the last twelve years, for compatibility with Berkeley-era output formatting of the special INVALID values for those datatypes. Considering that the datatypes themselves have been deprecated for awhile, this is taking backwards compatibility a little far. Per gripe from Josh Berkus.
0fd85d78
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 22, 2009
CommitterOptimize multi-batch hash joins when the outer relation has a nonuniform distribution, by creating a special fast path for the (first few) most common values of the outer relation. Tuples having hashvalues matching the MCVs are effectively forced to be in the first batch, so that we never write them out to the batch temp files.
596efd27
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 21, 2009
CommitterBe more clear about when to use gist__int_ops vs. gist__intbig_ops. Per suggestion from Ron Mayer.
52e6371e
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 18, 2009
CommitterAdd just-assigned CVE number to release notes for recent security issue.
029348cf
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 17, 2009
CommitterBackportedFix contrib/hstore to throw an error for keys or values that don't fit in its data structure, rather than silently truncating them. Andrew Gierth
f3a72bd4
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadMar 15, 2009
CommitterClean up the code for to_timestamp's conversion of year plus ISO day number to date, as per bug #4702 and subsequent discussion. In particular, make it work for years specified using AD/BC or CC fields, and fix the test for "no year specified" so that it doesn't trigger inappropriately for 1 BC (which it was doing even in code paths that had nothing to do with to_timestamp). I also did some minor code beautification in the non-ISO-day-number code path.
7a52a8f8
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 15, 2009
CommitterFix identify_locking_dependencies to reflect the fact that fix_dependencies previously repointed TABLE dependencies to TABLE DATA. Mea culpa.
0f80200a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 13, 2009
CommitterRestore previous ordering of BUFFER_FLUSH_START probe. I had wanted to make it include the time for the possible smgropen() call, but that results in a null pointer dereference :-(.
d287c9ef
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 13, 2009
CommitterBackportedUpdate back-branch release notes.
2dd9af8c
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadMar 12, 2009
CommitterBackportedFix core dump due to null-pointer dereference in to_char() when datetime format codes are misapplied to a numeric argument. (The code still produces a pretty bogus error message in such cases, but I'll settle for stopping the crash for now.) Per bug #4700 from Sergey Burladyan.
2cdec8b3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadMar 12, 2009
CommitterCode review for dtrace probes added (so far) to 8.4. Adjust placement of some bufmgr probes, take out redundant and memory-leak-inducing path arguments to smgr__md__read__done and smgr__md__write__done, fix bogus attempt to recalculate space used in sort__done, clean up formatting in places where I'm not sure pgindent will do a nice job by itself.
e04810e8
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 11, 2009
CommitterImprove match_special_index_operator() to recognize that LIKE with an exact-match pattern (no wildcard) can be index-optimized in some cases where a prefix-match pattern cannot; specifically, since the required index clause is simple equality, it works for regular text/varchar indexes even when the locale is not C. I'm not sure how often this case really comes up, but since it requires hardly any additional work to handle it, we might as well get it right. Motivated by a discussion on the JDBC list.
b4df57ff
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 11, 2009
CommitterMake SubPlan nodes carry the result's typmod as well as datatype OID. This is for consistency with the (relatively) recent addition of typmod to SubLink. An example of why it's a good idea is to be seen in the recent "failed to locate grouping columns" bug, which wouldn't have happened if a SubPlan exposed the same typmod info as the SubLink it was derived from.
dcf3902f
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 10, 2009
CommitterBackportedFix set_subquery_pathlist() to copy the RTE's subquery before it gets mangled by the planning process. This prevents the "failed to locate grouping columns" error recently reported by Dickson Guedes. That happens because planning replaces SubLinks by SubPlans in the subquery's targetlist, and exprTypmod() is smarter about the former than the latter, causing the apparent type of the subquery's output columns to change. This seems to be a deficiency we should fix in exprTypmod(), but that will be a much more invasive patch with possible side-effects elsewhere, so I'll do that only in HEAD.
4886dc92
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadMar 10, 2009
CommitterTeach the planner to support index access methods that only implement amgettuple or only implement amgetbitmap, instead of the former assumption that every AM supports both APIs. Extracted with minor editorialization from Teodor's fast-GIN-insert patch; whatever becomes of that, this seems like a simple and reasonable generalization of the index AM interface spec.
00ce7377
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 05, 2009
CommitterRemove documentation of log_restartpoints setting, which is obsoleted in favor of log_checkpoints. Fujii Masao
df8684c5
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 05, 2009
CommitterFix column privilege checking for cases where parent and child have different attribute numbering. Also, a parent whole-row reference should not require select privilege on child columns that aren't inherited from the parent. Problem diagnosed by KaiGai Kohei, though this isn't exactly his patch.
08eb37da
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadMar 05, 2009
CommitterBackportedPut back our old workaround for machines that declare cbrt() in math.h but fail to provide the function itself. Not sure how we escaped testing anything later than 7.3 on such cases, but they still exist, as per André Volpato's report about AIX 5.3.
59156ad1
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadMar 04, 2009
CommitterBackportedOoops ... fix some confusion between gettext() and _() in my previous patch. This has moved around in past releases, so just copying-and-pasting from HEAD didn't work as intended.
1fc5d2a8
REL8_3_STABLE8.3.7REL8_2_STABLE8.2.13REL8_1_STABLE8.1.17REL8_0_STABLE8.0.21REL7_4_STABLE7.4.25
No linked threadMar 03, 2009
CommitterBackportedWhen we are in error recursion trouble, arrange to suppress translation and encoding conversion of any elog/ereport message being sent to the frontend. This generalizes a patch that I put in last October, which suppressed translation of only specific messages known to be associated with recursive can't-translate-the-message behavior. As shown in bug #4680, we need a more general answer in order to have some hope of coping with broken encoding conversion setups. This approach seems a good deal less klugy anyway.
fd9e2acc
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadMar 02, 2009
CommitterBackportedFix buffer allocations in encoding conversion routines so that they won't fail on zero-length inputs. This isn't an issue in normal use because the conversion infrastructure skips calling the converters for empty strings. However a problem was created by yesterday's patch to check whether the right conversion function is supplied in CREATE CONVERSION. The most future-proof fix seems to be to make the converters safe for this corner case.
876b37d5
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadFeb 28, 2009
CommitterShave a few cycles in compare_pathkeys() by checking for pointer-identical input lists before we grovel through the lists. This doesn't save much, but testing shows that the case of both inputs NIL is common enough that it saves something. And this is used enough to be a hotspot.
21eb6aeb
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 28, 2009
CommitterReduce the maximum value of vacuum_cost_delay and autovacuum_vacuum_cost_delay to 100ms (from 1000). This still seems to be comfortably larger than the useful range of the parameter, and it should help discourage people from picking uselessly large values. Tweak the documentation to recommend small values, too. Per discussion of a couple weeks ago.
640796ff
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 28, 2009
CommitterTemporarily (I hope) disable flattening of IN/EXISTS sublinks that are within the ON clause of an outer join. Doing so is semantically correct but results in de-optimizing queries that were structured to take advantage of the sublink style of execution, as seen in recent complaint from Kevin Grittner. Since the user can get the other behavior by reorganizing his query, having the flattening happen automatically is just a convenience, and that doesn't justify breaking existing applications. Eventually it would be nice to re-enable this, but that seems to require a significantly different approach to outer joins in the executor.
07b9936a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 27, 2009
CommitterTighten up join ordering rules to account for recent more-careful analysis of the associativity of antijoins. Also improve optimizer/README discussion of outer join ordering rules.
75c85bd1
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 27, 2009
CommitterImprove create_unique_path to not be fooled by unrelated clauses that happen to be syntactically part of a semijoin clause. For example given WHERE EXISTS(SELECT ... WHERE upper.var = lower.var AND some-condition) where some-condition is just a restriction on the lower relation, we can use unique-ification on lower.var after having applied some-condition within the scan on lower.
f01313bc
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 27, 2009
CommitterRemove outdated join_1.out regression test comparison file. This has been broken for more than a month, so evidently it's not needed, at least not for any configuration in the buildfarm. We can correct it and replace it later if we find something that still needs it.
f4fea44c
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 26, 2009
CommitterBackportedFix an old problem in decompilation of CASE constructs: the ruleutils.c code looks for a CaseTestExpr to figure out what the parser did, but it failed to consider the possibility that an implicit coercion might be inserted above the CaseTestExpr. This could result in an Assert failure in some cases (but correct results if Asserts weren't enabled), or an "unexpected CASE WHEN clause" error in other cases. Per report from Alan Li.
eea49769
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more
No linked threadFeb 25, 2009
CommitterGet rid of the rather fuzzily defined FlattenedSubLink node type in favor of making pull_up_sublinks() construct a full-blown JoinExpr tree representation of IN/EXISTS SubLinks that it is able to convert to semi or anti joins. This makes pull_up_sublinks() a shade more complex, but the gain in semantic clarity is worth it. I still have more to do in this area to address the previously-discussed problems, but this commit in itself fixes at least one bug in HEAD, as shown by added regression test case.
e549722a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 25, 2009
CommitterBackportedRepair a longstanding bug in CLUSTER and the rewriting variants of ALTER TABLE: if the command is executed by someone other than the table owner (eg, a superuser) and the table has a toast table, the toast table's pg_type row ends up with the wrong typowner, ie, the command issuer not the table owner. This is quite harmless for most purposes, since no interesting permissions checks consult the pg_type row. However, it could lead to unexpected failures if one later tries to drop the role that issued the command (in 8.1 or 8.2), or strange warnings from pg_dump afterwards (in 8.3 and up, which will allow the DROP ROLE because we don't create a "redundant" owner dependency for table rowtypes). Problem identified by Cott Lang.
f73bed30
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more
No linked threadFeb 24, 2009
CommitterFix psql's \dD to show only one row per domain, even when the domain has multiple check constraints.
7de7876c
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 23, 2009
CommitterAdd note that inlined SQL functions aren't tracked by track_functions.
451a15f9
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 22, 2009
CommitterSimplify overcomplicated (and overly restrictive) test to see whether an IS NULL condition is rendered redundant by detection of an antijoin. If we know that a join is an antijoin, then *any* Var coming out of its righthand side must be NULL, not only the joining column(s). Also, it's still gonna be null after being passed up through higher joins, whether they're outer joins or not. I was misled by a faulty analogy to reduce_outer_joins() in the original coding. But consider
7920ed38
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 20, 2009
CommitterImprove comments about semijoin implementation strategy, per a question from Robert Haas.
233b8a99
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 19, 2009
CommitterRemove the special cases to prevent minus-zero results in float4 and float8 unary minus operators. We weren't attempting to prevent minus zero anywhere else; in view of our gradual trend to make the float datatypes more IEEE standard compliant, we should allow minus zero here rather than disallow it elsewhere.
86ffdcad
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 18, 2009
CommitterTeach the planner to treat a partial unique index as proving a variable is unique for a particular query, if the index predicate is satisfied. This requires a bit of reordering of operations so that we check the predicates before doing any selectivity estimates, but shouldn't really cause any noticeable slowdown. Per a comment from Michal Politowski.
ce6e31de
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 15, 2009
CommitterMinor wordsmithing.
57b5984d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 15, 2009
CommitterA couple of marginal performance hacks for the information_schema views: replace the old recursive-SQL-function implementation of _pg_keysequal() with use of the built-in array containment operators, and change table_constraints' UNION to UNION ALL. Per discussion with Octavio Alvarez.
3f7626e9
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 14, 2009
CommitterBackportedFix UNLISTEN to fall out quickly if the current backend has never executed any LISTEN command. This is more important than it used to be because DISCARD ALL invokes UNLISTEN. Connection-pooled applications making heavy use of DISCARD ALL were seeing significant contention for pg_listener, as reported by Matteo Beccati. It seems unlikely that clients using LISTEN would use pooled connections, so this simple tweak seems sufficient, especially since the pg_listener implementation is slated to go away soon anyway.
ca5646fc
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadFeb 13, 2009
CommitterChange ALTER TABLE SET WITHOUT OIDS to rewrite the whole table to physically get rid of the OID column. This eliminates the problem discovered by Heikki back in November that 8.4's suppression of "unnecessary" junk filtering in INSERT/SELECT could lead to an Assert failure, or storing of oids into a table that shouldn't have them if Asserts are off. While that particular problem could have been solved in other ways, it seems likely to be just a forerunner of things to come if we continue to allow tables to contain rows that disagree with the pg_class.relhasoids setting. It's better to make this operation slow than to sacrifice performance or risk bugs in more common code paths.
6d1e3618
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 11, 2009
CommitterTweak configure to attempt to add -qnoansialias to CFLAGS whenever running on AIX with a non-gcc compiler. The previous coding would do this only if CC was exactly "xlc"; which is a bad idea, as demonstrated by trouble report from Mihai Criveti.
68d95f12
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 11, 2009
CommitterAdopt Bob Jenkins' improved hash function for hash_any(). This changes the contents of hash indexes (again), so bump catversion.
8205258f
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 09, 2009
CommitterEnsure that INSERT ... SELECT into a table with OIDs never copies row OIDs from the source table. This could never happen anyway before 8.4 because the executor invariably applied a "junk filter" to rows due to be inserted; but now that we skip doing that when it's not necessary, the case can occur. Problem noted 2008-11-27 by KaiGai Kohei, though I misunderstood what he was on about at the time (the opacity of the patch he proposed didn't help).
3d02cae3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 08, 2009
CommitterFix cost_mergejoin's failure to adjust for rescanning of non-unique merge join keys when considering a semi or anti join. This requires estimating the selectivity of the merge qual as though it were a regular inner join condition. To allow caching both that and the real outer-join-aware selectivity, split RestrictInfo.this_selec into two fields.
c473d923
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 06, 2009
CommitterOoops, forgot to update COPY reference page to mention column privileges.
c87c31f1
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 06, 2009
CommitterClean up some loose ends from the column privileges patch: add has_column_privilege and has_any_column_privilege SQL functions; fix the information_schema views that are supposed to pay attention to column privileges; adjust pg_stats to show stats for any column you have select privilege on; and fix COPY to allow copying a subset of columns if the user has suitable per-column privileges for all the columns.
7449427a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 06, 2009
CommitterFix an old corner-case error in match_unsorted_outer(): don't consider the cheapest-total inner path as a new candidate while truncating the sort key list, if it already matched the full sort key list. This is too much of a corner case to be worth back-patching, since it's unusual for the cheapest total path to be sorted, and anyway no real harm is done (except in JOIN_SEMI/ANTI cases where cost_mergejoin is a bit broken at the moment). But it wasn't behaving as intended, so fix it. Noted while examining a test case from Kevin Grittner. This error doesn't explain his issue, but it does explain why "set enable_seqscan = off" seemed to reproduce it for me.
244f6492
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 05, 2009
CommitterAdd a failure check for syslogger's use of _beginthreadex(), and remove unnecessary thread address output parameter, to make this code look more like that in pg_restore.
623cf5ed
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 03, 2009
CommitterDocument the longstanding behavior of LIMIT NULL and OFFSET NULL, per gripe from David Wheeler that this was mentioned nowhere. In passing, editorialize a bit on the description of the SQL:2008 equivalent syntax.
c2425020
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadFeb 02, 2009
CommitterBackportedFix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere in the string, not just at the start. Per bug #4629 from Martin Blazek.
c401a5ce
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadFeb 02, 2009
CommitterFix unnest() to handle a toasted input array safely. Per report from Alvaro.
daac6e98
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 30, 2009
CommitterBackportedUpdate back-branch release notes.
20444349
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadJan 30, 2009
CommitterBackportedUpdate time zone data files to tzdata release 2009a: introduces Asia/Kathmandu as the preferred spelling of that zone name, corrects historical DST information for Switzerland and Cuba.
204db566
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more
No linked threadJan 29, 2009
CommitterBackportedReplace argument-checking Asserts with regular test-and-elog checks in all encoding conversion functions. These are not can't-happen cases because it's possible to create a conversion with the wrong conversion function for the specified encoding pair. That would lead to an Assert crash in an Assert-enabled build, or incorrect conversion otherwise, neither of which is desirable. This would be a DOS issue if production databases were customarily built with asserts enabled, but fortunately that's not so. Per an observation by Heikki.
0d65eea3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadJan 29, 2009
CommitterTweak the existing special case for AIX in pg_getaddrinfo_all() to handle yet another failure case in AIX's getaddrinfo(). Per report and patch by Andrew Chernow.
006b9e7a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 23, 2009
CommitterSupport column-level privileges, as required by SQL standard.
3cb5d658
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 22, 2009
CommitterFix accidental (I suppose) introduction of non-ASCII quote marks.
cc1d292d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 19, 2009
CommitterBackportedFix a pg_dump output ordering problem introduced in 8.3 by the addition of array types for composite types. Although pg_dump understood it wasn't supposed to dump these array types as separate objects, it must include them in the dependency ordering analysis, and it was improperly assigning them the same relatively-high sort priority as regular types. This resulted in effectively moving composite types and tables up to that same high priority, which broke any ordering requirements that weren't explicitly enforced by dependencies. In particular user-defined operator classes, which should come out before tables, failed to do so. Per report from Brendan Jurd.
390081e3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadJan 18, 2009
CommitterTweak order of operations in BitmapHeapNext() to avoid the case of prefetching the same page we are nanoseconds away from reading for real. There should be something left to do on the current page before we consider issuing a prefetch.
8a450501
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 12, 2009
CommitterImplement prefetching via posix_fadvise() for bitmap index scans. A new GUC variable effective_io_concurrency controls how many concurrent block prefetch requests will be issued.
b7b8f0b6
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 12, 2009
CommitterRe-enable the old code in xlog.c that tried to use posix_fadvise(), so that we can get some buildfarm feedback about whether that function is still problematic. (Note that the planned async-preread patch will not really prove anything one way or the other in buildfarm testing, since it will be inactive with default GUC settings.)
1a37056a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 11, 2009
CommitterRevise the TIDBitmap API to support multiple concurrent iterations over a bitmap. This is extracted from Greg Stark's posix_fadvise patch; it seems worth committing separately, since it's potentially useful independently of posix_fadvise.
43a57cf3
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 10, 2009
CommitterA further attempt at clarifying the \distv business.
ccb51c08
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 09, 2009
CommitterFix libpq so that it reports PGRES_EMPTY_QUERY not PGRES_COMMAND_OK when an empty query string is passed to PQexecParams and related functions. Its handling of the NoData response to Describe messages was subtly incorrect. Per my report of yesterday.
d25ada4d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 09, 2009
CommitterArrange for function default arguments to be processed properly in expressions that are set up for execution with ExecPrepareExpr rather than going through the full planner process. By introducing an explicit notion of "expression planning", this patch also lays a bit of groundwork for maybe someday allowing sub-selects in standalone expressions.
d04db370
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 09, 2009
CommitterBackportedDefend against null input in analyze_requires_snapshot(), per report from Rushabh Lathia.
2e9650cb
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadJan 08, 2009
CommitterCreate a third option named "partition" for constraint_exclusion, and make it the default. This setting enables constraint exclusion checks only for appendrel members (ie, inheritance children and UNION ALL arms), which are the cases in which constraint exclusion is most likely to be useful. Avoiding the overhead for simple queries that are unlikely to benefit should bring the cost down to the point where this is a reasonable default setting. Per today's discussion.
445ce157
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 07, 2009
CommitterBackportedInsert conditional SPI_push/SPI_pop calls into InputFunctionCall, OutputFunctionCall, and friends. This allows SPI-using functions to invoke datatype I/O without concern for the possibility that a SPI-using function will be called (which could be either the I/O function itself, or a function used in a domain check constraint). It's a tad ugly, but not nearly as ugly as what'd be needed to make this work via retail insertion of push/pop operations in all the PLs.
deac9488
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more
No linked threadJan 07, 2009
CommitterFix executor/spi.h to follow our usual conventions for include files, ie, not include postgres.h nor anything else it doesn't directly need. Add #includes to calling files as needed to compensate. Per my proposal of yesterday.
1cfd9e88
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 07, 2009
CommitterClarify a confusing comment about MCVs vs histogram entries. Per Nathan Boley.
82c96623
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 06, 2009
CommitterBackportedRemove references to pgsql-ports and pgsql-patches mailing lists from various documentation, since those lists are now dead/deprecated. Point to pgsql-bugs and/or pgsql-hackers as appropriate.
e2286240
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more
No linked threadJan 06, 2009
CommitterChange a couple of ill-advised uses of INFO elog level to WARNINGs; in particular this allows EmitWarningsOnPlaceholders messages to show up in the postmaster log by default. Update elog.h comment to make it clearer what INFO is for, and fix one example in the SGML docs that was misusing it. Per my gripe of yesterday.
7c63d0c7
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 06, 2009
CommitterRevert the default toast compression strategy to the former behavior where there's no limit on the size of datum we'll try to compress. Other 8.4 tweaks to the behavior remain in place. Per discussion.
229bffed
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 06, 2009
CommitterDoesn't seem like a good idea to be doing AC_CHECK_SIZEOF(void *) so much earlier than all the other sizeof checks, and it certainly fails to follow the order suggested at the file head. Rearrange.
075ac80d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 06, 2009
CommitterAdd some comments about why function parameter default expressions are restricted.
9f910a3b
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 06, 2009
CommitterFix an oversight in the function-default-arguments patch: after adding some default expressions to a function call, eval_const_expressions must recurse on those expressions. Else they don't get simplified, and in particular we fail to insert additional default arguments if any functions needing defaults are in there. Per report from Rushabh Lathia.
10374a34
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 06, 2009
CommitterAdd a --role option to pg_dump, pg_dumpall, and pg_restore. This allows performing dumps and restores in accordance with a security policy that forbids logging in directly as superuser, but instead specifies that you should log into an admin account and then SET ROLE to the superuser.
b0a6ad70
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 05, 2009
CommitterQuiet repeated "loaded library" messages from child backends that are just re-loading a library already loaded into the postmaster.
5993bcaf
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 05, 2009
CommitterAdd EmitWarningsOnPlaceholders calls to contrib modules that are likely to get listed in custom_variable_classes.
da2c1b8a
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 05, 2009
CommitterFix define_custom_variable to preserve any sourcefile/sourceline information present in the placeholder. Noted while testing pg_stat_statements.
35c129ca
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 05, 2009
CommitterAdd contrib/pg_stat_statements for server-wide tracking of statement execution statistics.
7466eeac
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 04, 2009
CommitterAdd a pg_encoding_mbcliplen() function that is just like pg_mbcliplen() except the caller can specify the encoding to work in; this will be needed for pg_stat_statements. In passing, do some marginal efficiency hacking and clean up some comments. Also, prevent the single-byte-encoding code path from fetching one byte past the stated length of the string (this last is a bug that might need to be back-patched at some point).
1efd5ff8
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 04, 2009
CommitterAllow loadable modules to create PGC_POSTMASTER GUC variables, but only when loaded via shared_preload_libraries. Needed for support of pg_stat_statements, or pretty much anything else that wants a GUC to control size of a shared memory allocation.
4605d1c9
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 03, 2009
CommitterCreate a "shmem_startup_hook" to be called at the end of shared memory initialization, to give loadable modules a reasonable place to perform creation of any shared memory areas they need. This is the logical conclusion of our previous creation of RequestAddinShmemSpace() and RequestAddinLWLocks(). We don't need an explicit shmem_shutdown_hook, because the existing on_shmem_exit and on_proc_exit mechanisms serve that need.
dad75a62
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 03, 2009
CommitterInclude a pointer to the query's source text in QueryDesc structs. This is practically free given prior 8.4 changes in plancache and portal management, and it makes it a lot easier for ExecutorStart/Run/End hooks to get at the query text. Extracted from Itagaki Takahiro's pg_stat_statements patch, with minor editorialization.
bbeb0bbf
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 02, 2009
Committerwrite_nondefault_variables must take care to write custom_variable_classes first; otherwise backends reading the file might reject values of custom variables. Per experimentation with auto_explain.
bdcc7576
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 02, 2009
CommitterTweak guc.c to allow underscores in the names of custom variable classes, and change auto_explain's custom GUC variables to be named auto_explain.xxx not just explain.xxx. Per discussion in connection with the pg_stat_statements patch, it seems like a good idea to have the convention that custom variable classes are named the same as their defining module. Committing separately since this should happen regardless of what happens with pg_stat_statements itself.
ccdb6627
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 02, 2009
CommitterFix a couple of missed copyright dates.
62b64cbb
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more
No linked threadJan 01, 2009
CommitterBackportedFix an oversight in my patch of a couple weeks ago that ensured a snapshot is available during datatype input in Bind message processing. I put the PopActiveSnapshot() or equivalent just before PortalDefineQuery, which is an unsafe spot for it (in 8.3 and later) because we are carrying a plancache refcount that hasn't yet been assigned to the portal. Any error thrown there would result in leaking the refcount. It's not exactly likely that PopActiveSnapshot would throw an elog, perhaps, but it could happen. Reorder the code and add another comment warning not to do that.
87081b2d
master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more
No linked threadJan 01, 2009