- Jan 24, 2013
-
-
Bruce Momjian authored
When pg_upgrade can't find required pg_controldata information, report _which_ cluster is failing, with this message: The %s cluster lacks some required control information:
-
- Jan 23, 2013
-
-
Alvaro Herrera authored
This patch introduces two additional lock modes for tuples: "SELECT FOR KEY SHARE" and "SELECT FOR NO KEY UPDATE". These don't block each other, in contrast with already existing "SELECT FOR SHARE" and "SELECT FOR UPDATE". UPDATE commands that do not modify the values stored in the columns that are part of the key of the tuple now grab a SELECT FOR NO KEY UPDATE lock on the tuple, allowing them to proceed concurrently with tuple locks of the FOR KEY SHARE variety. Foreign key triggers now use FOR KEY SHARE instead of FOR SHARE; this means the concurrency improvement applies to them, which is the whole point of this patch. The added tuple lock semantics require some rejiggering of the multixact module, so that the locking level that each transaction is holding can be stored alongside its Xid. Also, multixacts now need to persist across server restarts and crashes, because they can now represent not only tuple locks, but also tuple updates. This means we need more careful tracking of lifetime of pg_multixact SLRU files; since they now persist longer, we require more infrastructure to figure out when they can be removed. pg_upgrade also needs to be careful to copy pg_multixact files over from the old server to the new, or at least part of multixact.c state, depending on the versions of the old and new servers. Tuple time qualification rules (HeapTupleSatisfies routines) need to be careful not to consider tuples with the "is multi" infomask bit set as being only locked; they might need to look up MultiXact values (i.e. possibly do pg_multixact I/O) to find out the Xid that updated a tuple, whereas they previously were assured to only use information readily available from the tuple header. This is considered acceptable, because the extra I/O would involve cases that would previously cause some commands to block waiting for concurrent transactions to finish. Another important change is the fact that locking tuples that have previously been updated causes the future versions to be marked as locked, too; this is essential for correctness of foreign key checks. This causes additional WAL-logging, also (there was previously a single WAL record for a locked tuple; now there are as many as updated copies of the tuple there exist.) With all this in place, contention related to tuples being checked by foreign key rules should be much reduced. As a bonus, the old behavior that a subtransaction grabbing a stronger tuple lock than the parent (sub)transaction held on a given tuple and later aborting caused the weaker lock to be lost, has been fixed. Many new spec files were added for isolation tester framework, to ensure overall behavior is sane. There's probably room for several more tests. There were several reviewers of this patch; in particular, Noah Misch and Andres Freund spent considerable time in it. Original idea for the patch came from Simon Riggs, after a problem report by Joel Jacobson. Most code is from me, with contributions from Marti Raudsepp, Alexander Shulgin, Noah Misch and Andres Freund. This patch was discussed in several pgsql-hackers threads; the most important start at the following message-ids: AANLkTimo9XVcEzfiBR-ut3KVNDkjm2Vxh+t8kAmWjPuv@mail.gmail.com 1290721684-sup-3951@alvh.no-ip.org 1294953201-sup-2099@alvh.no-ip.org 1320343602-sup-2290@alvh.no-ip.org 1339690386-sup-8927@alvh.no-ip.org 4FE5FF020200002500048A3D@gw.wicourts.gov 4FEAB90A0200002500048B7D@gw.wicourts.gov
-
- Jan 18, 2013
-
-
Bruce Momjian authored
If the cluster alignments don't match, output this suggestion: Likely one cluster is a 32-bit install, the other 64-bit
-
- Jan 01, 2013
-
-
Bruce Momjian authored
Fully update git head, and update back branches in ./COPYRIGHT and legal.sgml files.
-
- Jun 29, 2012
-
-
Alvaro Herrera authored
snprintf counts trailing NUL towards the char limit. Failing to account for that was causing an invalid value to be passed to pg_resetxlog -l, aborting the upgrade process.
-
- Jun 26, 2012
-
-
Heikki Linnakangas authored
The xlogid + segno representation of a particular WAL segment doesn't make much sense in pg_resetxlog anymore, now that we don't use that anywhere else. Use the WAL filename instead, since that's a convenient way to name a particular WAL segment. I did this partially for pg_resetxlog in the original xlogid/segno -> uint64 patch, but I neglected pg_upgrade and the docs. This should now be more complete.
-
- Jun 10, 2012
-
-
Bruce Momjian authored
commit-fest.
-
- Mar 13, 2012
-
-
Bruce Momjian authored
add ability to control permissions of created files have psql echo its queries for easier debugging output four separate log files, and delete them on success add -r/--retain option to keep log files after success make logs file append-only remove -g/-G/-l logging options sugggest tailing appropriate log file on failure enhance -v/--verbose behavior
-
- Mar 06, 2012
-
-
Bruce Momjian authored
right after we restore the schema (a common failure point), and right before we do the link operation. Per suggesgtions from Robert and ^!C^!^@lvaro
-
- Jan 02, 2012
-
-
Bruce Momjian authored
-
- Oct 07, 2011
-
-
Bruce Momjian authored
failures.
-
- Aug 27, 2011
-
-
Bruce Momjian authored
remove from local *.h files. Per suggestion from Alvaro.
-
- Jul 12, 2011
-
-
Peter Eisentraut authored
Add errno-based output to error messages where appropriate, reformat blocks to about 72 characters per line, use spaces instead of tabs for indentation, and other style adjustments.
-
- Jul 05, 2011
-
-
Peter Eisentraut authored
-
- Jun 09, 2011
-
-
Bruce Momjian authored
-
- May 18, 2011
-
-
Peter Eisentraut authored
Since contrib is a relative directory specification, a leading slash is inappropriate.
-
- May 16, 2011
-
-
Bruce Momjian authored
checks for PGHOST and PGHOSTADDR.
-
- Apr 10, 2011
-
-
Bruce Momjian authored
-
- Jan 01, 2011
-
-
Bruce Momjian authored
-
- Dec 15, 2010
-
-
Bruce Momjian authored
documentation. (Many were left over from the old pg_migrator naming.)
-
- Nov 02, 2010
-
-
Tom Lane authored
Problem reported, and cause identified, by Hernan Gonzalez.
-
- Oct 20, 2010
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- Oct 19, 2010
-
-
Bruce Momjian authored
than packing everything into 'ctx' and passing that to every function.
-
- Sep 28, 2010
-
-
Bruce Momjian authored
rather than atol(). Per report from Brian Hirt
-
- Sep 20, 2010
-
-
Magnus Hagander authored
-
- Sep 07, 2010
-
-
Bruce Momjian authored
collation/encoding to match English when reading controldata. This now matches the English variable setting used by pg_regress.c. Backpatch to 9.0.X.
-
- Jul 06, 2010
-
-
Bruce Momjian authored
-
- Jul 03, 2010
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
from Tom.
-
- Jul 01, 2010
-
-
Tom Lane authored
-
- May 14, 2010
-
-
Tom Lane authored
-
Tom Lane authored
-
Bruce Momjian authored
EDB must maintain their own patch set for this.
-
- May 12, 2010
-
-
Bruce Momjian authored
Add documentation. Supports migration from PG 8.3 and 8.4.
-