Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6952b31

Browse files
committed
Update FAQ_DEV.
1 parentb61f681 commit6952b31

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

‎doc/FAQ_DEV

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
10) What is elog()?
2727
11) What is configure all about?
2828
12) How do I add a new port?
29+
13) What is CommandCounterIncrement()?
2930
_________________________________________________________________
3031

3132
1) What tools are available for developers?
@@ -414,3 +415,15 @@ c-mode)
414415
src/include/storage/s_lock.h for your CPU. There is also a
415416
src/makefiles directory for port-specific Makefile handling. There is
416417
a backend/port directory if you need special files for your OS.
418+
419+
13) What is CommandCounterIncrement()?
420+
421+
Normally, transactions can not see the rows they modify. This allows
422+
UPDATE foo SET x = x + 1 to work correctly.
423+
424+
However, there are cases where a transactions needs to see rows
425+
affected in previous parts of the transaction. This is accomplished
426+
using a Command Counter. Incrementing the counter allows transactions
427+
to be broken into pieces so each piece can see rows modified by
428+
previous pieces. CommandCounterIncrement() increments the Command
429+
Counter, creating a new piece of the transaction.

‎doc/src/FAQ/FAQ_DEV.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <H1>
3838
<ahref="#10">10</a>)What is elog()?<BR>
3939
<ahref="#11">11</a>)What is configure all about?<BR>
4040
<ahref="#12">12</a>)How do I add a new port?<BR>
41+
<ahref="#13">13</a>)What is CommandCounterIncrement()?<BR>
4142
<BR>
4243
<HR>
4344

@@ -481,6 +482,18 @@ <H3><a name="12">12</a>)How do I add a new port?</H3><P>
481482
There is a<I>backend/port</I> directory if you need special files for
482483
your OS.<P>
483484

485+
<H3><aname="13">13</a>)What is CommandCounterIncrement()?</H3><P>
486+
487+
Normally, transactions can not see the rows they modify. This allows<CODE>
488+
UPDATE foo SET x = x + 1</CODE> to work correctly.
489+
<P>
490+
491+
However, there are cases where a transactions needs to see rows affected
492+
in previous parts of the transaction. This is accomplished using a
493+
Command Counter. Incrementing the counter allows transactions to be
494+
broken into pieces so each piece can see rows modified by previous
495+
pieces.<I>CommandCounterIncrement()</I> increments the Command
496+
Counter, creating a new piece of the transaction.<P>
484497

485498
</BODY>
486499
</HTML>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp