| Committer | Ensure that typmod decoration on a datatype name is validated in all cases, even in code paths where we don't pay any subsequent attention to the typmod value. This seems needed in view of the fact that 8.3's generalized typmod support will accept a lot of bogus syntax, such as "timestamp(foo)" or "record(int, 42)" --- if we allow such things to pass without comment, users will get confused. Per a recent example from Greg Stark. 0bd4da23 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 11, 2007 |
| Committer | Add an example of a SQL function with output parameters returning multiple rows. I had thought this case was covered, but there was no example in the obvious section to look in. c6722d72 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 10, 2007 |
| Committer | Add missing closing / in xsd:restriction, and remove some unnecessary spaces for consistency. Per bug #3734 from Ben Leslie; fix by Euler Taveira de Oliveira. 2b477a2c | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 10, 2007 |
| Committer | xmlGetUTF8Char()'s second argument is both input and output. Fix uninitialized value, and avoid invoking the function nine separate times in the pg_xmlIsNameChar macro. Should resolve buildfarm failures. Per report from Ben Leslie. d2d52bbb | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 10, 2007 |
| Committer | Recognize RETURN QUERY via a textual test, so that QUERY doesn't need to be a plpgsql keyword. This avoids springing a new reserved word on plpgsql programmers. For consistency, handle RETURN NEXT the same way. e5fe2e84 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 09, 2007 |
| Committer | Add an expected-results file to get regression to pass cleanly in sv_SE locale, which sorts a bit differently. Per recent gripe from Magnus. 08330811 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 09, 2007 |
| Committer | Clean up ts_locale.h/.c. Fix broken and not-consistent-across-platforms behavior of wchar2char/char2wchar; this should resolve bug #3730. Avoid excess computations of pg_mblen in t_isalpha and friends. Const-ify APIs where possible. 654dcfb9 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 09, 2007 |
| CommitterBackported | Second pass at improving LIKE/regex estimation in non-C locales. It turns out that it's actually quite likely that a string that is an extension of the given prefix will sort as larger than the "greater" string our previous code created. To provide some defense against that, do the comparisons against a modified string instead of just the bare prefix. We tack on "Z", "z", "y", or "9", whichever is seen as largest in the current locale. Testing suggests that this is sufficient at least for cases involving ASCII data. a96fa850 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+19 more | No linked thread | Nov 09, 2007 |
| CommitterBackported | If an index depends on no columns of its table, give it a dependency on the whole table instead, to ensure that it goes away when the table is dropped. Per bug #3723 from Sam Mason. c293ba9e | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+21 more | No linked thread | Nov 08, 2007 |
| Committer | Fix EquivalenceClass code to handle volatile sort expressions in a more predictable manner; in particular that if you say ORDER BY output-column-ref, it will in fact sort by that specific column even if there are multiple syntactic matches. An example is SELECT random() AS a, random() AS b FROM ... ORDER BY b, a; While the use-case for this might be a bit debatable, it worked as expected in earlier releases, so we should preserve the behavior for 8.3. Per my recent proposal. c291203c | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 08, 2007 |
| Committer | Last week's patch for make_sort_from_pathkeys wasn't good enough: it has to be able to discard top-level RelabelType nodes on *both* sides of the equivalence-class-to-target-list comparison, since make_pathkey_from_sortinfo might either add or remove a RelabelType. Also fix the latter to do the removal case cleanly. Per example from Peter. 1be06016 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 08, 2007 |
| CommitterBackported | Improve the performance of LIKE/regex estimation in non-C locales, by making make_greater_string() try harder to generate a string that's actually greater than its input string. Before we just assumed that making a string that was memcmp-greater was enough, but it is easy to generate examples where this is not so when the locale is not C. Instead, loop until the relevant comparison function agrees that the generated string is greater than the input. 2de946be | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+19 more | No linked thread | Nov 07, 2007 |
| CommitterBackported | Fix patternsel() and callers to do the right thing for NOT LIKE and the other negated-match operators. patternsel had been using the supplied operator as though it were a positive-match operator, and thus obtaining a wrong result, which was even more wrong after the caller subtracted it from 1. Seems cleanest to give patternsel an explicit "negate" argument so that it knows what's going on. Also install the same factorization scheme for pattern join selectivity estimators; even though they are just stubs at the moment, this may keep someone from making the same type of mistake when they get filled out. Per report from Greg Mullane. 95422871 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+18 more | No linked thread | Nov 07, 2007 |
| Committer | Some code review for xml.c: Add some more xml_init() calls that might not be necessary, but seem like a good idea to avoid possible problems like we saw in xmlelement(). Fix unsafe assumption that you can keep using the tupledesc of a relcache entry you don't have open. Add missing error checks for SearchSysCache failure. Get rid of handwritten array traversal in xpath() and O(N^2), broken-for-nulls array access code in map_sql_value_to_xml_value(), in favor of using deconstruct_array. Manually adjust a lot of line breaks in places where the code is otherwise gonna look pretty awful after pg_indent hacks it up (original author seems to have liked to lay out code for a 200-column window). 5e512971 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 06, 2007 |
| Committer | Fix xmlelement() to initialize libxml correctly before using it, and to avoid assuming that evaluation of its input expressions won't change the state of libxml. This requires refactoring xml_init() to not call xmlInitParser(), since now not all of its callers want that. I also tweaked things to avoid repeated execution of one-time-only tests inside xml_init(), though this is mostly for clarity rather than in hopes of saving any noticeable amount of runtime. Per report from Sheikh Amjad and subsequent discussion. In passing, fix a couple of inadequately schema-qualified queries. 85f807d7 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 05, 2007 |
| Committer | Fix deprecated-by-C-spec usage: storage class should come before const decoration. Zdenek Kotala bcb3852c | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 05, 2007 |
| Committer | Improve conversion of legacy CREATE CONSTRAINT TRIGGER representation of foreign keys, one more time. Insist on matching up all three triggers before we create a constraint; this will avoid creation of duplicate constraints in scenarios where a broken FK constraint was repaired by re-adding the constraint without removing the old partial trigger set. Basically, this will work nicely in all cases where the FK was actually functioning correctly in the database that was dumped. It will fail to restore an FK in just one case where we theoretically could restore it: where we find the referenced table's triggers and not the referencing table's trigger. However, in such a scenario it's likely that the user doesn't even realize he still has an FK at all (since the more-likely-to-fail cases aren't enforced), and we'd probably not accomplish much except to cause the reload to fail because the data doesn't meet the FK constraint. Also make the NOTICE logging still more verbose, by adding detail about which of the triggers were found. This seems about all we can do without solving the problem of getting the user's attention at session end. df870740 | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 05, 2007 |
| Committer | Minor editorial improvements to txid functions' documentation: put back some text that got dropped, improve markup, improve descriptions of snapshot components. faac769a | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 05, 2007 |
| Committer | Add a note about another issue that needs to be considered before changing the TOAST size thresholds. a06ce21c | master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more | No linked thread | Nov 05, 2007 |