Filter:

Commits in 2011

Commits140 commits of which 52 backported
0Author
140Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterBackportedFix reference to "verify-ca" and "verify-full" in a note in the docs.
4b43b48c
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+11 more
No linked threadDec 16, 2011
CommitterAdd support for passing cursor parameters in named notation in PL/pgSQL.
4adead1d
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadDec 14, 2011
CommitterBackportedRevert the behavior of inet/cidr functions to not unpack the arguments.
8409b604
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+12 more
No linked threadDec 12, 2011
CommitterBackportedDon't set reachedMinRecoveryPoint during crash recovery. In crash recovery, we don't reach consistency before replaying all of the WAL. Rename the variable to reachedConsistency, to make its intention clearer.
9f0d2bdc
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+10 more
No linked threadDec 09, 2011
CommitterCancel running query if it is detected that the connection to the client is lost. The only way we detect that at the moment is when write() fails when we try to write to the socket.
5d8a894e
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadDec 09, 2011
CommitterDuring recovery, if we reach consistent state and still have entries in the invalid-page hash table, PANIC immediately. Immediate PANIC is much better than waiting for end-of-recovery, which is what we did before, because the end-of-recovery might not come until months later if this is a standby server.
1e616f63
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadDec 02, 2011
CommitterTake fillfactor into account in the new COPY bulk heap insert code.
dea5f6ce
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 26, 2011
CommitterBackportedPreserve SQLSTATE when an SPI error is propagated through PL/python exception handler. This was a regression in 9.1, when the capability to catch specific SPI errors was added, so backpatch to 9.1.
f21fc7f9
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadNov 24, 2011
CommitterFix another bug in the redo of COPY batches.
2e022807
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 10, 2011
CommitterFix bugs in the COPY heap-insert batching patch.
f81648cb
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 09, 2011
CommitterIn COPY, insert tuples to the heap in batches.
d326d9e8
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 09, 2011
CommitterBackportedMake DatumGetInetP() unpack inet datums with a 1-byte header, and add a new macro, DatumGetInetPP(), that does not. This brings these macros in line with other DatumGet*P() macros.
3b816172
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+12 more
No linked threadNov 08, 2011
CommitterAdjust range type docs for some last-minute changes I made to the patch. non_empty(anyrange) function was removed, empty(anyrange) was renamed to isempty(anyrange), and !? operators were removed.
fbf99d2f
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 08, 2011
CommitterFix timestamp range subdiff functions, when using float datetimes.
ffc703a8
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 07, 2011
CommitterOops, forgot to fix the catversion when I committed the range types patch. It was inadvertently changed to 201111111, which is a wrong date. Change it to current date, and remove the comment that was supposed to remind me to fix it before committing.
780571cc
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 06, 2011
CommitterSupport range data types.
4429f6a9
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadNov 03, 2011
CommitterFix the number of lwlocks needed by the "fast path" lock patch. It needs one lock per backend or auxiliary process - the need for a lock for each aux processes was not accounted for in NumLWLocks(). No-one noticed, because the three locks needed for the three aux processes fit into the few extra lwlocks we allocate for 3rd party modules that don't call RequestAddinLWLocks() (NUM_USER_DEFINED_LWLOCKS, 4 by default).
cbf65509
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadOct 27, 2011
CommitterBackportedFix overly-complicated usage of errcode_for_file_access().
b436c72f
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadOct 22, 2011
CommitterClean up a couple of box gist helper functions.
d50e1251
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadOct 09, 2011
CommitterBackportedDon't let transform_null_equals=on affect CASE foo WHEN NULL ... constructs. transform_null_equals is only supposed to affect "foo = NULL" expressions given directly by the user, not the internal "foo = NULL" expression generated from CASE-WHEN.
1ef60dab
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+13 more
No linked threadOct 08, 2011
CommitterFix typo.
041dceb2
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadOct 08, 2011
CommitterReplace the "New Linear" GiST split algorithm for boxes and points with a new double-sorting algorithm. The new algorithm produces better quality trees, making searches faster.
7f3bd868
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadOct 06, 2011
CommitterBackportedTeach the makefile used to build stand-alone libpq on Windows that libpq needs win32setlocale.c now. The cygwin and MSVC build scripts were changed earlier, but this was neglected. This should fix bug report #6203 by Steve.
09e98a3e
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadSep 14, 2011
CommitterBackportedIn the manual section on primary_conninfo, recommend using a role with REPLICATION privileges, not SUPERUSER.
76df369c
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadSep 14, 2011
CommitterIn the final emptying phase of the new GiST buffering build, set the queuedForEmptying flag correctly on buffer when adding it to the queue. Also, don't add buffer to the queue if it's there already. These were harmless oversights; failing to set the flag just means that a buffer might get added to the queue twice if more tuples are added to it (although that can't actually happen at this point because all the upper buffers have already been emptied), and having the same buffer twice in the emptying queue is harmless. But better be tidy.
8caf6132
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadSep 12, 2011
CommitterFix typo and reword the sentence.
86ab71d5
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadSep 08, 2011
CommitterBuffering GiST index build algorithm.
5edb24a8
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadSep 08, 2011
CommitterBackportedRemove spurious comma. Spotted by Tom.
e4df0373
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadSep 01, 2011
CommitterBackportedlibpq compiles various pgport files like ecpg does, and needs similar Makefile changes for the win32 setlocale() wrapper I put into ecpg, to make it compile on MinGW.
5066e55d
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadSep 01, 2011
CommitterBackportedFix MinGW build, broken by my previous patch to add a setlocale() wrapper on Windows. ecpglib doesn't link with libpgport, but picks and compiles the .c files it needs individually. To cope with that, move the setlocale() wrapper from chklocale.c to a separate setlocale.c file, and include that in ecpglib.
65e899b2
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadSep 01, 2011
CommitterBackportedsetlocale() on Windows doesn't work correctly if the locale name contains dots. I previously worked around this in initdb, mapping the known problematic locale names to aliases that work, but Hiroshi Inoue pointed out that that's not enough because even if you use one of the aliases, like "Chinese_HKG", setlocale(LC_CTYPE, NULL) returns back the long form, ie. "Chinese_Hong Kong S.A.R.". When we try to restore an old locale value by passing that value back to setlocale(), it fails. Note that you are affected by this bug also if you use one of those short-form names manually, so just reverting the hack in initdb won't fix it.
a88b6e4c
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadSep 01, 2011
CommitterBackportedMove the line to undefine setlocale() macro on Win32 outside USE_REPL_SNPRINTF ifdef block. It has nothing to do with whether the replacement snprintf function is used. It caused no live bug, because the replacement snprintf function is always used on Win32, but it was nevertheless misplaced.
8ea02570
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+12 more
No linked threadSep 01, 2011
CommitterBackportedThe replication status values in pg_stat_replication was changed to lowercase earlier, but documentation was not updated. Update the docs.
5cfe33fe
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadAug 31, 2011
CommitterBackportedAdd recovery.conf to the index in the user manual.
6c6a4153
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+10 more
No linked threadAug 23, 2011
CommitterBackportedAdd an SSI regression test that tests all interesting permutations in the order of begin, prepare, and commit of three concurrent transactions that have conflicts between them.
af357373
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadAug 18, 2011
CommitterBackportedStrip whitespace from SQL blocks in the isolation test suite. This is purely cosmetic, it removes a lot of IMHO ugly whitespace from the expected output.
62fd1afc
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadAug 18, 2011
CommitterReport libpq errors correctly if session setup or teardown steps fail in isolation regression tests.
b936d926
REL9_1_STABLE9.1rc1
No linked threadAug 18, 2011
CommitterTeach pg_controldata and pg_resetxlog about the new backupEndRequired field in control file.
a1a847d3
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadAug 17, 2011
CommitterFix comment about which version had BACKUP METHOD line in backup_lable, again. It was invalidated again by Fujii's patch to 9.1.
1d0392b2
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadAug 17, 2011
CommitterFix bogus comment that claimed that the new BACKUP METHOD line in backup_label was new in 9.0. Spotted by Fujii Masao.
2877c67b
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadAug 16, 2011
CommitterOops, we're working on version 9.2 already, not 9.1. Update the PG_CONTROL_VERSION accordingly; I updated it wrong in previous commit.
1f1b70a7
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadAug 10, 2011
CommitterBackportedIf backup-end record is not seen, and we reach end of recovery from a streamed backup, throw an error and refuse to start up. The restore has not finished correctly in that case and the data directory is possibly corrupt. We already errored out in case of archive recovery, but could not during crash recovery because we couldn't distinguish between the case that pg_start_backup() was called and the database then crashed (must not error, data is OK), and the case that we're restoring from a backup and not all the needed WAL was replayed (data can be corrupt).
41f9ffd9
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadAug 10, 2011
CommitterChange the way string relopts are allocated.
77949a29
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadAug 09, 2011
CommitterFix grammar and spelling in log message.
5b6c8436
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadAug 09, 2011
CommitterBackportedAvoid integer overflow when LIMIT + OFFSET >= 2^63.
89df948e
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+13 more
No linked threadAug 02, 2011
CommitterChange the way the offset of downlink is stored in GISTInsertStack. GISTInsertStack.childoffnum used to mean "offset of the downlink in this node, pointing to the child node in the stack". It's now replaced with downlinkoffnum, which means "offset of the downlink in the parent of this node". gistFindPath() already used childoffnum with this new meaning, and had an extra step at the end to pull all the childoffnum values down one node in the stack, to adjust the stack for the meaning that childoffnum had elsewhere. That's no longer required.
8d260911
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadJul 15, 2011
CommitterBackportedFix two ancient bugs in GiST code to re-find a parent after page split:
bc175eb8
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+13 more
No linked threadJul 15, 2011
CommitterIntroduce a pipe between postmaster and each backend, which can be used to detect postmaster death. Postmaster keeps the write-end of the pipe open, so when it dies, children get EOF in the read-end. That can conveniently be waited for in select(), which allows eliminating some of the polling loops that check for postmaster death. This patch doesn't yet change all the loops to use the new mechanism, expect a follow-on patch to do that.
89fd72cb
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadJul 08, 2011
CommitterBackportedFix one overflow and one signedness error, caused by the patch to calculate OLDSERXID_MAX_PAGE based on BLCKSZ. MSVC compiler warned about these.
9598afa3
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJul 08, 2011
CommitterBackportedThere's a small window wherein a transaction is committed but not yet on the finished list, and we shouldn't flag it as a potential conflict if so. We can also skip adding a doomed transaction to the list of possible conflicts because we know it won't commit.
bdaabb9b
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJul 07, 2011
CommitterBackportedSSI has a race condition, where the order of commit sequence numbers of transactions might not match the order the work done in those transactions become visible to others. The logic in SSI, however, assumed that it does. Fix that by having two sequence numbers for each serializable transaction, one taken before a transaction becomes visible to others, and one after it. This is easier than trying to make the the transition totally atomic, which would require holding ProcArrayLock and SerializableXactHashLock at the same time. By using prepareSeqNo instead of commitSeqNo in a few places where commit sequence numbers are compared, we can make those comparisons err on the safe side when we don't know for sure which committed first.
406d6183
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJul 07, 2011
CommitterBackportedFix a bug with SSI and prepared transactions:
928408d9
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJul 07, 2011
CommitterBackportedClarify that you need ActiveState perl 5.8 *or later* to build on Windows.
e24662c4
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+12 more
No linked threadJul 04, 2011
CommitterRemove silent_mode. You get the same functionality with "pg_ctl -l postmaster.log", or nohup.
f7ea6bea
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+8 more
No linked threadJul 04, 2011
CommitterBackportedMove the PredicateLockRelation() call from nodeSeqscan.c to heapam.c. It's more consistent that way, since all the other PredicateLock* calls are made in various heapam.c and index AM functions. The call in nodeSeqscan.c was unnecessarily aggressive anyway, there's no need to try to lock the relation every time a tuple is fetched, it's enough to do it once.
cd70dd6b
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 29, 2011
CommitterBackportedGrab predicate locks on matching tuples in a lossy bitmap heap scan. Non-lossy case was already handled correctly.
d9fe63ac
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 29, 2011
CommitterBackportedRemove pointless const qualifiers from function arguments in the SSI code. As Tom Lane pointed out, "const Relation foo" doesn't guarantee that you can't modify the data the "foo" pointer points to. It just means that you can't change the pointer to point to something else within the function, which is not very useful.
5da417f7
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 22, 2011
CommitterBackportedAdjust the alternative expected output file for prepared_xacts test case, used when max_prepared_transactions=0, for the recent changes in the test case.
38c0e721
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 21, 2011
CommitterBackportedFix bug introduced by recent SSI patch to merge ROLLED_BACK and MARKED_FOR_DEATH flags into one. We still need the ROLLED_BACK flag to mark transactions that are in the process of being rolled back. To be precise, ROLLED_BACK now means that a transaction has already been discounted from the count of transactions with the oldest xmin, but not yet removed from the list of active transactions.
7cb2ff96
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 21, 2011
CommitterBackportedFix bug in PreCommit_CheckForSerializationFailure. A transaction that has already been marked as PREPARED cannot be killed. Kill the current transaction instead.
1eea8e8a
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 21, 2011
CommitterBackportedUpdate README-SSI. Add a section to describe the "dangerous structure" that SSI is based on, as well as the optimizations about relative commit times and read-only transactions. Plus a bunch of other misc fixes and improvements.
78475b0e
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 16, 2011
CommitterBackportedpgindent run of recent SSI changes. Also, remove an unnecessary #include.
cb94db91
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 16, 2011
CommitterBackportedThe rolled-back flag on serializable xacts was pointless and redundant with the marked-for-death flag. It was only set for a fleeting moment while a transaction was being cleaned up at rollback. All the places that checked for the rolled-back flag should also check the marked-for-death flag, as both flags mean that the transaction will roll back. I also renamed the marked-for-death into "doomed", which is a lot shorter name.
264a6b12
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 15, 2011
CommitterBackportedMake non-MVCC snapshots exempt from predicate locking. Scans with non-MVCC snapshots, like in REINDEX, are basically non-transactional operations. The DDL operation itself might participate in SSI, but there's separate functions for that.
0a0e2b52
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 15, 2011
CommitterBackportedOops, forgot to change the order of entries in 2PC callback arrays when I renumbered the resource managers. This should fix the buildfarm..
85ea9338
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 14, 2011
CommitterBackportedRenumber 2PC resource managers so that compared to 9.0, predicate lock rmgr is added to the end, and existing resource managers keep their old ids. We're not going to guarantee on-disk compatibility for 2PC state files over major releases, but it seems better to avoid changing the ids them anyway. It will help anyone who might want to write external tools to inspect the state files to work with files from different versions, if nothing else. Per complaint from Tom Lane.
b81831ac
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 14, 2011
CommitterBackportedRemove now-unnecessary casts.
13000b44
master9.2beta1REL_19_STABLE9.2beta1REL_18_STABLE9.2beta1REL_17_STABLE9.2beta1REL_16_STABLE9.2beta1REL_15_STABLE9.2beta1REL_14_STABLE9.2beta1REL_13_STABLE9.2beta1+9 more
No linked threadJun 12, 2011
CommitterFix locking while setting flags in MySerializableXact.
cb2d158c
master9.1beta3REL_19_STABLE9.1beta3REL_18_STABLE9.1beta3REL_17_STABLE9.1beta3REL_16_STABLE9.1beta3REL_15_STABLE9.1beta3REL_14_STABLE9.1beta3REL_13_STABLE9.1beta3+9 more
No linked threadJun 10, 2011
CommitterSmall comment fixes and enhancements.
c79c570b
master9.1beta3REL_19_STABLE9.1beta3REL_18_STABLE9.1beta3REL_17_STABLE9.1beta3REL_16_STABLE9.1beta3REL_15_STABLE9.1beta3REL_14_STABLE9.1beta3REL_13_STABLE9.1beta3+9 more
No linked threadJun 10, 2011
CommitterFix the truncation logic of the OldSerXid SLRU mechanism. We can't pass SimpleLruTruncate() a page number that's "in the future", because it will issue a warning and refuse to truncate anything. Instead, we leave behind the latest segment. If the slru is not needed before XID wrap-around, the segment will appear as new again, and not be cleaned up until it gets old enough again. That's a bit unpleasant, but better than not cleaning up anything.
e1c26ab8
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadJun 09, 2011
CommitterMark the SLRU page as dirty when setting an entry in pg_serial. In the passing, fix an incorrect comment.
5234161a
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadJun 09, 2011
CommitterMake DDL operations play nicely with Serializable Snapshot Isolation.
8f9622bb
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadJun 08, 2011
CommitterMake ascii-art in comments pgindent-safe, and some other formatting changes.
a31ff707
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadJun 07, 2011
CommitterSSI comment fixes and enhancements. Notably, document that the conflict-out flag actually means that the transaction has a conflict out to a transaction that committed before the flagged transaction.
c8630919
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadJun 03, 2011
CommitterThe row-version chaining in Serializable Snapshot Isolation was still wrong. On further analysis, it turns out that it is not needed to duplicate predicate locks to the new row version at update, the lock on the version that the transaction saw as visible is enough. However, there was a different bug in the code that checks for dangerous structures when a new rw-conflict happens. Fix that bug, and remove all the row-version chaining related code.
3103f9a7
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadMay 30, 2011
CommitterCheck the return code of pthread_create(). Otherwise we go into an infinite loop if it fails, which is what what happened on my HP-UX box. (I think the reason it failed on that box is a misconfiguration on my behalf, but that's no reason to hang.)
336db7e3
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadMay 27, 2011
CommitterFix integer overflow in text_format function, reported by Dean Rasheed.
34be83b7
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadMay 23, 2011
CommitterPull up isReset flag from AllocSetContext to MemoryContext struct. This avoids the overhead of one function call when calling MemoryContextReset(), and it seems like the isReset optimization would be applicable to any new memory context we might invent in the future anyway.
30e98a7e
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadMay 21, 2011
CommitterReset per-tuple memory context between every row in a scan node, even when there's no quals or projections. Currently this only matters for foreign scans, as none of the other scan nodes litter the per-tuple memory context when there's no quals or projections.
0319da63
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadMay 21, 2011
CommitterIn binary-upgrade mode, dump dropped attributes of composite types.
27c7875d
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+9 more
No linked threadMay 21, 2011
CommitterBackportedReplace strdup() with pstrdup(), to avoid leaking memory.
ea896da3
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+13 more
No linked threadMay 19, 2011
CommitterBackportedShut down WAL receiver if it's still running at end of recovery. We used to just check that it's not running and PANIC if it was, but that can rightfully happen if recovery stops at recovery target.
a0c85141
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+10 more
No linked threadMay 11, 2011
CommitterBackportedThe arguments to pg_ctl kill are not optional - remove brackets in the docs.
39850c7f
master9.1beta2REL_19_STABLE9.1beta2REL_18_STABLE9.1beta2REL_17_STABLE9.1beta2REL_16_STABLE9.1beta2REL_15_STABLE9.1beta2REL_14_STABLE9.1beta2REL_13_STABLE9.1beta2+13 more
No linked threadApr 28, 2011
CommitterBackportedQuotes in strings injected into bki file need to escaped. In particular, "People's Republic of China" locale on Windows was causing initdb to fail.
2b919118
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+11 more
No linked threadApr 20, 2011
CommitterBackportedSilence compiler warning about unused variable on Windows.
a7cb69a5
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+10 more
No linked threadApr 19, 2011
Committersetlocale() on Windows doesn't work correctly if the locale name contains apostrophes or dots. There isn't much hope of Microsoft fixing it any time soon, it's been like that for ages, so we better work around it. So, map a few common Windows locale names known to cause problems to aliases that work.
d5a7bf8c
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 15, 2011
CommitterOn Windows, if the encoding implied by locale is not allowed as a server-encoding, fall back to UTF-8. It happens at least with the Chinese locale, which implies BIG5. This is safe, because on Windows all locales are compatible with UTF-8.
1f943dc8
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 15, 2011
CommitterReduce the initial size of local lock hash to 16 entries.
4c37c1e3
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 15, 2011
CommitterBackportedOn HP/UX, the structs used by ioctl(SIOCGLIFCONF) are named differently than on other platforms, and only IPv6 addresses are returned. Because of those two issues, fall back to ioctl(SIOCGIFCONF) on HP/UX, so that it at least compiles and finds IPv4 addresses. This function is currently only used for interpreting samehost/samenet in pg_hba.conf, which isn't that critical.
40e64017
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+10 more
No linked threadApr 13, 2011
CommitterBackportedRevert the patch to check if we've reached end-of-backup also when doing crash recovery, and throw an error if not. hubert depesz lubaczewski pointed out that that situation also happens in the crash recovery following a system crash that happens during an online backup.
54685b1c
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+10 more
No linked threadApr 13, 2011
CommitterBackportedOn IA64 architecture, we check the depth of the register stack in addition to the regular stack. The code to do that is platform and compiler specific, add support for the HP-UX native compiler.
b5bb040d
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+13 more
No linked threadApr 13, 2011
CommitterTransferPredicateLocksToNewTarget should initialize a new lock entry's commitSeqNo to that of the old one being transferred, or take the minimum commitSeqNo if it is merging two lock entries.
dad1f463
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 11, 2011
CommitterFix the size of predicate lock manager's shared memory hash tables at creation.
7c797e71
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 11, 2011
CommitterEscape greater than and less than characters in docs.
d420ba2a
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 02, 2011
CommitterFix two missing spaces in error messages.
9d568861
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadApr 01, 2011
CommitterFix a tiny race condition in predicate locking. Need to hold the lock while examining the head of predicate locks list. Also, fix the comment of RemoveTargetIfNoLongerUsed, it was neglected when we changed the way update chains are handled.
60b142b9
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 31, 2011
CommitterIncrease SHMEM_INDEX_SIZE from 32 to 64. We're currently at 40 entries in ShmemIndex, so 64 leaves some headroom.
c8ae318c
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 31, 2011
CommitterDon't leak the temporary PLyProcedure struct we create for inline plpython blocks.
ec762650
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 31, 2011
CommitterReword the phrase on zero replication_timeout in the docs.
647f8b3d
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 31, 2011
CommitterImprove error message when WAL ends before reaching end of online backup.
1f0bab84
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 31, 2011
CommitterBackportedCheck that we've reached end-of-backup also when we're not performing archive recovery.
acf47401
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+10 more
No linked threadMar 30, 2011
CommitterAutomatically terminate replication connections that are idle for more than replication_timeout (a new GUC) milliseconds. The TCP timeout is often too long, you want the master to notice a dead connection much sooner. People complained about that in 9.0 too, but with synchronous replication it's even more important to notice dead connections promptly.
754baa21
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 30, 2011
CommitterAdjust error message, now that we expect other message types than connection close at this point. Fix PQsetnonblocking() comment.
bc03c593
master9.1beta1REL_19_STABLE9.1beta1REL_18_STABLE9.1beta1REL_17_STABLE9.1beta1REL_16_STABLE9.1beta1REL_15_STABLE9.1beta1REL_14_STABLE9.1beta1REL_13_STABLE9.1beta1+9 more
No linked threadMar 30, 2011
CommitterWhen two base backups are started at the same time with pg_basebackup, ensure that they use different checkpoints as the starting point. We use the checkpoint redo location as a unique identifier for the base backup in the end-of-backup record, and in the backup history file name.
6d8096e2
master9.1alpha5REL_19_STABLE9.1alpha5REL_18_STABLE9.1alpha5REL_17_STABLE9.1alpha5REL_16_STABLE9.1alpha5REL_15_STABLE9.1alpha5REL_14_STABLE9.1alpha5REL_13_STABLE9.1alpha5+9 more
No linked threadMar 21, 2011
CommitterBackportedIn ecpg preprocessor, don't try to look up constants in the test for variable hiding. A constant is not a variable. It worked in most cases by accident, because we add constants to the global list of variables (why?), but float constants like 1.23 were interpreted as struct field references, and not found.
30e8b3e5
master9.1alpha5REL_19_STABLE9.1alpha5REL_18_STABLE9.1alpha5REL_17_STABLE9.1alpha5REL_16_STABLE9.1alpha5REL_15_STABLE9.1alpha5REL_14_STABLE9.1alpha5REL_13_STABLE9.1alpha5+10 more
No linked threadMar 11, 2011
CommitterFix bugs in the isolation tester flex rules.
74a09d92
master9.1alpha5REL_19_STABLE9.1alpha5REL_18_STABLE9.1alpha5REL_17_STABLE9.1alpha5REL_16_STABLE9.1alpha5REL_15_STABLE9.1alpha5REL_14_STABLE9.1alpha5REL_13_STABLE9.1alpha5+9 more
No linked threadMar 10, 2011
CommitterFix overly strict assertion in SummarizeOldestCommittedSxact(). There's a race condition where SummarizeOldestCommittedSxact() is called even though another backend already cleared out all finished sxact entries. That's OK, RegisterSerializableTransactionInt() can just retry getting a news xact slot from the available-list when that happens.
46c333a9
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 08, 2011
CommitterBackportedDon't throw a warning if vacuum sees PD_ALL_VISIBLE flag set on a page that contains newly-inserted tuples that according to our OldestXmin are not yet visible to everyone. The value returned by GetOldestXmin() is conservative, and it can move backwards on repeated calls, so if we see that contradiction between the PD_ALL_VISIBLE flag and status of tuples on the page, we have to assume it's because an earlier vacuum calculated a higher OldestXmin value, and all the tuples really are visible to everyone.
93d88823
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+11 more
No linked threadMar 08, 2011
CommitterTruncate predicate lock manager's SLRU lazily at checkpoint. That's safer than doing it aggressively whenever the tail-XID pointer is advanced, because this way we don't need to do it while holding SerializableXactHashLock.
4cd3fb6e
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 08, 2011
CommitterIf recovery_target_timeline is set to 'latest' and standby mode is enabled, periodically rescan the archive for new timelines, while waiting for new WAL segments to arrive. This allows you to set up a standby server that follows the TLI change if another standby server is promoted to master. Before this, you had to restart the standby server to make it notice the new timeline.
1a4ab9ec
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 07, 2011
CommitterDocument the DEFERRABLE option in SET TRANSACTION command.
faba108f
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 07, 2011
CommitterBegin error message with lower-case letter.
97e3dacd
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 07, 2011
CommitterSilence compiler warning about undefined function when compiling without assertions.
baabf051
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 07, 2011
CommitterYou must hold a lock on the heap page when you call CheckForSerializableConflictOut(), because it can set hint bits.
ee3838b1
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 04, 2011
CommitterAdd tab-completion for table name after JOIN.
8e2d8b14
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 03, 2011
CommitterChange pg_last_xlog_receive_location() not to move backwards. That makes it a lot more useful for determining which standby is most up-to-date, for example. There was long discussions on whether overwriting existing existing WAL makes sense to begin with, and whether we should do some more extensive variable renaming, but this change nevertheless seems quite uncontroversial.
6eba5a7c
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 01, 2011
CommitterFix bugs in Serializable Snapshot Isolation.
47ad7912
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadMar 01, 2011
CommitterIncrease the default for wal_sender_delay from 200ms to 1s. Now that WAL sender is immediately woken up by transaction commit, there's no need to wake up so aggressively.
be6668d6
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 26, 2011
CommitterSend status updates back from standby server to master, indicating how far the standby has written, flushed, and applied the WAL. At the moment, this is for informational purposes only, the values are only shown in pg_stat_replication system view, but in the future they will also be needed for synchronous replication.
b186523f
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 10, 2011
CommitterAllocate all entries in the serializable xid hash up-front, so that you don't run out of shared memory when you try to assign an xid to a transaction.
cecb5901
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 10, 2011
CommitterFix allocation of RW-conflict pool in the new predicate lock manager, and also take the RW-conflict pool into account in the PredicateLockShmemSize() estimate.
036bb158
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 09, 2011
CommitterFix typo, by Kevin Grittner.
1703f0e8
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 08, 2011
CommitterUINT64_MAX isn't defined on MSVC.
f9f9d696
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 08, 2011
CommitterFix copy-pasto in description of pg_serial, and silence compiler warning about uninitialized field you get on some compilers.
7202ad7b
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 08, 2011
CommitterOops, forgot to bump catversion in the Serializable Snapshot Isolation patch.
47082fa8
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 07, 2011
CommitterImplement genuine serializable isolation level.
dafaa3ef
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadFeb 07, 2011
CommitterRemove spurious word, spotted by Thom Brown.
44df84df
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 31, 2011
CommitterFix typo
32866837
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 31, 2011
CommitterSupport multiple concurrent pg_basebackup backups.
997b48ed
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 31, 2011
CommitterUpdate psql's \copyright to match the text we have in the COPYRIGHT file.
1e4baa5c
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 27, 2011
CommitterFix typo in the psql \d query handling, so that we use the correct query against 9.0 servers.
74be35b0
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 24, 2011
CommitterSilence compiler warning about uninitialized variable, noted by Itagaki Takahiro
56d77c9e
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 24, 2011
CommitterAdd 'directory' format to pg_dump. The new directory format is compatible with the 'tar' format, in that untarring a tar format archive produces a valid directory format archive.
7f508f1c
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 23, 2011
CommitterDon't require usage privileges on the foreign data wrapper when creating a foreign table. We check for usage privileges on the foreign server, that ought to be enough.
8aea1373
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 21, 2011
CommitterFix thinko in comment. Spotted by Jim Nasby.
b1dc45c1
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 18, 2011
CommitterBackportedBefore exiting walreceiver, fsync() all the WAL received.
34ef02b4
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+10 more
No linked threadJan 17, 2011
CommitterTreat a WAL sender process that hasn't started streaming yet as a regular backend, as far as the postmaster shutdown logic is concerned. That means, fast shutdown will wait for WAL sender processes to exit before signaling bgwriter to finish. This avoids race conditions between a base backup stopping or starting, and bgwriter writing the shutdown checkpoint WAL record. We don't want e.g the end-of-backup WAL record to be written after the shutdown checkpoint.
8f5d65e9
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 15, 2011
CommitterBackportedFix the logic in libpqrcv_receive() to determine if there's any incoming data that can be read without blocking. It used to conclude that there isn't, even though there was data in the socket receive buffer. That lead walreceiver to flush the WAL after every received chunk, potentially causing big performance issues.
a5a02a74
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+10 more
No linked threadJan 13, 2011
CommitterLeave temporary files out of streaming base backups.
dc1305ce
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 10, 2011
CommitterFix crash in the new GiST insertion code, when an update splits the root page.
ca63029e
master9.1alpha4REL_19_STABLE9.1alpha4REL_18_STABLE9.1alpha4REL_17_STABLE9.1alpha4REL_16_STABLE9.1alpha4REL_15_STABLE9.1alpha4REL_14_STABLE9.1alpha4REL_13_STABLE9.1alpha4+9 more
No linked threadJan 09, 2011