- 10 May, 2013 2 commits
-
-
Peter Eisentraut authored
-
Peter Eisentraut authored
It is not used anymore.
-
- 09 May, 2013 3 commits
-
-
Tom Lane authored
This helps guard against changes in the set of reserved keywords from one version to another. In theory it should only be an issue if we de-reserve a keyword in a newer release, since that can create the type of problem shown in bug #8128. Back-patch to 9.1 where the --quote-all-identifiers option was added.
-
Bruce Momjian authored
Document that post-upgrade steps are likely to be the same for all clusters with the same DDL/schemas; this should help automated upgrades.
-
- 08 May, 2013 5 commits
-
-
Tom Lane authored
This reverts the code changes in 50c13748, which turned out to induce crashes and not completely fix the problem anyway. That commit only considered single subqueries that were excluded by constraint-exclusion logic, but actually the problem also exists for subqueries that are appendrel members (ie part of a UNION ALL list). In such cases we can't add a dummy subpath to the appendrel's AppendPath list without defeating the logic that recognizes when an appendrel is completely excluded. Instead, fix the problem by having setrefs.c scan the rangetable an extra time looking for subqueries that didn't get into the plan tree. (This approach depends on the 9.2 change that made set_subquery_pathlist generate dummy paths for excluded single subqueries, so that the exclusion behavior is the same for single subqueries and appendrel members.) Note: it turns out that the appendrel form of the missed-permissions-checks bug exists as far back as 8.4. However, since the practical effect of that bug seems pretty minimal, consensus is to not attempt to fix it in the back branches, at least not yet. Possibly we could back-port this patch once it's gotten a reasonable amount of testing in HEAD. For the moment I'm just going to revert the previous patch in 9.2.
-
Heikki Linnakangas authored
Fix the term used in variable and struct names, and comments. Alexander Korotkov
-
Heikki Linnakangas authored
If a standby server has a cascading standby server connected to it, it's possible that WAL has already been sent up to the next WAL page boundary, splitting a WAL record in the middle, when the first standby server is promoted. Don't throw an assertion failure or error in walsender if that happens. Also, fix a variant of the same bug in pg_receivexlog: if it had already received WAL on previous timeline up to a segment boundary, when the upstream standby server is promoted so that the timeline switch record falls on the previous segment, pg_receivexlog would miss the segment containing the timeline switch. To fix that, have walsender send the position of the timeline switch at end-of-streaming, in addition to the next timeline's ID. It was previously assumed that the switch happened exactly where the streaming stopped. Note: this is an incompatible change in the streaming protocol. You might get an error if you try to stream over timeline switches, if the client is running 9.3beta1 and the server is more recent. It should be fine after a reconnect, however. Reported by Fujii Masao.
-
Heikki Linnakangas authored
What we have implemented is a radix tree (or a radix trie or a patricia trie), but the docs and code comments incorrectly called it a "suffix tree". Alexander Korotkov
-
Peter Eisentraut authored
Karl O. Pinc
-
- 07 May, 2013 1 commit
-
-
Heikki Linnakangas authored
It is surprisingly common mistake to leave out backup_label file from a base backup. Say more explicitly that it must be included. Jeff Janes, with minor rewording by me.
-
- 06 May, 2013 11 commits
-
-
Tom Lane authored
-
Tom Lane authored
I had time for a quick review of the notes, so here are some fixes.
-
Tom Lane authored
Previously this state was represented by whether the view's disk file had zero or nonzero size, which is problematic for numerous reasons, since it's breaking a fundamental assumption about heap storage. This was done to allow unlogged matviews to revert to unpopulated status after a crash despite our lack of any ability to update catalog entries post-crash. However, this poses enough risk of future problems that it seems better to not support unlogged matviews until we can find another way. Accordingly, revert that choice as well as a number of existing kluges forced by it in favor of creating a pg_class.relispopulated flag column.
-
Tom Lane authored
Very old versions of msgfmt choke on these specific messages, for reasons that are unclear at the moment. Remove them so that we can ship a beta release and not get complaints from testers (these messages will just go untranslated, instead, and we're hardly at 100% coverage anyway). Peter Eisentraut will look for a better fix later.
-
Tom Lane authored
The initial implementation of this feature was really unsupportable, because it's relying on the physical size of an on-disk file to carry the relation's populated/unpopulated state, which is at least a modularity violation and could have serious long-term consequences. We could say that an unlogged matview goes to empty on crash, but not everybody likes that definition, so let's just remove the feature for 9.3. We can add it back when we have a less klugy implementation. I left the grammar and tab-completion support for CREATE UNLOGGED MATERIALIZED VIEW in place, since it's harmless and allows delivering a more specific error message about the unsupported feature. I'm committing this separately to ease identification of what should be reverted when/if we are able to re-enable the feature.
-
Bruce Momjian authored
Andrew Dunstan
-
Bruce Momjian authored
Mention this also helps in the restoring of pg_dumps. Jeff Janes
-
Bruce Momjian authored
No need to mention wal_receiver_status_interval.
-
Simon Riggs authored
Previous coding set the SQL buffer but never executed Bug noted by me during beta testing
-
Bruce Momjian authored
Removal of doc adjustment and release note mention as well.
-
Peter Eisentraut authored
-
- 04 May, 2013 8 commits
-
-
Tom Lane authored
Print the command tag if we get PGRES_COMMAND_OK, and throw an error for other cases. Per gripe from Michael Paquier. In passing, add an fflush(), just to be real sure the output appears before we sleep.
-
Bruce Momjian authored
-
Bruce Momjian authored
Restore 4-byte designation for docs. Fix 9.3 doc query to properly pad to four digits. Backpatch to all active branches Per suggestions from Ian Lawrence Barwick
-
Bruce Momjian authored
From Erik Rijkers
-
Bruce Momjian authored
Backpatch to 9.2. Report from Ian Lawrence Barwick
-
Bruce Momjian authored
Fixes from Peter Geoghegan, Ian Lawrence Barwick, Marti Raudsepp
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- 03 May, 2013 4 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
Still need to add links for new features.
-
Tom Lane authored
Clarify the description of nulls[] arguments, and use the same wording for all SPI functions with this type of argument. Per gripe from Yuriy Rusinov.
-
Bruce Momjian authored
Also, remove broken link in release.sgml.
-
- 02 May, 2013 3 commits
-
-
Bruce Momjian authored
-
Kevin Grittner authored
Per report from Fujii Masao, with regression test using his example.
-
Bruce Momjian authored
-
- 01 May, 2013 2 commits
-
-
Andrew Dunstan authored
Bug reported on IRC - fix due to Andrew Gierth.
-
Tom Lane authored
A view defined as "select <something> where false" had the curious property that the system wouldn't check whether users had the privileges necessary to select from it. More generally, permissions checks could be skipped for tables referenced in sub-selects or views that were proven empty by constraint exclusion (although some quick testing suggests this seldom happens in cases of practical interest). This happened because the planner failed to include rangetable entries for such tables in the finished plan. This was noticed in connection with erroneous handling of materialized views, but actually the issue is quite unrelated to matviews. Therefore, revert commit 200ba166 in favor of a more direct test for the real problem. Back-patch to 9.2 where the bug was introduced (by commit 7741dd65).
-
- 30 Apr, 2013 1 commit
-
-
Kevin Grittner authored
Test case by Andres Freund for bug fixed by Tom Lane's refactoring in commit 5194024d
-