| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
The previous order of steps didn't literally work, because git clean
-fdx would delete the downloaded typedefs.list. Also, pgindent needs to
be called with a path when one is in at the top of the build tree.
|
| |
|
|
|
|
|
|
| |
has been created by adding #include <stdlib.h> to parse.c.
per request from Kevin Grittner.
|
|
|
|
|
|
| |
We seem to have a rough policy that our Perl scripts should work with
Perl 5.8, so make this one do so. Main change is to not use the newfangled
\h character class in regexes; "[ \t]" is a serviceable replacement.
|
|
|
|
|
|
| |
instructions to perltidy Perl files that lack Perl file extensions.
pgindent Perl coding by Andrew Dunstan, restructured by me.
|
|
|
|
| |
Dunstan.
|
|
|
|
|
|
| |
Backpatch to 9.2.
Per suggestion from Noah Misch
|
| |
|
|
|
|
|
|
| |
Àlvaro and Noah Misch.
Backpatch to 9.2.
|
| |
|
|
|
|
| |
And minor other pgindent documentation tweaks.
|
|
|
|
| |
Kevin Grittner
|
| |
|
| |
|
|
|
|
|
|
|
| |
lines. Update pg_bsd_indent required version to 1.1 (and update ftp
site).
Problem reported by Magnus.
|
|
|
|
|
| |
include the ability to supply a typedef file, rather than list them on
the command line. Also improve the README.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Per discussion after my commit o yesterday.
|
|
|
|
|
| |
This allows the user to change the path to be used more easily.
Also, change URL in README.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until now, our Serializable mode has in fact been what's called Snapshot
Isolation, which allows some anomalies that could not occur in any
serialized ordering of the transactions. This patch fixes that using a
method called Serializable Snapshot Isolation, based on research papers by
Michael J. Cahill (see README-SSI for full references). In Serializable
Snapshot Isolation, transactions run like they do in Snapshot Isolation,
but a predicate lock manager observes the reads and writes performed and
aborts transactions if it detects that an anomaly might occur. This method
produces some false positives, ie. it sometimes aborts transactions even
though there is no anomaly.
To track reads we implement predicate locking, see storage/lmgr/predicate.c.
Whenever a tuple is read, a predicate lock is acquired on the tuple. Shared
memory is finite, so when a transaction takes many tuple-level locks on a
page, the locks are promoted to a single page-level lock, and further to a
single relation level lock if necessary. To lock key values with no matching
tuple, a sequential scan always takes a relation-level lock, and an index
scan acquires a page-level lock that covers the search key, whether or not
there are any matching keys at the moment.
A predicate lock doesn't conflict with any regular locks or with another
predicate locks in the normal sense. They're only used by the predicate lock
manager to detect the danger of anomalies. Only serializable transactions
participate in predicate locking, so there should be no extra overhead for
for other transactions.
Predicate locks can't be released at commit, but must be remembered until
all the transactions that overlapped with it have completed. That means that
we need to remember an unbounded amount of predicate locks, so we apply a
lossy but conservative method of tracking locks for committed transactions.
If we run short of shared memory, we overflow to a new "pg_serial" SLRU
pool.
We don't currently allow Serializable transactions in Hot Standby mode.
That would be hard, because even read-only transactions can cause anomalies
that wouldn't otherwise occur.
Serializable isolation mode now means the new fully serializable level.
Repeatable Read gives you the old Snapshot Isolation level that we have
always had.
Kevin Grittner and Dan Ports, reviewed by Jeff Davis, Heikki Linnakangas and
Anssi Kääriäinen
|
|
|
|
|
| |
done for a few other macros in that file, for other reasons. I also
remove pgindent/README mention of the file.
|
| |
|
| |
|
|
|
|
| |
at end of files.
|
| |
|
| |
|
|
|
|
| |
found on some Windows platforms. Also, silence unnecessary messages and make awk happier about literal '*' on some platforms.
|
|
|
|
| |
if using multiple invocations of egrep. Add perl ppport.h to the current list.
|
| |
|
|
|
|
|
| |
regession test output, and update pgindent script to avoid them in the
future.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
list.
Remove pgjindent.
|
| |
|